fsong
  1. 先创建数据库
  2. 创建用户并赋予一个数据库的所有权限
use mysql;
create database databaseName character set utf8;
grant all privileges on databaseName.* to username@\'ip\' identified by \'password\';

举例:

use mysql;
create database test_db character set utf8;
grant all privileges on test_db.* to testuser@\'localhost\' identified by \'123456\';

分类:

技术点:

相关文章:

  • 2021-08-08
  • 2021-07-19
  • 2021-12-10
  • 2021-08-12
  • 2021-12-10
  • 2021-04-20
  • 2021-11-21
  • 2021-11-23
猜你喜欢
  • 2021-05-16
  • 2021-07-16
  • 2021-12-10
  • 2021-06-18
  • 2021-11-22
  • 2021-09-24
  • 2021-11-14
  • 2021-12-06
相关资源
相似解决方案