alexillsley
18th April 2007, 09:33
Hi,
Please can you help me fix the code to create a user & database, it just gives me an error. Heres the code:
CREATE USER 'testing'@ '%' IDENTIFIED BY 'test';
GRANT USAGE ON * . * TO 'testing'@ '%' IDENTIFIED BY 'test' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
CREATE DATABASE `testing` ;
GRANT ALL PRIVILEGES ON `testing` . * TO 'test'@ '%';
Heres the error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''%' IDENTIFIED BY 'test'' at line 1
Please can you help me fix the SQL,
Alex
Please can you help me fix the code to create a user & database, it just gives me an error. Heres the code:
CREATE USER 'testing'@ '%' IDENTIFIED BY 'test';
GRANT USAGE ON * . * TO 'testing'@ '%' IDENTIFIED BY 'test' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
CREATE DATABASE `testing` ;
GRANT ALL PRIVILEGES ON `testing` . * TO 'test'@ '%';
Heres the error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''%' IDENTIFIED BY 'test'' at line 1
Please can you help me fix the SQL,
Alex