
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
Installing WordPress
- 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 */
define(‘DB_NAME’, ‘putyourdbnamehere‘);
/** MySQL database username */
define(‘DB_USER’, ‘usernamehere‘);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘yourpasswordhere‘);
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost‘); - 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.


