Re: Can't conect with mysql_connect(), please help.
| From: | Dan Brunner | Date: | Tue, 14 Oct 2003 22:01:04 +0000 |
| Subject: | Re: Can't conect with mysql_connect(), please help. | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31007@lists.php.net to get a copy of this message | ||
Hello!!
Yes check to make sure mysqld is running.
ps -aux|grep mysql
If you don't see mysql, then start mysql.
service mysql start
If your running red hat.
Dan
On Oct 14, 2003, at 4:52 PM, gabriel@peugnet.cjb.net wrote:
phpinfo() says:MySQL Support enabledMYSQL_SOCKET /var/lib/mysql/mysql.sockbut in fact the file /var/lib/mysql/mysql.sock doesn't exists. So I understand that the first step is to check the configuration of MySQL, is it? "Dan Brunner" <daniel.brunner@duni.com> escribió en el mensaje news:97065B0E-FE8E-11D7-9043-00306589E6DA@duni.com...Hello!! Does that file "/var/lib/mysql/mysql.sock" exist?!!?!? Check to make sure mysql is running. Dan On Oct 14, 2003, at 4:34 PM, gabriel@peugnet.cjb.net wrote:-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpI'm starting to use MySQL, well, trying to, and I get the next message: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) The manual says that mysql_connect() can be called without arguments. That's what I'm doing. What's wrong? Thanks, Gabriel. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php