mysql_connect(): Can't connect to local MySQL server through
Moderators: Developers, Moderators
mysql_connect(): Can't connect to local MySQL server through
hi:
after i finished the cacti configuration and open in my web page
this error appear,
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
can you help me ?
thanks!
after i finished the cacti configuration and open in my web page
this error appear,
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 339
Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
can you help me ?
thanks!
One example of the error is plenty.
I suggest you read the guide in my signature. Specifically the MySQL section, step 6.
I suggest you read the guide in my signature. Specifically the MySQL section, step 6.
| 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 |
Cacti config question
I conect mysql database in terminal command ok ,but in the web is wrong too!
*sigh* did you follow step 6 like I suggested? Alternatively read: http://dev.mysql.com/doc/refman/5.0/en/old-client.html
| 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 |
Look in your event log and the error regarding the mysql service. You stopped it before adding in the start parameter, right?
| 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 |
Cacti config question
mysock file location is diff
use
In –s /tmp/mysql.sock /var/lib/mysql/mysql.sock
use
In –s /tmp/mysql.sock /var/lib/mysql/mysql.sock
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
You posted twice about this failed save, read my post in your other thread.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 0 guests