I am new to WordPress. I’ve worked my project using WordPress on localhost first (I use XAMPP). And now I’ve just uploaded all of my WordPress files to cPanel. The database also has been imported too. I have also configured the wp-config
to connect it to the WordPress database. But when I view the website, it shows WordPress installation page (choosing language, and so on) like if I install it for the first time.
Then, how to upload WordPress files that I have configured before on XAMPP to my cPanel? Thank you very much for the answer. I will really appreciate it!
*NOTE: I use Themeum WordPress theme.
3
Answers
Double check that the tables you imported are owned by the same MySQL user that you are connecting to.
Go over phpmyadmin in database your wp table name, set first 2 options in wp-config, set url and home to your website url.
The order to do this is:
wp-config.php
, and check the option to create a db with the same name and grrant all privileges.Run SQL queries that will change the DB from your localhost installation to the current one. here are the statements I use:
You can do it from the phpmyadmin SQL tab on your selected DB. just change the URL.
Good Luck!