用yum快速安裝mysql資料庫

來源:互聯網
上載者:User

1掛載Linux系統光碟片

mount/dev/cdrom/media

2切換到/etc/yum.repos.d/

cd/etc/yum.repos.d/

3修改設定檔

cprhel.debuginfo.repoyum.repo.bak(備份)

cpyum.repo.bakyum.repo重新命名)

vimyum.repo設定檔)


[base]
name=base
baseurl=file:///media/Server
gpgcheck=0

:wq!(儲存退出)

4yumcleanall清除yum緩衝)

5yum-yinstallmysql-server9(安裝mysql)
6servicemysqldstart(啟動服務)
7mysql-uroot以root身份登入並授權)
GRANTallON*.*TO'root'@'%'identifiedby'123123';

8在windows上安裝navicat,再使用navicat訪問mysql。

本文出自 “MySQL資料庫” 部落格,請務必保留此出處http://5983944.blog.51cto.com/5973944/1298867

相關文章

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.