
MySQL
优快云,记录美好生活
技术为王
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql group by分组后每组选取一条结果
直接说思路 按照某个字段进行分组 选出你想要的结果 回表查询 举个栗子 需求:查询订单表(id, user_id, create_time, update_time),按照user_id分组,查询该表中,每个用户最新的一条订单(表中update_time最大的) select * from order ss, (select MAX(sa.update_time) as time, sa.user_id FROM order sa where sa.user_id is not null GROUP原创 2021-11-04 11:41:51 · 3281 阅读 · 0 评论 -
You must reset your password using ALTER USER statement before executing this statement.
标题错误和You must reset your password using ALTER USER statement before executing this statement.错误都可以用以下方式解决。 问题的原因就是新密码不安全 要有字母数字字符,并且字母要大小写都有 这是一个合格的密码 alter user root@localhost identified by ‘Wbl2020#’; ...原创 2020-06-11 10:05:12 · 186 阅读 · 0 评论 -
MySQL 8.0.15安装过程(对不全的内容进行补充)
借鉴个人图书馆并对其进行补充 http://www.360doc.com/content/19/0312/16/55209520_820997120.shtml 借鉴此网站 进行的补充: 如果第二步第一句命令出现错误,无法进行, mysqld --initialize-insecure --user=mysql 使用此命令可以解决问题,如还出现其他问题自行百度。 ...转载 2019-04-18 11:49:41 · 270 阅读 · 0 评论