执行以下语句
sudo apt-get install mysql-server
出现
root@iZuf6cor8htiajrk5vtc76Z:~# sudo apt-get install mysql-server
sudo: unable to resolve host iZuf6cor8htiajrk5vtc76Z
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server
求解
你要用管理员身份进行安装的啊
http://blog.csdn.net/zhaihaifei/article/details/51749933
你好看错误是你的源里面没有mysql。我建议你用源码的方式进行安装mysql吧。
sudo apt-get update
sudo apt-get install mysql-server mysql-client
就可以了
http://blog.csdn.net/qq_35448976/article/details/53409401
看你报的unable to resolve host iZuf6cor8htiajrk5vtc76这个错误,应该是/etc/hosts文件修改导致的现在的文件和系统的root用户名字不匹配造成的,你可以查一下