随笔分类 -  MySQL

MySQL用户权限管理
摘要:1、显示所有用户 SELECT User, Host, Password FROM mysql.user; 2、授权用户使用某个数据库。 grant select on my_db.* to hjh; 3、设置密码 set password for hjh = password('xxx'); 4、 阅读全文

posted @ 2019-09-05 15:12 angelshelter 阅读(87) 评论(0) 推荐(0) 编辑

Mysql遇到的坑
摘要:2018-04-09 这个虽然跟粗心有关,但是Mysql没报错是哪般? select sum(play_count) from tb_user_login where user_id = 61 and login_time > 2018-04-09 结果:2157 select sum(play_c 阅读全文

posted @ 2018-04-09 11:18 angelshelter 阅读(174) 评论(0) 推荐(0) 编辑

mysql完装成功后的提示。
摘要:To start mysqld at boot time you have to copysupport-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE M 阅读全文

posted @ 2018-03-31 20:35 angelshelter 阅读(292) 评论(0) 推荐(0) 编辑

MySQL相关知识总结
摘要:1. 显示所有表 show tables; 还有information_schema数据库里面有tables表,记录了所有表信息 use information_schema; select * from tables; 2. MySQL联合查询更新 update a , b set a.name= 阅读全文

posted @ 2015-04-07 17:17 angelshelter 阅读(146) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示