windows串連mac的mysql資料庫

來源:互聯網
上載者:User

標籤:ges   串連   聯絡   nbsp   mac   連結   win   限制   mysql資料庫   

 

因為用mac的串連資料庫軟體匯入資料特別慢,想使用windows的工具去匯入資料。

 

 

1、在mac上先安裝好mysql。

2、在虛擬機器中的win安裝好mysql。

3、在虛擬機器中的mysql建立遠程登陸使用者並且授權。

  -  > grant all PRIVILEGES on test_db.* to [email protected]‘192.168.1.123‘  identified by ‘123‘;

     如下:

      test_db: 上面的語句表示將 test_db 資料庫的所有許可權授權給 root 這個使用者,允許 root 使用者在 192.168.1.101 這個 IP 進行遠程登陸,並設定 root 使用者的密碼為 123 。 可以寫成 *.* 代表所有資料庫的所有表。

      all PRIVILEGES:表示的所有許可權。

      root : 表示你想授權於哪個賬戶,可以是存在的使用者,反之。

      192.168.1.123   表示允許遠端連線的 IP 位址,如果想不限制連結的 IP 則設定為“%”即可。    

 

4、使以上內容立即生效:

   -> flush privileges; 

 

大家有什麼不明白的地方可以發郵件聯絡於我;

郵箱: [email protected]

 

windows串連mac的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.