1、安装mysql:
udo apt-get install mysql-server udo apt-get install mysql-client udo apt-get install php5-mysql(用于连接php和mysql)
查看mysql是否运行
aux | grep mysql
启动命令
/etc/init.d/mysql start
2.删除mysql
按顺序执行以下命令
udo apt-get autoremove --purge mysql-server-5.0 udo apt-get remove mysql-server udo apt-get autoremove mysql-server udo apt-get remove mysql-commo
清理残留数据
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
总结
以上就是mysql与apt-get在ubuntu下卸载和安装的详细内容,更多请关注php中文网其它相关文章!
声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论