On Thursday 12 December 2002 10:03, Ryan McDougall wrote:
> Alright I have tried to do the grant like the following:
>
> GRANT ALTER,CREATE,DELETE,DROP,INDEX,SELECT,UPDATE
> ON "user%".* TO user@% IDENTIFIED BY "password";
>
> GRANT ALTER,CREATE,DELETE,DROP,INDEX,SELECT,UPDATE
> ON user%.* TO user@% IDENTIFIED BY "password";
>
> With no luck I keep getting an error message... ERRO 1064: You have an
> error in you SQL syntax near '"usre%".* To user@% IDENTIFIED BY "password"
> at line 2

Use backticks.

mysql> GRANT ALTER,CREATE,DELETE,DROP,INDEX,SELECT,UPDATE ON `user%`.* TO 
'user'@'%' IDENTIFIED BY "password";
Query OK, 0 rows affected (0.01 sec)


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to