On Thu, 2 May 2002, Paras Mukadam wrote: > one MySQL - PHP query : while granting permissions to particular user in > MySQL, the administrator has to give username@machine_address !! Then how > can we connect to MySQL through PHP only by passing "username" as one of the > arguments to mysql_connect() ?
If the MySQL database is on the same machine as PHP, then grant access to 'username@localhost'. If you want to allow PHP (and other mysql client library programs) on all hosts to be able to connect, then grant access to 'username@"%"' (the % works as a wildcard). miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php