문제

I'm attempting to give a non-root mysql user access to log into phpMyAdmin and only see the DB they have access to.

I've already looked at the following articles and tried their advice: Configuring phpmyadmin for Multiple Users

[How to configure phpMyAdmin for multiple users][2]

[Is there a tool like phpMyAdmin which can be configured to access just a single database?][3]

[how to configure config.inc.php to have a loginform in phpmyadmin][4]

[phpMyAdmin setup on live server with usercontrol][5]

[MYSQL ERROR 1045][6]

I've granted the mysql user access with password to their DB and to select items in mysql db (as stated in one of the articles). I have configed phpmyadmin to use cookie auth_type, I have a pma control user, I've granted the user from not just '%' but from localhost and IPs, etc.

When the user logs in, they get #1045 Cannot log in to the MySQL server

My root user can log in fine to phpmyadmin. The user that needs access to phpmyadmin can log in from the command line fine as well.

Any ideas on how to solve this issue?

Thanks.

도움이 되었습니까?

해결책

I removed the skip-name-resolve for my /etc/my.cnf and it worked.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top