mysql odbc localhost_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

bebbb004db4a19adf1caa3641bf9ab12.png

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

96b760b6893db93b3aa387e7d97fd214.png

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

c2c7bc5bad623633545f80a1fd2da902.png

2.4

mysql>use mysql

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

mysql>flush privileges;

mysql>exit

2270ccad8940033e44d84025330a118b.png

2.5  net start mysql

2.6  mysql -u root -p

2.7 set password=password("123456");

5d7422a54b3b55e4d300fe26c9a5554e.png

9e483c3272a49123d77d084279c87e3a.png

3. Thinking

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

That's mean Writing is better than Minding.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值