Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-30 Thread Chris
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 m

Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-30 Thread ROGER DEBRY
The permissions on the socket are rwxrwxrwx -- I don't see how that could be the problem. >>> "Chris" <[EMAIL PROTECTED]> 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 sta

Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-29 Thread Chris
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.

Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-27 Thread ROGER DEBRY
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

Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-27 Thread Matteo Cisilino
Alle 16:36, venerdì 27 ottobre 2006, ROGER DEBRY ha scritto: check if your mysql daemon doesn't skip networking > Some further information/questions on this problem. > > I wrote a small program just to see if I could connect to the mysql > socket, and I could. > Looking at seliunx policy, I note

Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-27 Thread ROGER DEBRY
Some further information/questions on this problem. I wrote a small program just to see if I could connect to the mysql socket, and I could. Looking at seliunx policy, I note an item called "Allow HTTPD scripts to and modules to connect to the network." That item is unchecked. Should it be checked

Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-27 Thread ROGER DEBRY
> Here is more information for you. > I am running: > Fedora core 5 Linux > php 5.14 > apache 2.2.2 > mysql 5.0.22 > > I have added the mysql_error code to my script as you suggested. > I already knew the what the error was by looking in the error logs. > It is, "Can't connect to

Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-26 Thread Chris
ROGER DEBRY wrote: Janet and Miles, Thank you for your suggestions. Here is more information for you. I am running: Fedora core 5 Linux php 5.14 apache 2.2.2 mysql 5.0.22 I have added the mysql_error code to my script as you suggested. I already knew the what the error was by

Re: [PHP-DB] Can't Connect to MySQL local Server

2006-10-26 Thread Steven Cruz
I had a similar problem the other day I think. plus many permission problems. But I got it work. I added these two lines to the bottom of my /etc/my.cnf file [client] socket=/usr/local/mysql/mysql.sock Just put in the path to your sock file and see if that helps. ROGER DEBRY wrote: Janet

[PHP-DB] Can't Connect to MySQL local Server

2006-10-26 Thread ROGER DEBRY
Janet and Miles, Thank you for your suggestions. Here is more information for you. I am running: Fedora core 5 Linux php 5.14 apache 2.2.2 mysql 5.0.22 I have added the mysql_error code to my script as you suggested. I already knew the what the error was by looking in the error l