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
Best Answer
Looks like a known issue with it not handling an exception error properly and also the wrong version: https://bugs.mysql.com/bug.php?id=79364
Description: WB 6.3.5 (and also older release like 6.1.7) can connect to MariaDB.
Are you using containers in your environment?
edit: For now I solved it this way:from the menu Database => Manage Connections... I have created and saved the connection for the "test" user, so that it appears on the start screen ( when you launch WB, the saved connections appear as a list of gray buttons , and you can launch them directly from there).