Let’s move on to install WordPress. First we need to setup the mySQL database and user name. This will be the WordPress database that stores all our WordPress contents. WordPress requires the login information before it can read the mySQL database to retrieve the information to display on the site. Once we have created our database, we just need to upload wordpress installation files and install it.
Creating New Database and User
- Login to your control panel. It is normally located at https://yourdomain.com/cpanel
- Look for MySQL Databases and click it
- Under “Create New Database”, enter a name for you database and click “Create Database button”
- Under “MySQL Users”, enter a unique username and password and click “Create User”
- At the bottom shows “Add User To Database”. Select your new user and database and click “Add”
- It will direct you to “Manage User Privileges”, tick “All Privileges” and click “Make Changes”
- Write down your database name, username and password. We will need it in the next step
- Download and unzip the latest WordPress package
- In you WordPress files your will see a file named wp-config-sample.php. Rename it to wp-config.php.
- Open it up with a text editor and search for the following code and enter your database name, user name and database password.
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
- Next look for the following code and go to WordPress secret key and replace the code and save it.
define(‘AUTH_KEY’, ‘put your unique phrase here’);
define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’);
define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’);
define(‘NONCE_KEY’, ‘put your unique phrase here’);
- Login to your FTP and upload this file to the public_html folder
- Now go to https://www.yourdomain.com/wp-admin/install.php
- You should see the welcome page. Just enter the user name you want password and follow the instructions.
- That’s it. Your WordPress installation is ready
If you receive an error establishing connection with database, double check if you have successfully created your database and user name.