- 运行mysql -u root -p时报错信息,已经安装mysql-client:
The program ‘mysql’ can be found in the following packages:
* mysql-client-core-5.7
* mariadb-client-core-10.0
- 解决办法:
sudo apt-get purge mysql-client-core-5.6
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt install mysql-client-core-5.7
sudo apt install mysql-server
- 参考: