I'm trying to learn Spring Roo using this tutorial. So, what I did was:
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
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.
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.
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”.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With