I am working on Ubuntu 16.10. I use 10.1.26-MariaDB, it works perfect.
mysql Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
When I try to install PHPMyAdmin, I get the following error message:
"ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)".
Why did this happen?
I enter the MySQL password during PHPMyAdmin installation, but it is not working. How can I fix this problem?
I get the reason, i remove phpmyadmin and mariaDb, and install mysql-server, mysql-client, and it works!!!
sudo apt-get --purge remove mariadb*
sudo apt-get autoremove sudo apt-get autoclean
Remove all that start whith mariadb or mysql in /var/lib/dpkg/info
after remove all that start with mysql*
sudo apt-get --purge remove mysql*
sudo apt-get autoremove sudo apt-get autoclean
after remove directory /etc/mysql
after remove directory /var/lib/mysql
after remove deb package for mariadb from /etc/apt/sources.list
after update
sudo apt-get update
sudo apt-get upgrade
after install mysql
sudo apt-get install mysql-server mysql-client
check if all it's ok
service mysql status
and install phpmyadmin
sudo apt install phpmyadmin
That's all, for me work!!!!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.