MySQL一些坑。

來源:互聯網
上載者:User

標籤:bsp   訪問   nbsp   忘記   資料   word   執行   res   ...   

 

今天在調試MySQL出現了一些坑。需要記錄一下。

# These are commonly set, remove the # and set as required. basedir =E:\MySQL\mysql-5.7.16-winx64\mysql-5.7.16-winx64 datadir =E:\MySQL\mysql-5.7.16-winx64\mysql-5.7.16-winx64\data #bind-address=127.0.0.1 port =3306 #skip-grant-tables #server_id =....

上面一句 skip-grant-tables這句話就是你在無法知道root密碼的時候進行非授權進去修改密碼的。

但是我無論怎麼做:

update user set password=password(‘123456‘) where user=‘root‘;

確發現我始終是不能更改這個密碼總是會提示我什麼什麼[email protected]無法訪問之內的,最後找到一個方法處理具體是哪位的部落格忘記記錄了

直接修改授權的密碼

然後能登陸了,但是你發現你建立庫的時候或者表的時候,還是會出現錯誤。

這時候你需要再次執行

這就ok了

建立庫

建立表

查詢

查詢所有的資料庫

終於找到喜歡命令列的理由了。

 

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.