[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
MySQl忘记密码怎么办?解决方案如下:
1、找到my.ini 文件
如果是默认的安装地址,文件在
C:\ProgramData\MySQL\MySQL Server 5.7
ProgramData 默认隐藏,需要勾选取消隐藏文件夹
2、设置权限认证跳过
打开my.ini,在 [mysqld] 下 加上如下指令
skip-grant-tables
3、重启 mysql 服务
这里可以直接在命令行中连续输入 或者在服务里找到mysql 服务重启
net stop mysql
net start mysql
没设置环境变量,需要到一下目录,输入cmd运行后续指令
4、重启服务后, 输入
mysql -u root -p
dos窗口会提示输入password
无视,直接回车即可登录
重新设置密码
5、选择 mysql 数据库
use mysql
6、更新 password
update user set authentication_string = password ( '123456' ) where user =
'root' ;
提示1row,一般就成功了
注:修改 authentication_string, 而不是password 字段
7、在 my.ini 文件中去掉
skip-grant-tables
8、重启 mysql 服务即可