创建MySQL用户及赋予用户权限 http://solin.blog.51cto.com/11319413/1875472
权限分布 |
可能的设置的权限 |
表权限 |
'Select', 'Insert', 'Update', 'Delete', 'Create', 'Drop', 'Grant', 'References', 'Index', 'Alter' |
列权限 |
'Select', 'Insert', 'Update', 'References' |
过程权限 |
'Execute', 'Alter Routine', 'Grant' |
查看所有用户 select * from mysql.user;
查看用户权限 show grants for solin@localhost;