1.添加用户
grant all on 数据库名.* to 用户名@localhost identified by '密码';
例:grant all on hxsg.* to hxsg identified by 'hxsg';
如果 用户名@localhost 不带host的情况下支持所有host进行连接,数据中该字段的值为%
1.添加用户
grant all on 数据库名.* to 用户名@localhost identified by '密码';
例:grant all on hxsg.* to hxsg identified by 'hxsg';
如果 用户名@localhost 不带host的情况下支持所有host进行连接,数据中该字段的值为%