Re: Can't Connect to MySQL local Server

From: Date: Mon, 30 Oct 2006 21:28:39 +0000
Subject: Re: Can't Connect to MySQL local Server
References: 1 2 3 4 5 6 7  Groups: php.db 
Request: Send a blank email to php-db+get-42621@lists.php.net to get a copy of this message
ROGER DEBRY wrote:
The permissions on the socket are rwxrwxrwx -- I don't see how that could be the problem.
But who owns the file? It should be owned by 'mysql', not 'root'. If you want to know what the init.d file runs, add: set -x after #!/bin/bash or #!/bin/sh whatever the first line might be. That will print out the commands that the file is running.
"Chris" <dmagick@gmail.com> 10/29/2006 4:34 PM >>>
ROGER DEBRY wrote:
skip-networking is uncommented in the [mysqld] section of my.cnf I did discover something interesting this morning. When starting the MySQL server with mysqld_safe, I cannot connect to the server with my php script. However, I started the server this morning with /etc/init.d/mysqld
start,
and the php script connects just fine. Can anyone tell me why the difference?
Permissions on the socket file most likely. Skip-Networking should be uncommented (that is you only connect via sockets) unless you specifically need remote network connections.
-- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#42621) next »