I see, good. You’re almost there regarding this part: the database and files are present, but the files are currently placed in a directory called public_html
. Our hosting uses the directory htdocs
for website files, so you’ll need to rename the public_html
folder to htdocs
for your site to work.
Open the file manager of your account, navigate to your website’s directory, find the file called wp-config.php
, right click and choose Edit.
Within that file are the parameters DB_NAME
, DB_USER
, DB_PASSWORDand
DB_HOST`. You’ll need to change all of those.
In the client area, you can find the menu MySQL Databases. In the table, you can find the name of the database, which you’ll need to set as the DB_NAME
parameter in the wp-config.php
file. At the top of the page you’ll also see the MySQL username, MySQL password and MySQL hostname. You’ll need to enter those in the DB_USER
, DB_PASSWORD
and DB_HOST
parameters in the wp-config.php respectively.
Then just save the file and try to access your website! Assuming the files and database were uploaded correctly, you should see your site exactly as it was on Hostinger!
When this is all done, you’ll have migrated the entire site exactly as it was from Hostinger. So you can login with the same WordPress admin username and password as you did with your site on Hostinger.
If you always entered your site through Hostinger’s script installer, you’ll need to recover the admin username and password. I usually do this through phpMyAdmin. WordPress has an article on this, which you can find here: Reset Your Password – Documentation – WordPress.org