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\';

分类:

技术点:

相关文章:

  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-12-02
  • 2022-02-09
猜你喜欢
  • 2021-12-02
  • 2021-11-15
  • 2021-12-02
  • 2022-12-23
  • 2021-05-16
  • 2021-07-16
  • 2021-12-29
相关资源
相似解决方案