Mysql小结笔记 不指定

, 2007/08/14 23:11 , MYSQL , 评论(0) , 阅读(5718) , Via 本站原创 | |
一、查询双重的记录
SELECT username FROM info where sex='1' GROUP BY 'username' HAVING count(*)>1;
二、Mysql添加权限
GRANT select,LOCK TABLES on database.* to user@localhost identified by '123456fdgdf#df';
三、Mysql追加权限
GRANT SELECT,INSERT,UPDATE,DELETE,INDEX ON database.* TO user@localhost;
四、Mysql删除权限REVOKE ALL on database.* FROM user@localhost;
REVOKE grant option on database.* FROM user@localhost;
五、PHP支持的密码格式
SET PASSWORD FOR user@localhost = OLD_PASSWORD('sdjfk345798');
Tags: ,
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]