標籤:blank display border target style
1)啟動mysql
啟動mysql前,要檢查連接埠3306是否被佔用;
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; margin: 0px; border-left: 0px; display: inline" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/5B/4E/wKioL1UGRQbj1nqhAAIJFoGZLrw482.jpg" "646" height="417" />
2)串連mysql
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; margin: 0px; border-left: 0px; display: inline" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/5B/4E/wKioL1UGRQewNW1nAAMcr_xTHuk815.jpg" "570" height="446" />
3)修改密碼,空密碼是相當不安全的,必須第一時間修改密碼
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; margin: 0px; border-left: 0px; display: inline" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/5B/4E/wKioL1UGRQfwlLkIAAHUiQQ1zCI419.jpg" "657" height="261" />
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; margin: 0px; border-left: 0px; display: inline" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/5B/4E/wKioL1UGRQihAJqHAAKSfF5Yko0669.jpg" "730" height="319" />
4)刪除匿名使用者
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; margin: 0px; border-left: 0px; display: inline" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/5B/4E/wKioL1UGRQmjDKrSAAIG1Q3i4LM908.jpg" "534" height="465" />
5)忘記密碼如何解決
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; margin: 0px; border-left: 0px; display: inline" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/5B/4E/wKioL1UGRQqBS-oYAAHW50GLhRY581.jpg" "558" height="285" />
保證mysql當時無人串連
#vim /etc/my.cnf
在[mysqld]的段中加上一句:
skip-grant-tables /跳過授權表
skip-networking /禁止遠端連線,保證資料庫安全
例如:
[mysqld]
datadir=/mydata/data
skip-networking
skip-grant-tables
重啟mysql,進入其中後修改密碼。然後刪除剛才所添加的內容,skip-grant-tables,skip-networking.
MySQL(一)基礎