I’m trying to install WordPress on my new website.
I have created a MySql database : a4800519_wp, a4800519_wpadmin, mysql2.000webhost.com
And phpMyAdmin can edit this database…
Here the wp-config.php content :
define('DB_NAME', 'a4800519_wp'); // The name of the database
define('DB_USER', 'a4800519_wpadmin'); // Your MySQL username
define('DB_PASSWORD', 'mypassword'); // ...and password
define('DB_HOST', 'mysql2.000webhost.com'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
But… I have this problem :
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at mysql2.000webhost.com. This could mean your host's database server is down.
yes, it´s empty. But my question was if the mysql user you created has been assigned to the mysql database in question. Afaik that needed to be done here in cPanel, might have changed but worth checking in the mysql overview
Hummmm There is maybe another thing :
Before when I edited the wp-config.php by hand the owner & group were “a4800519” (my user ID)
Now I used the wordpress configurator the wp-config is created and the owner & group are “99”
that shouldn´t make much of a difference. Would you mind supplying your FTP and MySQL details so i can have a look at your installation? You might also have a closer look at this tutorial which i did a while ago. Maybe you missed something.
actually I always have this “Error establishing a database connection” every now and then. I think it’s the mysql server refreshing that’s why you experience it.
Install WordPress is very easy compare with other script, the most important part is make sure all setting is correct.
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘a2581234_WPblog’);
/** MySQL database username */
define(‘DB_USER’, ‘a2581234_abcd’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘wpbg1234’);
Upgrade to latest version is more easier, it take me 4 minutes and all done.
Load to your control panel run file manager, upload your latest file eg: wordpress-2.7.zip from file manager to your host after that extract wordpress-2.7.zip to your host, normally the files will be in wordpress folder. If your create your wordpress in root directory open your wordpress folder and mark all files inside and move to root directory if to other sub-directory move to your worpress sub-directory. After all done load your wp-admin, the script will ask your to update to latest version, click continue and wait for script process and all done.
Hope this will help to our new members in installing WordPress script.