我们将下载的phpmyadmin 放在apache目录中,进入phpmyadmin目录,
首先将这个目录中的配置文件改名
sudo mv config.sample.inc.php config.inc.php
然后修改config.inc.php,将
$cfg['Servers'][$i]['host'] = 'localhost';
改为
$cfg['Servers'][$i]['host'] = '127.0.0.1';
刷新网页
http://localhost/phpMyAdmin/index.php
然后使用mysql 的用户名以及密码登陆即可。
参考:
https://blog.csdn.net/elesos/article/details/81118970
https://blog.csdn.net/yjjddd85/article/details/89156139
https://blog.csdn.net/qq_36040161/article/details/79501417
https://blog.csdn.net/qq_15574035/article/details/76576990