error 1524: plugin ... in not loaded

gavinking0110 2016-11-07 11:51:47

1、安装mysql 5.7.16
2、修改my.ini为
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[client]

default-character-set=utf8
port = 3306

[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
basedir = "D:\Program Files\MySQL\MySQL Server 5.7"
datadir = "D:\Program Files\MySQL\MySQL Server 5.7\data"
tmpdir = "D:\Program Files\MySQL\MySQL Server 5.7\data"
socket = "D:\Program Files\MySQL\MySQL Server 5.7\data\mysql.sock"
port = 3306

log-error = "D:\Program Files\MySQL\MySQL Server 5.7\data\mysql_error.log"

# server_id = .....

max_connections = 100
table_open_cache = 256
query_cache_size = 1M

tmp_table_size = 32M
thread_cache_size = 8

innodb_data_home_dir = "D:\Program Files\MySQL\MySQL Server 5.7\data\"
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 128M
innodb_buffer_pool_size = 128M
innodb_log_file_size = 10M
innodb_thread_concurrency = 16
innodb-autoextend-increment = 1000

# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
join_buffer_size = 128M
sort_buffer_size = 32M
read_rnd_buffer_size = 32M

max_allowed_packet = 32M
explicit_defaults_for_timestamp = true

sql_mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"


3、下载mysql 5.6.27,并解压
4、拷贝其中的data文件夹中的mysql文件夹至5.7.16版本的对应位置

5、安装mysql-connector-odbc-noinstall-5.3.6-winx64

6、用root登陆mysql一切正常;添加root密码,再次用root加密码登陆,失败,显示“”error 1524: plugin ... in not loaded"


7、在my.ini中添加了skip-grant-tables,然后不用密码登陆root
8、mysql>use mysql;
9、mysql>update user set password=PASSWORD("123456") where user='root';

10、修改成功,再次root加密码登陆,失败,还是同样的问题


...全文
264 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
gavinking0110 2016-11-07
  • 打赏
  • 举报
回复
##################### @wangjian0228 感谢回复。 ##################### .err错误日志如下: 链接:http://pan.baidu.com/s/1c2OdQoC 密码:yu7n。 用户创建规则http://dev.mysql.com/doc/refman/5.7/en/create-user.html看了一上午,已经聚焦于mysql_native_password,但是还不会实操。索性就加了skip-grant-tables裸奔。 ##################### @yupeigu 感谢回复。 ##################### 应该是你提到的问题,但是具体怎么修改为mysql_native_password呢? 代码如下:
mysql> select user,password,plugin from user;
+------+-------------------------------------------+-------------------------------------------+
| user | password                                  | plugin                                    |
+------+-------------------------------------------+-------------------------------------------+
| root | *6BB4837EB743                 | *43B2D714E0B8E |
| root | *6BB4837EB7432919       | mysql_native_password                     |
| root | *6BB4837EB7432910       | mysql_native_password                     |
|      |                                                  | mysql_native_password                     |
+------+-------------------------------------------+-------------------------------------------+
4 rows in set (0.00 sec)
LongRui888 2016-11-07
  • 打赏
  • 举报
回复
试试修改mysql.user表的plugin字段为 mysql_native_plugin
致命的西瓜 2016-11-07
  • 打赏
  • 举报
回复
查看错误日志,或者参考5.7用户创建规则http://dev.mysql.com/doc/refman/5.7/en/create-user.html
1 课程目标 学会使用腾讯提供的云开发功能快速开发后台 数据接口,用于存储小程序中用到的数据 学会使用小程序中常见的一些API,比如:分享小程序,拨打手机电话,地图位置等 掌握快速上架一款小程序需要的步骤 前端相关的css以及html,vue等基础不作为本课程的重点,本课程将提供一个基于图鸟UI修改的企业产品展示前端代码,我们在此基础上使用云开发实现页面数据动态化。由于本人是后端开发,对于前端样式等不擅长,所以基本都是直接复制现成的样式做简单的修改,想要学习前端html,css,js,vue等基础知识的小伙伴可以不必考虑本课程,B站以及其他平台有大量的免费课程。 2 课程内容 本课程将实现一个完整功能的企业产品展示小程序,之前有人找我开发一个农用拖拉机企业展示的小程序,说是要用云开发来做,正好我之前没用过云开发,都是自己搭建后端API以及管理后台来开发,因此想着一边开发一边录一个云开发的课程,帮助一些同学快速入门云开发,将包括一下内容: 首页 主要产品推荐 顶部铲平轮播图展示 中间产品分类 轮播消息通知 产品价格咨询 用户留下联系方式 全部产品列表展示 产品详细信息展示 用户估价咨询表单,用户向企业出售产品,类似厂家回收 个人中心 注册登录 询价记录 拨打企业电话 查看企业地址 查看企业工作时间 3 使用技术 vue2 uniapp 图鸟UI javascript 腾讯云开发 4 需要的开发工具 图鸟原始模板:https://ext.dcloud.net.cn/plugin?id=14378 hbuilder开发工具: https://www.dcloud.io/hbuilderx.html 微信开发者工具:https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html

56,679

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧