RE: [PHP] second try - Mysql php install

2001-07-03 Thread scott [gts]

try using safe_mysqld 

if 'mysqld' is not in your 'ps' list, then the
daemon is not running, and you cannot connect to it.
(check the mysql error logs for possible reasons)

 -Original Message-
 From: Daniel Guerrier [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 02, 2001 10:38 PM
 To: [EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] second try - Mysql php install

2001-07-02 Thread Daniel Guerrier


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] second try - Mysql php install

2001-07-02 Thread Matthew Loff


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:[EMAIL PROTECTED]] 
Sent: Monday, July 02, 2001 10:38 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]