mysql Connection errors
Moderators: Developers, Moderators
mysql Connection errors
Hello,
I am trying to install cacti on a Mac os X server 10.4.6 box and I am running into an issue connecting to the mysql.sock. Here is what it returns:
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (13) in /Library/WebServer/Documents/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
I can connect doing a mysql -u cactiuser -p so it isn't the password.
I have the variable set correctly in my php.ini and also my user and pass are fine in the cacti/config.php Anyone have any ideas what might be causing this?
php 4.3.10 and mysql ver 4.1.10a for apple darwin8.0
Thanks in advance
Alex Morken
King Cycle Group
I am trying to install cacti on a Mac os X server 10.4.6 box and I am running into an issue connecting to the mysql.sock. Here is what it returns:
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (13) in /Library/WebServer/Documents/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
I can connect doing a mysql -u cactiuser -p so it isn't the password.
I have the variable set correctly in my php.ini and also my user and pass are fine in the cacti/config.php Anyone have any ideas what might be causing this?
php 4.3.10 and mysql ver 4.1.10a for apple darwin8.0
Thanks in advance
Alex Morken
King Cycle Group
You must enabled 'old-passwords' in MySQL and then re-set your cacti password.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Hello,
Thanks for the heads up on the old-password tip. I also saw this of yours...
http://forums.cacti.net/about12207-30.html
unfortunately I did all of that and it still puking out the same error...
do you know anything about mysqli? do I have to enable that in the configure statement of my php build?
thanks,
alx
Thanks for the heads up on the old-password tip. I also saw this of yours...
http://forums.cacti.net/about12207-30.html
unfortunately I did all of that and it still puking out the same error...
do you know anything about mysqli? do I have to enable that in the configure statement of my php build?
thanks,
alx
I've never had the need to use mysqli. Doing the 'old password trick' always made it work for me. I'm even using MySQL 5 and PHP 5.12 on newer installations which work fine.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
yea...this is an extremely frustrating problem. I am wondering if there is a way that I could get a better error message other then just the generic "can't connect" message.
I will have to dig around for utilities and look in the logs and see what I can pick apart and put together. I will post a solution once I find out what the exact problem is.
Thanks for the input.
Alex Morken
King Cycle Group
I will have to dig around for utilities and look in the logs and see what I can pick apart and put together. I will post a solution once I find out what the exact problem is.
Thanks for the input.
Alex Morken
King Cycle Group
Who is online
Users browsing this forum: No registered users and 3 guests