安装虚拟机
百度搜索 如何在ubuntu下安装MySQLUbuntu16.04上安装MySQL(详细过程)_m0_67393039的博客-CSDN博客_ubuntu安装mysql
百度搜索 如何改账号密码 ERROR 1698 (28000): Access denied for user 'root'@'localhost'_God_Leek的博客-CSDN博客
大概思路:
ctrl+alt+t
sudo cat /etc/mysql/debian.cnf
创建数据库
在MYSQL里用createtable()函数创建表.怎么会提示:No database selected?
创建表及表关联
Sams Teach Yourself SQL in 10 Minutes (Fifth Edition) – Ben Forta create.txt
为表添加内容
populate.txt
自己也练习练习
insert into Customers(cust_id ,cust_name,cust_address,cust_city ,cust_state,cust_zip,cust_country,cust_contact,cust_email) values('1234567890','Fred','pku','sz','GD','520520','CN','Liang','Fred@pku.edu.cn')