Page 1 of 1

Mysql installation problem

PostPosted: Tue Jun 05, 2007 7:39 am
by piyush
Hello,
I want to connect mysql to the console then it throws the following error.
reply me as soon as posible

ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

When i type URL http://59.144.165.14/agc/vicidial.php to connect Vicidial then it shows error

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) in /usr/local/apache2/htdocs/agc/dbconnect.php on line 5

Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) in /usr/local/apache2/htdocs/agc/dbconnect.php on line 6

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /usr/local/apache2/htdocs/agc/dbconnect.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/agc/dbconnect.php:5) in /usr/local/apache2/htdocs/agc/vicidial.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/agc/dbconnect.php:5) in /usr/local/apache2/htdocs/agc/vicidial.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/agc/dbconnect.php:5) in /usr/local/apache2/htdocs/agc/vicidial.php on line 215

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /usr/local/apache2/htdocs/agc/vicidial.php on line 226

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/apache2/htdocs/agc/vicidial.php on line 227

thnx
Piyush

PostPosted: Tue Jun 05, 2007 8:44 am
by ramindia
Hi

check is the mysql server running or not

/etc/rc.d/init.d/mysqld status ( fedora/redhat)

post the output.

ram