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
总结
Copyright © 2019- huatuo0.cn 版权所有 湘ICP备2023017654号-2
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务