Mysql denied for user 'odbc@localhost' || denied for user 'root@localhost'
2016-04-01 11:55
621 查看
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.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之alter语句用法总结
- skip-grant-tables:非常有用的mysql启动参数
- Mysql之case语句(附带实例)
- 服务器慢 mysql-bin.000001文件占满磁盘的原因与解决
- mysql查询今天、昨天、7天、近30天数据
- MySQL批量SQL插入性能优化
- 图解MySQL事务隔离级别
- 深入mysql慢查询设置的详解
- mysql优化 之 group by索引松散扫描和紧凑扫描
- 学到的较复杂的 mysql 语名
- mysql-5.6.17-win32免安装版配置详解
- mysql 执行的查询过程
- MySQL Replication, 主从和双主配置
- bind+mysql+dlz
- MySQL备份之mysqldump备份对象及与mysqlpump对比
- mysql 中对记录随机排序
- MySQL5.7.11 免安装版配置(WIN 64bit)
- MySQL Proxy工作机制浅析
- mysql 自动执行事件
- MySQL备份之mysqldump工具--lock-all-tables、--single-transaction以及--lock-tables参数