Page 1 of 1

Can't connect to DB

PostPosted: 01. September 2016 12:10
by Unconformed
Everything was fine, however now I get:

bool(false) Connection refused
Fatal error: Could not create DB link! in /home/thomas/response/pub/lib/smrDB.class.php on line 45

Logs say the same thing:

[Thu Sep 01 20:59:09.170353 2016] [:error] [pid 3609] [client 127.0.0.1:39447] PHP Fatal error: Could not create DB link! in /home/thomas/response/pub/lib/smrDB.class.php on line 45

'dbUserName' => 'root',
'dbPassword' => '',
'dbHost' => 'localhost',
'dbName' => 'response_dev',


The thing is, I had this working fine the other day. All I have done ince is disable MYSL and Apache at boot. I have not changed any config files.

Going to http://localhost/phpmyadmin/

I get access denied and

Error

MySQL said: Documentation
Cannot connect: invalid settings.
Connection for controluser as defined in your configuration failed.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

Got any tips?

Re: Can't connect to DB

PostPosted: 02. September 2016 12:23
by Nobbie
Unconformed wrote:All I have done ince is disable MYSL and Apache at boot.


What is MYSL?? Seems you have MySQL and Apache installed twice?? Not only Xampp, but also from your Linux distribution?? If so, that is a bad idea, you should uninstall one of those.