CentOS7 安裝mysql

來源:互聯網
上載者:User

標籤:wordpress   server   through   linux   mysql   

    Centos7 安裝mysql 

    由於本人是個純粹的linux小白,在自己電腦上用vmware安裝了Centos7開始了我苦逼之路,

見別人都自己安裝個什麼WordPress什麼的,實在是眼饞,所以就想自己也搞搞試試

    所以網上找教程吧,大概思路就是安裝mysql--nginx--php,誰知道安裝mysql的時候就遇上了第一個問題,根據網上的教程 # yum -y install mysql  mysql-server 等待。。完成後,

第二條命令 # /etc/init.d/mysqld start  

bash: /etc/init.d/mysqld: 沒有那個檔案或目錄

然後# cd /etc/init.d    #ll 確實沒有這個檔案 

直接輸入mysql 提示

ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/varql/mysql.sock‘ (2)

網上繼續搜教程吧

說是Centos7 放棄了mysql而用mariadb(mysql的一個分支,其他具體也不知道了)

# yum -y install mariadb*

等待ing.....

然後

#systemctl start mariadb

#systemctl enable mariadb


#mysql  就可以了 




寫的真爛。。

CentOS7 安裝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.