Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLluis Tarafa
6,942 PointsCreating new users
Hi,
I am using MySQL Workbench 6.1 CE on Windows 7. I am not able to create a DB user on localhost. When I do ```GRANT SELECT ...user1... FLUSH PRIVILEGES
It creates the user correctly. Then when I create a new connection in the workbench, it lets me connect but then the treehouse_movie_db does not appear. When creating user1 connection, if I introduce the "store in vault", then when I test the connection and introduce the password again it says that the password is not correct.
Thanks!
Lluis
5 Answers
Mark Connelly
7,577 PointsThis appears to be a MySQL bug connecting to the local host. Instead of using the '%' wildcard put the below code instead. This opened up the treehouse movie database to me on all of my tests.
user3 - DDL
GRANT ALTER, CREATE, DROP
ON treehouse_movie_db.*
TO user3@localhost
IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Mark Connelly
7,577 PointsI am experiencing these same troubles.
Lluis Tarafa
6,942 PointsHi Mark,
Thanks a lot! I'm going to try out...
Best, Lluis
Mark Connelly
7,577 PointsDid it work?
Lluis Tarafa
6,942 PointsHi Mark, It worked! I just tried right now. Thanks again!
Lluis
Mark Connelly
7,577 PointsYou're welcome
Chris Komaroff
Courses Plus Student 14,198 PointsThank you, Mark, I really appreciate it. Instructor is probably not aware of this issue (bug) when creating user for localhost.
Viki Pattanaik
6,314 PointsI agree, Video needs to be altered slightly to include this useful piece of information. Almost everyone is going to be trying with a localhost setup so excluding this vital bug in the workbench is kind of misleading.
Echo Yang
6,740 PointsEcho Yang
6,740 PointsHello, Mark. Can I ask you some questions?
Why there are so many bugs.....T-T Thanks! Echo
Gage Chapel
2,514 PointsGage Chapel
2,514 PointsHi Mark, that code worked great! Thanks!