(圖解)windows下的mysql用戶端mysqlworkbench 連結虛擬機器上CentOS的mysql伺服器,虛擬機器安裝centos

來源:互聯網
上載者:User

(圖解)windows下的mysql用戶端mysqlworkbench 連結虛擬機器上CentOS的mysql伺服器,虛擬機器安裝centos

      本人在虛擬機器上CentOS的Linux環境下安裝了mysql伺服器,在本地Windows下安裝了mysql的用戶端mysqlworkbench,所以就想讓windows下的mysql用戶端mysqlworkbench 連結虛擬機器上CentOS的mysql伺服器,整個過程記錄如下:


一、安裝用戶端Mysql WorkBench

   1.下載安裝包:mysql-workbench-community-6.2.5-winx64.msi

     下載路徑:http://dev.mysql.com/downloads/workbench/

      


    2.僅僅下載workBench的安裝包是不行的,下載的上方還有段文字,介紹安裝的先決條件是安裝下面軟體:



       3.我只下載了Visual C++ Redistributable for Visual Studio 2013下的三個軟體:


       4.通過上面的途徑,一共得到四個安裝包,如:


       5.安裝步驟: 只要先安裝vcredist_x64.exe,然後再安裝mysql-workbench-community-6.2.5-winx64.msi 就OK,其它兩個可以不需要。



二、安裝Mysql服務端

        在CentOS下利用rpm -qa | grep mysql  命令查看是否已經安裝,沒有安裝的話 就用 yum install mysql  命令安裝,這種資料比較多,比較簡單,不再敘述。



三、windows下的mysql用戶端mysqlworkbench 連結虛擬機器上CentOS的mysql伺服器

            1.首先啟動mysql伺服器,如:

     


         2.查看伺服器IP、Port:

           

               3.windows下查看是否能夠Ping通IP:

               

     

             4.windows下查看是否能telnet 通IP、Port

              win7下需要安裝telnet服務,zip包下載後解壓可以直接使用,工具下載路徑:http://download.csdn.net/download/yuzongtao/8602985

             

              


             5.在mysql伺服器端給用戶端IP授權:

                 --分配許可權,root遠端存取
                      grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
                   --生效
                    FLUSH PRIVILEGES; 

 


                  6.這時連結報錯:

                   

          

                 7.關閉Linux防火牆

                  


                 8.按照授權的使用者名稱和密碼登陸,連結成功。

                 

            

                  


      





      


相關文章

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.