Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New users can't login on PHPmyadmin

I am currently having a problem with allowing multiple users to login with phpmyadmin without seeing each other's databases. I am using this method: http://alandoyle.com/tutorials/configuring-phpmyadmin-for-multiple-users/

While the method works for the most part, although when creating a New User where I check off the "Grant all privileges on wildcard name (username_%)" selection does not allow me to login with that user unless I don't specify a password and enable "$cfg['Servers'][$i]['AllowNoPassword']".

What I've tried:

I've tried to create the same User where I don't check it off, but while I can login unfortunately I can see all the root databases. As opposed to when I choose no password and I can only see databases pertaining to that user.

like image 305
GB001 Avatar asked May 07 '11 11:05

GB001


People also ask

How do I login as another user in phpMyAdmin?

Open your database in PhpMyAdmin. Click on the database name in the menu to the left, it will unfold all tables. Click on the users table, for example, wp_users. Locate the user you want to change the login name for and click Edit.

How do I log into phpMyAdmin for the first time?

How do I log into phpMyAdmin for the first time? You should be able to access phpMyAdmin directly, by browsing to http://127.0.0.1/phpmyadmin. Log in to phpMyAdmin by using the following credentials: Username: root. Password: The same as the application password.

How do I access users in phpMyAdmin?

Access the phpMyAdmin console through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin. Log in to phpMyAdmin by using the following credentials: Username: root. Password: application password.


2 Answers

EDIT: I found that setting the user to LOCALHOST only seems to have remedied this issue. Using ANYHOST does not work for local logins for some reason.

I'm having the same issue after I changed my root password on my testing server. I can no longer connect using any new users. I'm messing around but I think it might have something to do with adding blowfish security or something.

My PHP scripts cannot connect either. I also can't grant new users all privs. I'm not sure what I did to make this happen. I have legacy users that can achieve this.

like image 83
user875462 Avatar answered Sep 20 '22 14:09

user875462


You MUST have BOTH localhost and % for each user. Only then you can log-in locally AND from other hosts or client programs. This is why you find the root user having so many entries as well.

Steps to solve this:

  1. log in to phpmyadmin using root
  2. Select privileges
  3. Select the user you want to modify (i.e., to give log in privileges).
  4. If you already have given the host as any (%) now change it to localhost.
  5. Make sure you click on the option button "keep the old one" and update

Here's a screenshot showing the settings I'm referring to. enter image description here Now log out and log in as the new user.

like image 30
itsols Avatar answered Sep 22 '22 14:09

itsols