mysql管理和基本操作

來源:互聯網
上載者:User

標籤:多個   mysql配置   連接埠   慢查詢日誌   基本   sql語句   上網   密碼   備份   

 

進去mysql:mysql –uroot –p

重啟資料庫:[[email protected] ~]# /etc/init.d/mysqld restart

1.Mysql忘記root密碼

 




                                                    // 查看mysql的資料庫

 

 //修改root密碼

2.skip-name-resolve(跳過網域名稱解析,只允許IP解析,mysql速度提升)

skip-innodb(跳過資料引擎)

3.配置慢查詢日誌(查看sql語句運行效率)

//1秒記錄一次

4.innodb與myisam
  http://www.lishiming.net/thread-97-1-1.html
5.mysql配置調優

  http://www.lishiming.net/thread-5758-1-1.html
6.mysql的基本操作

註:“*.*”表示庫.表
 


7.備份與恢複資料庫
 
 

8.一台mysql伺服器啟動多個連接埠

  http://www.lishiming.net/thread-63-1-1.html

 (以上網址是我學習時參考到的)

 

mysql管理和基本操作

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.