ITPub博客

首页 > 数据库 > MySQL > 创建数据库、业务用户

创建数据库、业务用户

原创 MySQL 作者:laojiangjiji 时间:2018-01-01 13:08:23 0 删除 编辑
create database xxx character set utf8 collate utf8_bin;
grant all privileges on xxx.* to 'xxx'@'%' identified by 'pass' with grant option;
grant all privileges on xxx.* to 'xxx'@'127.0.0.1' identified by 'pass' with grant option;
grant all privileges on xxx.* to 'xxx'@'localhost' identified by 'pass' with grant option;
grant all privileges on xxx.* to 'xxx'@'hostname' identified by 'pass' with grant option;
grant select on mysql.proc to xxx;
grant show databases on *.* to xxx;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29911917/viewspace-2149555/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-09-23

  • 博文量
    35
  • 访问量
    48739