-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysqli::real_connect(): (HY000/2002): Permission denied #16516
Comments
Hi @zkelo |
I found a problem with permissions on Also, of course I can log in using mysql client in command line
How do I know why nothing happens when I press the "Go" button? |
If you can debug the code maybe you can find the answer but I would say that you can find a better way to make the login work Could you try to use socket login ? |
I've just tried but there's no differences |
Does the PMA have any (debug) settings to help you debug the problem? |
You could use https://docs.phpmyadmin.net/en/latest/config.html#cfg_DBG_sqllog Here is my debug config lines $cfg['DBG']['sql'] = true;
$cfg['DBG']['sqllog'] = true;
$cfg['DBG']['demo'] = false;
$cfg['DBG']['simple2fa'] = false; |
I changed my config to follow these lines and didn't see anything logs on page and inside browser's console. I think these settings won't help me because I can't go deeper than login form page |
You should have some output on the webserver logs, nothing more should show in the front-end |
I was also seeing a similar error message to the "mysqli::real_connect(): (HY000/2002): Permission denied" part from the original post. The advice from @williamdes in the quoted post (above) seems to work for my situation. After locating the mysqld.sock file that is being used in my installation, and adding that location in the config file (like this: [1] https://docs.phpmyadmin.net/en/latest/config.html#cfg_Servers_socket |
In my case I just need to restart mariadb service on my centos 7 server. It's working now
|
I had this endless issue on ubuntu focal while testing freshly packaged 5.2.1. |
Describe the bug
When I try to login with correct login and password I'm getting an following error:
mysqli::real_connect(): (HY000/2002): Permission denied
To Reproduce
(0. Setup phpMyAdmin;)
Expected behavior
I successfully login as entered user and can see databases and can do something with them.
Screenshots
Server configuration
mysql Ver 8.0.22 for Linux on x86_64 (MySQL Community Server - GPL)
PHP 7.4.13 (cli) (built: Nov 24 2020 10:03:34) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
5.0.4
Client configuration
Additional context
Described error happens with this setting's value:
$cfg['Servers'][$i]['host'] = 'localhost';
. When I changing value of this setting to127.0.0.1
instead oflocalhost
and entering with correct login and password nothing happens (just reloads page)The text was updated successfully, but these errors were encountered: