Re: MySQL Madness

From: Date: Wed, 29 Jan 2003 15:12:44 +0000
Subject: Re: MySQL Madness
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133517@lists.php.net to get a copy of this message
If MySQL is configured on your system correctly, you need a password in your script. I'm curious, though, why you're accessing it as root? Usually I create a user account in mysql and grant only the priviledges needed for that account. It may be a mute point, but if a bug were to crop up and your script has root access to mysql, all sorts of crap can take place. Have fun, Mike Gibbs, Liam - SXIA wrote:
First off, when executing this command: $connection = mysql_connect("localhost", "root", ""); I get this error msg: Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'root@localhost' (Using password: NO) in /home/superpage/public_html/index.php on line 49


« previous php.general (#133517) next »