赞
踩
直接按照以下图片进行执行
https://bbs.csdn.net/topics/391851148?list=19981256
存放在mysql的安装目录下
具体内容参考
# For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.6/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 = utf8mb4 [mysql] default-character-set = utf8mb4 [mysqld] character-set-client-handshake = FALSE character-set-server = utf8mb4 collation-server = utf8mb4_bin init_connect='SET NAMES utf8mb4' # 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:\software\mysql5.7 datadir = D:\Mysql\data port = 3306 # server_id = ..... # 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 = 16M read_rnd_buffer_size = 16M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
https://www.cnblogs.com/zlslch/p/5937784.html
基本思路就是暂时越过权限登录,修改密码,然后再登录
不过对于mysql5.7来说密码规则是有限制的了
MySQL 设置的密码中必须至少包含一个大写字母、一个小写字母、一个特殊符号、一个数字,
密码长度至少为8个字符
错误:ERROR 1290 (HY000): Unknown error 1290
https://blog.csdn.net/nicolelili1/article/details/78834473
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。