phpMyAdmin 無法登入 出現錯誤 #1698 – Access denied for user ‘root’@’localhost’

輸入帳號密碼之後,phpMyAdmin出現下面資訊
mysqli_real_connect(): (HY000/1698): Access denied for user ‘root ‘@’localhost’

phpmyadmin無法登入

/etc/mysql/mariadb.conf.d/50-servier.cnf <–mariadb
/etc/mysql/mysql.conf.d/mysqld.cnf <–mysql

下面這行註解掉
bind-address = 127.0.0.1
#bind-address = 127.0.0.1

Read more