I am doing an online course from coursera where they tolm me to install phpmyadmin.
NOW I am a total beginner in this thing so I am not able to do much research upon that and now somehow, after I installed MySQL and phpmyadmin, in the localhost, I am getting some errors, is that common? Because the other participants in the course are not getting them. If that’s fatal or will limit some of my obvious abilities, please tell me how to cure it.
BTW If you didn’t noticed the errors are:
mysqli_real_connect(): (HY000/1045): Access denied for user 'phpmyadmin'@'localhost' (using password: YES)
and
Connection for controluser as defined in your configuration failed.
Some more details:
- PHP version is 7.4
- Operating System is Ubuntu 20.04
4
Answers
I was using MaridDb solved this issue with the following:
You will see a prompt like below:
Type
help;
orh
for help. Typec
to clear the current input statement.For MySQL 5.7.6 and newer as well as MariaDB 10.1.20 and newer
OR:
For MySQL 5.7.5 and older as well as MariaDB 10.1.20
I had a similar issue with mysql 8.0.22 and Ubunutu 20.04.3lts after installation despite setting up the phpmyadmin user during the installation it wouldn’t let me in with the password I set.
I solved it by logging in at the command line using
Then changed the password by the below and I could then log in
I’ve just installed LAMP on a new PC, and got the same problem.
Linux Mint 20 + MariaDB.
Password for root and phpmyadmin was already ok, but the error was still there.
Finally I discovered another configuration file, that sets the phpmyadmin password; you have to edit it:
set the correct password (= dbc_dbpass) for user
dbc_dbuser='phpmyadmin'
Use ctrl-O to save, then ctrl-X to exit. Then launch the command:
(Do NOT reinstall the DB).
In my PC il works!
I had the same problem by changing the password of the root user and the problem was solved by changing the content of the config.inc.php file inside the xamppphpMyAdmin folder.
Open the file with Notepad, then enter the defined password in front of the password field and that’s it
Error image
—The part where the password must be entered