关系型数据库:mysql
2017-05-31 本文已影响0人
普普通通的我
启动mysql mysql,SERVER restart

mysql -u root -p +如果有密码输入密码,没有密码直接回车以root用户登录mysql
显示数据库 show database;

创建数据库character (字符编码)
create database bqd default character set utf8; bqd 数据库名
创建用户名:
grant all on bqd.* to bqd@localhost identified by 'bqd#@!';
grant all on webapp.* to webapp@localhost identified by 'webapp#@!';

登录数据库mysql -u用户名-p回车

查看信息
use bqd;
退出quit