mysql
筱馨恋鸽
这个作者很懒,什么都没留下…
展开
-
MySQL sql_safe_updates 分析
MySQL sql_safe_updates 分析我在练习MySQL操作语句时,使用一条完全没有错误的语句:update students set name=‘drake’ where name=‘chuan’;却报了如下错误:Error Code: 1175. You are using safe update mode and you tried to update a table w...转载 2019-03-01 10:15:17 · 189 阅读 · 0 评论 -
MySQL跳过密码登录并修改用户密码
1、跳过密码登录:MySQL配置文件/etc/my.cnf中,在[mysqld]下添加skip-grant-tables,关闭 MySQL服务并重新开启;输入命令:mysql -u root -p回车后,要求输入密码,直接回车跳过,则直接进入MySQL。2、网上搜到的命令为如下mysql> update user set password=password(“新密码”) ...转载 2019-03-29 15:44:34 · 17203 阅读 · 0 评论