i all
i was able to assign privilege to create new database to a user with
root> GRANT CREATE ON *.* TO 'newuser'@'localhost'; newuser> create database newdb; newuser> Query OK, 1 row affected (0.00 sec) now, i would that the newdb just created by 'newuser' was writable by newuser itself.
newuser> CREATE TABLE newtable ( id INT ); Query OK, 0 rows affected (0.00 sec) newuser> INSERT INTO newtable (id) VALUES (1); ERROR 1142 (42000): INSERT command denied to user 'offique'@'localhost' for table 'newtable' i try to set privileges (with same user...) without solution :-(
newuser> GRANT ALL PRIVILEGES ON newdb.* TO 'newuser'@'localhost'; ERROR 1044 (42000): Access denied for user 'newuser'@'localhost' to database 'newdb' any idea?
many thanks!
FLUSH PRIVILEGESafter using theGRANTcommand? dev.mysql.com/doc/refman/5.0/en/flush.htmlGRANT CREATE ON *.* TO 'newuser'@'localhost';you give the CREATE privilege tonewuserwhen he connects from localhost. Have you tried granting him all the privileges?CREATEright. So,root> GRANT ALL PRIVILEGES ON newdb.* TO 'newuser'@'localhost' WITH GRANT OPTION;should have given the newuser all privileges on newdb