RE: [PHP] mysql.sock file location
| From: | Donald Tyler | Date: | Thu, 25 Sep 2003 15:47:15 +0000 |
| Subject: | RE: [PHP] mysql.sock file location | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163933@lists.php.net to get a copy of this message | ||
Argh! Wonderful. Now I have broken something else.
I just restarted the machine and now MySQL won't start. I keep getting
the error:
030925 10:30:10 mysqld started
030925 10:30:10 InnoDB: Operating system error number 13 in a file
operation.
InnoDB: See http://www.innodb.com/ibman.html for
installation help.
InnoDB: The error means mysqld does not have access right to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: Fire operation call: 'open'.
InnoDB: Cannot continue operation
030925 10:30:10 mysqld ended
I went and checked the entire /var/lib/mysql directory structure and
everything (including ibdata1) is set to root:mysql 755
I am going to headbut the screen in a minute!
-----Original Message-----
From: Donald Tyler [mailto:dtyler@frazerbilt.com]
Sent: Thursday, September 25, 2003 10:32 AM
To: php-general@lists.php.net
Subject: RE: [PHP] mysql.sock file location
Yes, I ping it and it says its alive.
-----Original Message-----
From: Brad Pauly [mailto:brad@robinsontech.com]
Sent: Thursday, September 25, 2003 10:07 AM
To: Donald Tyler
Cc: php-general@lists.php.net
Subject: Re: [PHP] mysql.sock file location
Donald Tyler wrote:
> Yeah I thought so to. But I did a chmod 755 on the sock file and it
> didn't help.
>
> Here's the test script I am using: (Presume that's what you meant by
> "connection string"?
>
> <?PHP
>
> if($Connection = mysql_connect('localhost', '******', '******'))
> print 'Success!';
> else
> print 'Failure';
>
> ?>
Are you sure the MySQL server is running? Can you connect from the
command line using the same credentials as above?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php