1)mysql服務的安裝html
1.1 安裝Linux系統時選擇安裝mysql服務mysql
1.2 若是Linux服務器能鏈接外網,可使用yum進行安裝linux
2)mysql數據庫修改root密碼sql
[root@localhost] mysqld_safe --skip-grant-tables &數據庫
而後再開一個終端,服務器
[root@localhost] mysqlurl
mysql> use mysql;spa
mysql> UPDATE user SET password=password("root") WHERE user='root'; .net
mysql> flush privileges;3d
mysql> exit;
3)啓動mysql
[root@localhost] service mysqld start
4)關閉防火牆
[root@localhost] service iptables stop
5)linux登陸mysql
[root@localhost] mysql -uroot -p
Enter password: (輸入密碼便可)
http://blog.csdn.net/mr__fang/article/details/8874411
http://jingyan.baidu.com/album/a378c9609eb652b3282830fd.html?picindex=1
http://99tiantian.blog.163.com/blog/static/22005651201232321811472/
http://www.111cn.net/database/mysql/42040.htm
http://jingyan.baidu.com/article/0320e2c198ad5f1b87507bc8.html
http://blog.knowsky.com/193552.htm