Fw: [PHP-DB] MySql won't connect

From: Date: Thu, 19 Apr 2001 04:45:40 +0000
Subject: Fw: [PHP-DB] MySql won't connect
Groups: php.db 
Request: Send a blank email to php-db+get-8688@lists.php.net to get a copy of this message
Your direct e-mail has problems too. ----- Original Message ----- From: "Dan Anderson" <dtndan@home.com> To: "johndmiller" <john@mn.mediaone.net> Sent: Wednesday, April 18, 2001 11:36 PM Subject: Re: [PHP-DB] MySql won't connect > Not a php expert by any means, but I get this when I use the "wrong" ip/name > from MySQL's perspective. > > My stock MySQL does not allow localhost, I need FQDN in connect. I suspect > that if I looked into this more I would find that it is just a rights issue > and a quick GRANT or something would fix me. > > Dan > ----- Original Message ----- > From: "johndmiller" <john@mn.mediaone.net> > To: <php-db@lists.php.net> > Sent: Wednesday, April 18, 2001 10:12 PM > Subject: [PHP-DB] MySql won't connect > > > > I know that the pages that I am using worked. I created them, then had to > > reload my OS. I saved everything before erasing the HD. I have restored > > the files but now I get a warning message that says MySQL Connection > > Failed: Can't connect to local MySQL server through socket .... > > > > The mysql.sock does exist, there is also a pid file there pointing to the > > current running occurance of MySQL. > > > > I have root set up with a password and I am able to connect to MySQL from > > a promopt. Below is the offending code. I think there is something that > > I missed when I set things up. > > > > FYI: I am running RH7.0 and Apache > > > > you are welcome to check out this page: > > > > http://24.163.168.40/phpinfo.php > > > > > > $link = mysql_connect("localhost", "root", "secret") or > > die("can't connect"); > > > > > > Last, I did look for the php-mysql module and it is on the system. > > > > Thanks > > > > John > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > >

« previous php.db (#8688) next »