启动mysql
net start mysql
停止mysql
net stop mysql
本地root登录
mysql -uroot -p
退出
exit
显示数据库
show databases;
选择数据库
use 数据库名;
显示表
show tables;
显示表列
show columns from 表名;
启动mysql
net start mysql
停止mysql
net stop mysql
本地root登录
mysql -uroot -p
退出
exit
显示数据库
show databases;
选择数据库
use 数据库名;
显示表
show tables;
显示表列
show columns from 表名;