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.
Leave a Reply