用mysql怎么建库啊 ,我是新手,最好讲的详细点,带截图 谢谢
展开全部
DROP DATABASE `wordpress`;
CREATE DATABASE `wordpress` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'xxxuser'@'localhost' IDENTIFIED BY 'xxx123';
GRANT USAGE ON * . * TO 'xxxuser'@'localhost' IDENTIFIED BY 'xxx123' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
GRANT ALL PRIVILEGES ON `wordpress` . * TO 'xxxuser'@'localhost' WITH GRANT OPTION ;
flush privileges;
CREATE DATABASE `wordpress` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'xxxuser'@'localhost' IDENTIFIED BY 'xxx123';
GRANT USAGE ON * . * TO 'xxxuser'@'localhost' IDENTIFIED BY 'xxx123' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
GRANT ALL PRIVILEGES ON `wordpress` . * TO 'xxxuser'@'localhost' WITH GRANT OPTION ;
flush privileges;
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
CREATE DATABASE test;
use test;
drop table if exists users;
create table users(
username varchar(10) not null unique,
password varchar(10) not null
)ENGINE=InnoDB;
use test;
drop table if exists users;
create table users(
username varchar(10) not null unique,
password varchar(10) not null
)ENGINE=InnoDB;
追问
这是在哪里写的啊 可以写下每行代码的注解么 谢谢了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询