Page 1 of 1

The host or user argument to GRANT is too long?

Posted: Mon Dec 16, 2002 2:07 pm
by Owe Blomqvist
Hi.
I ran into a little Grant problem.
When i try to run the grant script i receive an error saying:
"The host or user argument to GRANT is too long"

Here´s the piece of code causing it:

Code: Select all

<?php
mysql_query("GRANT
  SELECT,
  INSERT,
  UPDATE,
  CREATE,
  DELETE,
  INDEX,
  ALTER
ON 
  ".$config['DB_COMMON']['DATABASE'].".* 
TO 
  '".$config['DB_WRITE']['USER']."'@'%' 
IDENTIFIED BY 
  '".$config['DB_WRITE']['PASS']."'") 
or die( mysql_error() );

?>

Posted: Mon Dec 16, 2002 2:36 pm
by Owe Blomqvist
Nevermind.
It turned out either the username or password was to long. :/

It´s a strange error message for such a simple error though.
/Owe Blomqvist