anitastaehli
Member
Posted 3 years ago #
Hi everyone
I tried to run the install script after having done all the other steps of the 5-minute installation process. But when I try to run the wp-admin/install.php I keep getting the message "Error establishing a database connection".
The db-name, username, pw and hostname in the wp-config file should be correct, I checked and double-checked it with my host.
I'm lost... what else could be the problem?
Hope someone can help me!
straydog999
Member
Posted 3 years ago #
I'm having the same problem
lifewealth
Member
Posted 3 years ago #
I tried to run the install script after having done all the other steps of the 5-minute installation process. But when I try to run the wp-admin/install.php I keep getting the message "Error establishing a database connection".
The db-name, username, pw and hostname in the wp-config file should be correct, I checked and double-checked it with my host.
Any ideas?
Thanks
I'm running wp on glassfish with quercus. After the first try everything went smooth and I was up and running in a few minutes. Then I decided to change my domain from my home to /opt/domains. Now wp won't install and crashes after the enter your setting screen.
"Error establishing a database connection"
I can connect to the database fine with the info a enter. I checked the file permissions and they are RWX by the user running glassfish.
I reached the conclusion the problem isn't connected to the database connection but the error message is misleading.
Any tips?
straydog999
Member
Posted 3 years ago #
anitastaehli, lifewealth
I've googled it, seems a lot of people have this error message when trying to install it and I haven't found a clear solution. WordPress should really have a trouble shooting section dedicated to this error message.
This link might be of use:
http://www.railshostinginfo.com/blog/2007/03/19/wordpress-installation-error-establishing-a-database-connection/
'5 minute intallation' now 2 days and counting =(
straydog999
Member
Posted 3 years ago #
anitastaehli, lifewealth
Change the host name in the wp-config file from 'localhost' to the ip address 213.17X.XXX.XX (replace the X's with the numbers of the IP address).
This worked for me.
jrenkel
Member
Posted 2 years ago #
I too was having this problem.
When I put the "echo (mysql_error());" line in wp-db.php as suggested in http://www.railshostinginfo.com/blog/2007/03/19/wordpress-installation-error-establishing-a-database-connection/, I got an error message to the effect that the Connector/J library could not be found.
When I added mysql-connector-java-5.1.7-bin.jar to WEB-INF/lib, the problem went away and wordpress is now working fine.
Hope this helps.
Jim Renkel
MiguelRuiz
Member
Posted 2 years ago #
As straydog999 said, you just need to go on your wp-config.php file and when on dabase host, update with localhost (again) or put the address to the server.
This has worked for me a few times.
I'm having the same issue and not being all that technical am having a hard time understanding the solution given here. Can someone maybe paste the updated wp-db.php file here with the correct line oe lines added? Or maybe straydog can tell me how I determine the IP address I need to enter. Thanks!