解決SSH串連linux中文顯示亂碼問題__Python

來源:互聯網
上載者:User

添加windows下mysql服務
以管理員身份開啟cmd,執行
mysqld –install
net stop mysql 忘記密碼找回

找到mysql資料庫中的my.ini設定檔,登入跳過密碼驗證,增加欄位skip-grant-tables然後儲存
skip-grant-tables 啟動mysql服務

net start mysql
開啟mysql目錄視窗,找到bin目錄下面的mysql.exe檔案,以管理員身份運行
在開啟的視窗中輸入密碼重設代碼

mysql>use mysql

mysql>update user set authentication_string=password(“123456”) where user=”root”;

最後將設定檔修改過來,登出skip-grant-tables即可,#skip-grant-tables然後儲存。重啟mysql服務
mysql

在linux

二、mysql安裝過程
在ubuntu終端下依次輸入命令:
sudoaptupdate sudo apt update sudo apt-get install mysql-server mysql-client

三、問題解決過程
1.開啟/etc/mysql/mysql.conf.d/mysqld.cnf 檔案,命令如下

2.找到[mysqld]段,並加入一行“skip-grant-tables”,如下圖,


3重啟mysql服務,用空密碼進入mysql管理命令列,切換到mysql庫,操作命令如下,與windows狀態下相同

再次輸入密碼啟動,OK

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.