
DB
文章平均质量分 82
yangyongdehao30
这个作者很懒,什么都没留下…
展开
-
linux忘记Mysql密码
停止服务# /etc/init.d/mysql stop跳过安全设置# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &以root用户登录# mysql -u root mysql更新密码mysql> update user set password=password('newpassword') wher原创 2017-01-19 14:49:03 · 527 阅读 · 0 评论 -
mysql时间运算
SECOND 秒 SECONDS MINUTE 分钟 MINUTES HOUR 时间 HOURS DAY 天 DAYS MONTH 月 MONTHS YEAR 年 YEARS MINUTE_SECOND 分钟和秒 "MINUTES:SECONDS" HOUR_MINUTE 小时和分钟 "HOURS:MINUTES"原创 2017-05-10 09:45:30 · 798 阅读 · 2 评论 -
Mysql总结
一个web开发者,对mysql的了解必不可少,以下是个人以程序员角色对mysql的总结1.常用函数in 、exists、 not in 、not existsin是子查询,先遍历内部表,然后外部表来匹配exist 是函数查询,直接遍历外部表eg. select A.id from A where A.pid in (select B.id from B) 执行计划:...原创 2018-08-06 17:09:48 · 673 阅读 · 0 评论