List:General Discussion« Previous MessageNext Message »
From:Neil Curri Date:January 4 2001 8:05pm
Subject:Re: SV: mysql works, but php won't connect
View as plain text  
Thanks, but do you mean change "localhost" to server ip address in my
php script or in the mysql user.host entry or both? (I tried just
changing the script -- that didn't work). The php script sits on the
same server as the mysql database, so using "root" and "localhost"
should be fine, shouldn't it?

from user table:

+------+------------------------+
| user | host                   |
+------+------------------------+
| root | gromit.fastcompany.com |
| root | localhost              |
+------+------------------------+

Would I need to add another root entry with:

mysql> grant all on *.* to root@stripped identified by "my_password";

I also have two entries in the user table with no users or corresponding
passwords... how can I get rid of these?

+--------+------------------------+------------------+
| user   | host                   | password         |
+--------+------------------------+------------------+
|        | localhost              |                  |
|        | gromit.fastcompany.com |                  |
+--------+------------------------+------------------+

Thanks!

Jarmo Paavilainen wrote:
> 
> ...
> > not sure what user runs php. I know the mysql.sock is a common and
> > documented problem, but php is looking for mysql.sock in the right
> > place. I don't see any documentation or posts on the mail list archives
> 
> Change your adress from "localhost" to whatever other valid (IP)adress your
> MySQL server is on. That solved it for me.
> 
> // Jarmo
Thread
mysql works, but php won't connectNeil Curri3 Jan
  • Re: mysql works, but php won't connectGerald L. Clark4 Jan
  • Re: mysql works, but php won't connectNeil Davis4 Jan
  • Re: mysql works, but php won't connectNeil Curri4 Jan
    • SV: mysql works, but php won't connectJarmo Paavilainen4 Jan
      • Re: SV: mysql works, but php won't connectNeil Curri4 Jan
      • Re: SV: mysql works, but php won't connectJason Terry4 Jan
      • Data informationLuis5 Jan
      • Re: Data informationEric Fitzgerald5 Jan