码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2016-04-01 13:01:22      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:

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.

      

        

        

 

     

                   

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

标签:

原文地址:http://www.cnblogs.com/rocky-fang/p/5344454.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!