程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> MySQL綜合教程 >> Mysql denied for user 'odbc@localhost' || denied for user 'root@localhost',

Mysql denied for user 'odbc@localhost' || denied for user 'root@localhost',

編輯:MySQL綜合教程

Mysql denied for user 'odbc@localhost' || denied for user 'root@localhost',


1. Question Description:

    1.1  mysql  version:  mysql-5.7.11-win64.zip

    1.2  if you connect to the mysql  service the first time, you may come across some problems

          1.2.1  mysql -u root -p (enter), no password(enter), you will see

                  

          1.2.2   if you want to update the user's password like "update user set password=.....", you will see

                  

    

   2. Solution:

       2.1 net stop mysql(stop the mysql service)

       2.2 mysqld -nt --skip-grant-tables (you will see cusor is waiting, it's ok,)

       open another cmd window

       2.3 mysql

      

       2.4

             mysql>use mysql

             mysql>update user set password=password("123456") where user="root";

             mysql>flush privileges;

       mysql>exit

          

      2.5  net start mysql

      2.6  mysql -u root -p

        2.7 set password=password("123456");

       

       

  3. Thinking

          I had meet the problem before, but forget how to set it,

          That's mean Writing is better than Minding.

      

        

        

 

     

                   

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved