
mysql
星宇笔记
业精于勤荒于嬉
展开
-
MySQL8.0登录 提示 caching_sha2_password
1.情况如下:如果忘记密码,可以在mysql的.my.ini 里面配置该参数,可以跳过密码验证:[mysql] skip-grant-tables2.通过cmd登录mysqlmysql -u root -p use mysql; SELECT Host, User, plugin from user;可以看到 root用户的验证器插件为caching_sha2_password3.修改身份验证类型(修改密码) :xxxxx为自己的密码ALTER...原创 2021-06-15 15:50:36 · 2765 阅读 · 1 评论 -
MySQL 5.7root用户密码修改和开放远程登录
UPDATE user SET authentication_string=PASSWORD("xiayu"), HOST='%',password_expired='N' WHERE user='root';原创 2021-06-02 18:18:20 · 692 阅读 · 0 评论 -
mysqld --initialize 错误:mysqld: Can‘t create/write to file ‘G: ool\mysql\data\is_writable‘
G:\tool\mysql\bin>mysqld --initializemysqld: Can't create/write to file 'G: ool\mysql\data\is_writable' (Errcode: 2 - No such file or directory)2021-06-02T04:01:42.535302Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use -.原创 2021-06-02 12:22:36 · 6833 阅读 · 5 评论