Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySql Error 1064 When assigning schema privileges with MySQL WorkBench

I just downloaded and installed the latest MySQL version (5.6) on Windows 8 64bit. Defaults were used during install and it all ran smoothly.

Using MySQL Workbench I created a schema with one simple table and also created a new user. On the schema privileges tab I add a new entry for the user, press the Select "All" button to select the privileges and hit Save Changes. As soon as I do this I get he following error:

MySQL Error 1064

Any ideas why this is happening? I am very new to DB's so if you have any alternative methods I can try please explain in simple (step by step) terms.

Thanks

like image 871
Steve Avatar asked Jan 15 '23 04:01

Steve


2 Answers

When you open an command-line mysql session and choose the database you can give the command

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EXECUTE,EVENT,TRIGGER ON dev_runeslinger.* TO 'dev_runeslinger'@'localhost';

So it is a case of mis-interpretation/parsing of the _ since it is escaped.

like image 125
Anonymouse Avatar answered Jan 17 '23 17:01

Anonymouse


It appears to be bug #68175 in MySQL Workbench:

Database names containing an underscore showing up escaped/ cause SQL Error

It was reported last month and it's still open so you can either downgrade to a version older than 5.2.46 or wait to see whether it's fixed.

like image 26
Álvaro González Avatar answered Jan 17 '23 17:01

Álvaro González