MySQL零碎积累 ■ 在给MySQL添加新用户时可以这么操作: create user 'newUser' identified by 'password'; grant all privileges on *.* to 'newUser'@'%'; flush privileges; newUser是用户名,password是密码,grant all指把从select到drop,delete等等各种关键字的权限都赋给这个用户,而这个用户可以作用的库和表是*.*(所有库中的所有表),@'%'表…