You can change the WordPress Address (URL) and Site Address (URL) from the database by following these steps:
- Access your website’s database through phpMyAdmin or another database management tool.
- Find the
wp_options
table and click on it to open it.
- Locate the
siteurl
and home
rows in the table.
- Click on the Edit button (pencil icon) next to the
siteurl
row.
- In the field under
option_value
, enter the new URL for your WordPress site.
- Click on the Go button to save the changes.
- Repeat the above steps for the
home
row.
- After updating both rows, clear your browser cache and try accessing your WordPress site from the new URL.
Note that changing the WordPress Address and Site Address from the database should be done with caution as any mistake may result in your site not working properly. It is always recommended to have a backup of your database before making any changes.