ubuntu下的mysql的安裝與配置

來源:互聯網
上載者:User

標籤:ubuntu mysql   安裝   配置   

    雖然項目緊張,仍然把一些基本的知識點紀錄下分享,共用好開源的東西,創造實體價值!

    ubuntu下的mysql伺服器安裝配置如下:

一.安裝方法

1.    sudo apt-get install mysql-server2.    sudoapt-get install mysql-client3.    sudo apt-get install libmysqlclient-dev

二.目錄結構

    新版本中的mysql和以前的目錄結構有所變化:

    啟動指令碼:/etc/init.d/ mysql

    設定檔路徑:

    /etc/mysql

    真正的設定檔如下:

 650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/73/04/wKiom1XyOAzx4RvhAAFJFd6Dtlg378.jpg" title="1.jpg" alt="wKiom1XyOAzx4RvhAAFJFd6Dtlg378.jpg" />

   設定檔 是:mysqld.cnf

三.常用的配置如下

3.1讓root遠程登入配置方法

使用終端登入:mysql -u root -p;grant all privileges on *.* to [email protected]"%" identified by "password";flush privileges;

  修改設定檔:mysqld.cnf  

bind-address        = 127.0.0.1

 注釋掉這一行.

3.2其它

本文出自 “LinuxQt濟南高新區” 部落格,請務必保留此出處http://qtlinux.blog.51cto.com/3052744/1693736

ubuntu下的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.