22

I installed WAMP on Windows 8, and I'm having problems with MySQL privileges in phpMyAdmin.

Here, you can see the screenshot:

phpMyAdmin screenshot

As you can see, there is no privileges tab, and I can't a create new database.

5
  • In the phpMyAdmin folder on your disk, there is a config.inc.php file. Which user name is listed therein?
    – mynetx
    Aug 24, 2013 at 16:48
  • 2
    the username is root and the pass is empty $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; thank you
    – Madizm
    Aug 24, 2013 at 18:12
  • You can use root for both username and password.
    – T04435
    Jul 3, 2017 at 22:28
  • Possible duplicate of Phpmyadmin - Mysql no privileges
    – nelaaro
    Aug 30, 2017 at 9:01
  • See my answer (works on Aug 2018) stackoverflow.com/questions/14699195/…
    – Rav
    Aug 31, 2018 at 11:44

8 Answers 8

17

Solution:

  • Click on the User accounts tab
  • Click on a user account showing no privileges
  • Click on the Edit privileges link and tick all the check boxes

phpMyAdmin

3
  • I don't have a logout button. And I am logged in as root
    – Curtis
    Jul 1, 2014 at 21:23
  • use root as username and your password you set during phpmyadmin installation
    – 0x3bfc
    Jul 31, 2015 at 20:24
  • Exactly what was needed!
    – Rimfire
    Dec 24, 2016 at 14:49
4

Go to phpmyadmin webpage under user accounts tab and check if the root has all_privileges

and still if you are not able create db

Go to mysql console login as root and type: flush privileges;

now reload phpmyadmin page and you should be in synch

1
3

i just write UserName root and leave the password blank it work for me

2

for no priviledge error, the solution is this:

It is not a file permission issue, the mysql user you logged in as doesn't have the right to create databases. You need to login as root for full permission, which I understand you are not. If I am not mistaken, the default password for "root" is empty (blank, nothing, ""), so try that. Once you are logged in as root in phpMyAdmin, you will be able to create databases or create another user with full permission.

kudos to:: http://www.theadminzone.com/forums/showthread.php?t=98676

1

Hey i just tried this and it worked type the "root" as username and the password you set during installation. Worked

1

Your problem is your authentication. If you are accessing phpMyAdmin through WAMP, then you need to check the files in WAMP for the proper configuration.

0

You might be able to start the MySQL server with --skip-grant-tables option. Then access the Users tab in phpMyAdmin, and delete the password for root@localhost and [email protected].

4
  • That works for the tables on the left side, but i steel cant see the privileges tab and i cant create database. prntscr.com/1n64oa prntscr.com/1n650c
    – Madizm
    Aug 24, 2013 at 18:41
  • Would you mind telling what the following SQL query result is? select Host, User, Select_priv from mysql.user
    – mynetx
    Aug 24, 2013 at 19:22
  • Ok, now on phpMyAdmin's home page, in the Database server section, do you see "User: root@localhost" ? Aug 25, 2013 at 12:36
  • SELECT command denied to user ''@'localhost' for table 'user'
    – Curtis
    Jul 1, 2014 at 21:21
-1

you just ned to enter the username as 'root' and leave password blank. You will be able to create database.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.