1. 如何完全的卸载MySQL
1
sudo apt-get --purge remove mysql-server-5.1 mysql-common mysql-client libmysqlclient15-dev libmysql-ruby
卸载过程中会询问你是否要卸载所有相关的配置文件已经数据库,选择Yes。
2. 安装完MySQL后如何设置root用户的密码
mysqladmin -u root password new-password
original link: http://Apiaceae.github.io/blog/2010/01/20/linux-ubuntu-tips-002/ written by Hooker posted at http://Apiaceae.github.io