How to re-access WP via digitalocean after wrong URL change in wp?

Hi guys,

I have changed my URL for my wordpress website and now I cannot login any more. All solutions online recommend to access cpanel, however digitalocean doesn’t have this feature.

Could you please help me to reset my domain name on wp without using cpanel?

Thank you in advance! :)


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

do you have phpMyadmin installed? If not, that would be a good first start.

once you have that installed, you can log in to phpMyadmin and access the database for Wordpress. Find the table called “wp-options” and look for the site_url option. Make sure that matches what you want.

You might also scroll through and find the option named “front_page” and change that as well.

After you have made those changes, be sure to refresh your browser and try to log in to Wordpress (Hold down shift while reloading page…which will clear your cache and reload the page fresh)