Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User cannot see databases in mysql workbench

I'm trying to learn Spring Roo using this tutorial. So, what I did was:

  • go to mysql workbench
  • create a new schema called 'pizzashop'
  • access localhost through the server administration account
  • create a new user in 'users and privileges' with name 'pizzashop' and password 'pizzashop', and limit connectivity to hosts matching %

when I tried to connect to the server using this account I noticed that it couldn't see any database

I tried creating an entry in 'schema privileges' explicity allowing the 'pizzashop' user to see the 'pizzashop' schema, but it didn't work

Hope you can help me here. I don't know if it's a Workbench problem or a mysql problem.

Edit> Added to the User Accounts one more entry with the same characteristics as the other but with 'localhost' instead of %

Added to the schema privileges an entry saying host:localhost schema:pizzashop and all object and ddl rights (this is the only one I have for the pizzashop user)

Still, when I connect to localhost using the user pizzashop no schemas appear

like image 346
elithin Avatar asked Oct 15 '13 22:10

elithin


People also ask

How do I view databases in MySQL Workbench?

To view the database created on MySQL Workbench, navigate to Database > Connect to Database . Choose an existing connection to connect to MySQL Server or create a new one. The database created will be as shown in the screenshot below.

How do I show a Users database in MySQL?

Use the MySQL SHOW USERS Query Use the following query to show MySQL users created in the database server: SELECT user FROM mysql. user; As a result, you will see the list of all the users that have been created in MySQL.

How can I see all MySQL databases?

SHOW DATABASES lists the databases on the MySQL server host. SHOW SCHEMAS is a synonym for SHOW DATABASES . The LIKE clause, if present, indicates which database names to match. The WHERE clause can be given to select rows using more general conditions, as discussed in Section 26.8, “Extensions to SHOW Statements”.


1 Answers

Its a MySQL problem and faily common, % does not match localhost. Add an entry for user@localhost with the same permissions

http://bugs.mysql.com/bug.php?id=69570

like image 162
exussum Avatar answered Sep 24 '22 17:09

exussum