mysql 允許遠程登入配置,mysql允許遠程登入

來源:互聯網
上載者:User

mysql 允許遠程登入配置,mysql允許遠程登入

兩步:

一、 更改“mysql”資料庫裡的“user”表裡的“host”項(經此步便可在遠程登入)

x:\>mysql -u root -pvmware

mysql> use mysql;
mysql> update user set host = ‘%’ where user = ‘root’;
mysql> select host, user from user;

mysql> flush privileges;


二、允許擷取表及內容(經此步便可擷取表及資料)


在mysql/bin 目錄下執行下面命令即可

[root ~]# mysql_upgrade -uroot -p


相關文章

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.