If you're using PHP (and say, apache), and connecting to a LOCAL mysql
database, as in:
mysql_connect("localhost", "user", "password")
you have to have something like the following in mysql:
GRANT ALL ON *.* TO "user"@"localhost" IDENTIFIED BY "password";
Timothy
On Mon, 4 Dec 2000, Brett Astleford wrote:
> hello all,
>
> I gotta problem, however this problem wanes between programming & system administration. Here it goes, when I log in mysql I get in fine. But when I try through code, something adds @localhost, example usr at localhost. Mysql doesn't like that @localhost. So is that conf in php, mysql or what???
>
> TIA
>
> Brett Astleford
> Platinum Design Group
> bastleford at platinumdg.com
>
---------------------------------------------------------------------
Timothy Houck
thouck at thouck.com
www.thouck.com