---创建数据库
CREATE DATABASE zdb_mysql;
---创建用户:
CREATE USER ‘zdb_mysql‘@‘localhost‘ IDENTIFIED BY ‘zdb_mysql‘; #本地登录
---附权限:
grant all privileges on zdb_mysql.* to ‘zdb_mysql‘ @‘localhost‘ identified by ‘zdb_mysql‘; flush privileges; #刷新系统权限表
---创建表
create table class ( code varchar(20) primary key, name varchar(20) not null );
请使用手机"扫一扫"x
原文地址:https://www.cnblogs.com/zdb292034/p/8964164.html
时间: 2024-11-11 01:47:44