• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
rahmanzeb.com

rahmanzeb.com

Rahman Zeb's Portfolio & Blog

  • Home
  • About
  • Tutorials
    • Google Sites Tutorials
    • WordPress Tutorials
    • CSS Tutorials
  • Templates
    • Google Sites Templates
  • Portfolio
  • Hire me!
  • Contacts

How to change upload file path in wordpress from MySQL

10/10/2014 By Rahman Zeb 1 Comment

Below is a step by step tutorial on how to change upload file path in WordPress or media upload path in WordPress from the database or MySQL:
If you want to change upload file path or media upload path in WordPress and you are not able to do it from the backend of WordPress, then the only and efficient way to do this is via the MySQL database. Below are the steps for changing the upload file path or media uploads path in WordPress from MySQL.

1: First of all Just go to the phpMyAdmin if you host has it in case or just open somehow the database where your wordpress installs the files and data.

2: Now Look for wp_option in the database and click on it.
Note: (wp_ is not constant and it can by anything, it can be changed during the installation, so don’t assume it will always begin with wp_, I am using it here because it’s used by default).

3: Once you are inside wp_option, the next step is to find “upload path” and change it’s value by clicking on the edit icon i.e. a pencil or pen and put the proper upload url, save it and you are done.

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on LinkedIn (Opens in new window) LinkedIn

Filed Under: Uncategorized, Wordpress Tutorials

About Rahman Zeb

Rahman Zeb is a passionate freelance web designer and developer and loves creating awesome and interactive websites. Beside Web design and development he loves to play cricket and badminton with his friends.

Reader Interactions

Comments

  1. Wesley Carnicle says

    07/04/2024 at 7:40 am

    When i upload an image via the jetpack app for iPad and iOS it adds -1 when i upload an image

    Reply

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Hire Me

zebkhan
Fiverr
Seller
I'm web designer and developer and an expert in languages like html, css, javascript, php & mysql. I also know Joomla & Wordpress and have designed and developed dozens of sites. Most of the sites I have designed were responsive.

Follow Me

  • Facebook
  • X
  • Google
  • LinkedIn
  • Pinterest

Top Posts & Pages

  • How to add typing text effect in Google Sites
    How to add typing text effect in Google Sites
  • How to add click to Call button in google sites
    How to add click to Call button in google sites
  • How to make mailchimp's popup window appear with a click only?
    How to make mailchimp's popup window appear with a click only?
  • Templates
    Templates
  • Google Sites Templates
    Google Sites Templates

Main Menu

  • Home
  • About
  • Tutorials
    • Google Sites Tutorials
    • WordPress Tutorials
    • CSS Tutorials
  • Templates
    • Google Sites Templates
  • Portfolio
  • Hire me!
  • Contacts

Footer

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 239 other subscribers

Recent Posts

  • How to add typing text effect in Google Sites
  • Top 3 Custom Forms you can use in Google sites instead of google forms for free
  • Add click to chat on WhatsApp & facebook buttons or links in google sites
  • How to add video background in Google Sites
  • Make an image scroll from top to bottom on hover

Best Web Hosting

BlueHost SiteGround iPage Godaddy

Created with Genesis Framework on Wordpress and hosted by BlueHost

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT