RE: [PHP] second try - Mysql php install
| From: | Matthew Loff | Date: | Tue, 03 Jul 2001 04:00:28 +0000 |
| Subject: | RE: [PHP] second try - Mysql php install | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55927@lists.php.net to get a copy of this message | ||
If you don't see mysqld running when you do a ps, then the problem is
starting mysql... Mysql doesn't report errors in starting up to the
terminal... You need to find the log file...
The log file should be stored in your ..../mysql/data directory. The
logfile should be named [domain].log... So if your machine is called
"beef", it would be ..../mysql/data/beef.log
Check the end of that file to see why mysql isn't starting...
That may answer your question better than we can. Mysql creates the
mysql.sock file automatically when it's started. If it isn't in your
filesystem, than mysql didn't start.
-----Original Message-----
From: Daniel Guerrier [mailto:dan_guerrier@yahoo.com]
Sent: Monday, July 02, 2001 10:38 PM
To: php-general@lists.php.net
Subject: [PHP] second try - Mysql php install
I'm trying to make php work with mysql but I can't
even create a table. I'm receiving this error.
[root@menace mysql]# mysqladmin create testdb
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server though
socket '/var/lib/mysql/mysq.sock' (2)'
Check that mysqld is running and that the socket
:'/var/lib/mysql/mysq.sock' exists
I started mysqld - ps -ef shows that the process is
not running
The only thing I see that is wrong is that mysql.sock
is missing, but I assumed the install or starting the
process would create it. It didn't.
Shouldn't this file be created by the install
And when I use prefix=/software/mysql a mysqld file is
placed under /usr/local/bin as well. Am I doing
something wrong???
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net To
contact the list administrators, e-mail: php-list-admin@lists.php.net