1

I am following the new boston mysql tutorials, and at the very beginning he is writing SHOW DATABASES. In my case I get the following error

"#1227 - Access denied; you need (at least one of) the SHOW DATABASES privilege(s) for this operation".

I am very new to phpmyadmin and I have googled how to grant a permission but I am unlucky

GameO7er
  • 2,028
  • 1
  • 18
  • 33
AngryAce
  • 35
  • 1
  • 2
  • 7

1 Answers1

1

You need to have that privilege granted to the user ie

GRANT SHOW DATABASES ON *.* TO $username_here

The docs for this can be found here

http://dev.mysql.com/doc/refman/5.7/en/grant.html

Someone here also had a similar problem with PHPMYADMIN.

how to add super privileges to mysql database?

Depending on your username you can also use this from the console

GRANT SUPER ON *.* TO user@'localhost' IDENTIFIED BY 'password_asljk8902314';
flush privileges;

Please make sure your username is correct.

Community
  • 1
  • 1
Harry
  • 11,298
  • 1
  • 29
  • 43