Ubuntu安裝Mysql過程及遠程問題解決

來源:互聯網
上載者:User

標籤:

ubuntu下執行sudo apt-get instlll mysql-serversudo apt-get install mysql-client

 

安裝過程中會有文字介面設定密碼

牢記密碼

 

Mysql圖形化工具綠色版 推薦

Mysql Workbench:

https://yunpan.cn/cPSFXPvGEhh5v  訪問密碼 f31c

Navicat for Mysql:(推薦)

https://yunpan.cn/cPSFW83eSk9kU  訪問密碼 6317

本地串連 :

mysql –h 127.0.0.1 –u root –p

本地串連 :mysql –h 127.0.0.1 –u root –p沒有問題區域網路串連例如mysql -h 192.168.126.131 -u root -p發生2003 錯誤解決方案:由於ubuntu下 預設配置綁定ip為本地ip修改/etc/mysql下 my.cnfvi /etc/mysql/my.cnf在bind-address = 127.0.0.1  前加 # 注釋執行/etc/init.d/mysql restart 重啟問題更新 出現1045 驗證錯誤終極解決方案:在Mysql本地 Mysql -u root -p 進入 mysqluse mysql select user,passwd,host from user;查看使用者名稱密碼GRANT ALL PRIVILEGES ON *.* TO ‘ROOT‘@‘*‘  IDENTIFIED BY ‘‘ WITH GRANT OPTION授予所有外部許可權orUPDATE user SET Password=PASSWORD(‘newpassword‘) where USER=‘root‘;為所有使用者建立同一密碼最後執行FLUSH PRIVILEGES;重新整理

 

 

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