ubuntu安装mysql
关键字:安装MySql;aptitude
参考资料url: >http://my.donews.com/hite/2008/03/17/post-080317-204653-919/
刚开始不知道怎么装mysql,在终端打了mysql. 提示出mysql-server.然后兴奋地运行了sudo apt-get install mysql-server
装完以后输入 mysql start提示以下错误
ERROR2002(HY000):Can’tconnecttolocalMySQLserverthroughsocket‘/var/run/mysqld/mysqld.sock’(2)
查找了半天不知道是何原因,有人说因为没有装上server端。只好重新装
运行 sudo apt-get install mysql-server-5.0
又没装成功,提示:
/etc/init.d/mysql:ERROR:Usingexpire_logs_dayswithoutlog_bincrashestheserver.SeeREADME.Debian.gz
郁闷终于找到解决办法了
http://ubuntuforums.org/showthread.php?p=4061837
我在终端运行:
sudoaptitudepurgemysql-server-5.0
sudoaptitudepurgemysql-client-5.0
sudoaptitudepurgemysql-client
sudoaptitudepurgemysql-server
直到在终端输入mysql时提示没有命令为止。 :)然后再运行sudo apt-get install mysql-server-5.0OK 终于搞定。
aptitude类似apt-get命令; aptitude purge类似apt-get remove卸载命令
aptitude文档查阅:http://man.ddvip.com/linux/debian/aptitude/
相关推荐
wannagonna 2020-02-09
liyansring 2020-08-15
liym 2020-07-20
dongfangxiaozi 2020-07-19
katanaFlower 2020-07-05
JM 2020-06-21
咻咻ing 2020-06-16
zhangpan 2020-06-11
greent00 2020-06-10
csdmeb 2020-06-08
VFCSDN 2020-06-07
IsanaYashiro 2020-06-06
GluttonousZX 2020-06-06
yss0 2020-06-02
lilygg 2020-05-29
zwt00 2020-05-29