I have created an user i intend to give access to one db only. But when i try connecting with him, the program crashes. When i connect with the root user, it works.
create user 'test'@'localhost';
GRANT ALL PRIVILEGES ON sbb2_test.* To 'test'@'localhost' IDENTIFIED BY 'test';
FLUSH PRIVILEGES;
Then i have verified he has the permissions for the sbb2_test db only:
SHOW GRANTS FOR 'test'@'localhost'
Output:
'GRANT USAGE ON *.* TO \'test\'@\'localhost\' IDENTIFIED BY PASSWORD \'*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29\''
'GRANT ALL PRIVILEGES ON `sbb2_test`.* TO \'test\'@\'localhost\''
Then i have tried connecting with the new user:
I have entered "test" as the password, and the program crashed. Why? These are the last lines from the wb.log file:
15:58:40 [INF][ Workbench]: Current version given by meta info is: 6.1.7
15:58:41 [INF][ Workbench]: Exiting as another instance of WB is already running. 15:58:41 [INF][ Workbench]: Running the application
15:58:41 [INF][ WBContext]: Parsing application arguments.
15:58:41 [INF][ WBContext]: C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\MySQLWorkbench.exe
15:58:46 [WRN][ WBContext UI]: Server instance has no attached connection, deleting it
15:58:46 [WRN][ WBContext UI]: Server instance has no attached connection, deleting it
15:59:17 [INF][ SSH tunnel]: Starting tunnel
15:59:17 [ERR][ GRTDispatcher]: exception in grt execute_task, continuing: Exception: Access denied for user 'test'@'localhost' (using password: NO)
15:59:30 [INF][ Admin]: Auto-created instance profile for connection
15:59:30 [ERR][ WBContext]: Unsupported server version: mariadb.org binary distribution 10.1.26-MariaDB