wolf_mc12 Posted September 26, 2009 Share Posted September 26, 2009 Hello sir i got a problem that install script of whmcs give me an error that mysql database not working but the infos of mysql db are the exactly infos of my database host i don't know why it not work can someone help me ? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted September 26, 2009 Share Posted September 26, 2009 Can you give us the exact error message you get? 0 Quote Link to comment Share on other sites More sharing options...
wolf_mc12 Posted September 26, 2009 Author Share Posted September 26, 2009 this error message display: Critical Error Could not connect to the database Thanks 0 Quote Link to comment Share on other sites More sharing options...
LaceHost-Ishan Posted September 26, 2009 Share Posted September 26, 2009 1. Check your database login details again. 2. See if your MySQL server is running. 0 Quote Link to comment Share on other sites More sharing options...
dkent Posted September 26, 2009 Share Posted September 26, 2009 That's one of the most common error messages, and it normally results in incorrect information inside your configuration.php file. You'll need to make sure that file contains the correct database details including your cPanel login name. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted September 26, 2009 Share Posted September 26, 2009 also $db_host should be "localhost" 0 Quote Link to comment Share on other sites More sharing options...
wolf_mc12 Posted September 27, 2009 Author Share Posted September 27, 2009 LaceHost-Ishan, I checked all and everything is ok my login details are correct and mysql server is running. 0 Quote Link to comment Share on other sites More sharing options...
dkent Posted September 27, 2009 Share Posted September 27, 2009 I assume you're using MySQL version 4.1 or later. Maybe you can try installing WHMCS once again and see what happens. But honestly I just think you've missed something. It obviously can't connect to your database. You should open a Support Ticket for further advice - Matt knows everything! 0 Quote Link to comment Share on other sites More sharing options...
mylove4life Posted September 27, 2009 Share Posted September 27, 2009 Is the database on the same server as WHMCS? 0 Quote Link to comment Share on other sites More sharing options...
wolf_mc12 Posted September 27, 2009 Author Share Posted September 27, 2009 No the database is on other server. i put it on localhost on ip-adress of the database. 0 Quote Link to comment Share on other sites More sharing options...
LaceHost-Ishan Posted September 27, 2009 Share Posted September 27, 2009 Are ports 3306 open for both servers in the firewall ? Ishan 0 Quote Link to comment Share on other sites More sharing options...
railto Posted September 28, 2009 Share Posted September 28, 2009 also $db_host should be "localhost" Not always true, you need to make sure that IF the mysql server is on the same server first, then if it is set the mysql server to localhost, otherwise i wont work. There are several times where this is not the case, for instance i have installed before on a clustered environment where the mysql service was held on a seperate machine, therefore setting the mysql server as localhost would not have worked. Always best to make sure what setup they are using first before giving such advice 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted September 28, 2009 Share Posted September 28, 2009 Not always true, you need to make sure that IF the mysql server is on the same server first, then if it is set the mysql server to localhost, otherwise i wont work. There are several times where this is not the case, for instance i have installed before on a clustered environment where the mysql service was held on a seperate machine, therefore setting the mysql server as localhost would not have worked. Always best to make sure what setup they are using first before giving such advice Yes you are right, but approx 90% of cases the sql server is on the same hosted server and normally should be set to localhost 0 Quote Link to comment Share on other sites More sharing options...
wolf_mc12 Posted September 28, 2009 Author Share Posted September 28, 2009 Are ports 3306 open for both servers in the firewall ? Ishan i don`t know it but i now that 1 turk in this host that i have now did install me that , but i don`t know the reason because the admins witch install me the script didn`t tell me ? 0 Quote Link to comment Share on other sites More sharing options...
wolf_mc12 Posted September 28, 2009 Author Share Posted September 28, 2009 (edited) i have delete the version 3 and install the version 4 but it`s the same problem Could not connect to the database - check the database connection details you entered and go back and correct them if necessary the infos about the mysql are real 100% because another scripts i can take on this mysql and my mysql version is MySQL version 5.0 Edited September 28, 2009 by wolf_mc12 0 Quote Link to comment Share on other sites More sharing options...
bear Posted September 28, 2009 Share Posted September 28, 2009 the admins witch install me the script didn`t tell me ? Could not connect to the database - check the database connection details you entered and go back and correct them if necessary the infos about the mysql are real 100% because another scripts i can take on this mysql and my mysql version is MySQL version 5.0 Sounds as though they (or you, if you personally installed it) have done something wrong. Make sure the remote server is allowing you to connect, the database username and database name are correct for WHMCS, and the details of where to connect match a working script. Something is obviously off here, and I'd agree that opening a ticket and providing this information will help more than just saying it's all the same but isn't working. 0 Quote Link to comment Share on other sites More sharing options...
Wajdan Posted October 13, 2009 Share Posted October 13, 2009 I had a same problem but installation was smooth va another computer using different ISP.But still, i could not find the solution of this problem. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.