使mysql写日志

编辑my.ini

[mysqld]

log 

mysql用limit分页

select * from tablename limit offset,rowcount,offset从0开始,rowcount是返回的条数

忘记密码

1、用任务管理器kill掉mysql进程
2、执行mysqld --skip-grant-tables
3、新开cmd窗口执行mysql(此时就不需要密码了)
4、执行>use mysql
>update user set password=password("new_pass") where user="root";
5、以正常方式重新启动mysql

相关文章:

  • 2022-12-23
  • 2021-09-27
  • 2021-06-13
  • 2021-07-27
  • 2021-11-06
  • 2021-07-22
  • 2021-08-13
  • 2021-10-25
猜你喜欢
  • 2021-10-21
  • 2022-12-23
  • 2021-05-27
  • 2021-10-06
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案