The host or user argument to GRANT is too long?
Posted: Mon Dec 16, 2002 2:07 pm
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:
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() );
?>