常用的MySQL数据库操作语句:
https://blog.csdn.net/peng12290/article/details/78977589
MySQL基本命令行操作:
net start mysql 启动服务
net stop mysql 停止服务
mysql –u root –p(密码) 连接数据库
update user set password=password(‘123456’)where user=‘root’; 修改密码
update mysql.user set authentication_string=password(‘123456’) where user=‘root’ and Host = ‘localhost’; 修改密码
flush privileges; 刷新数据库
show databases; 显示所有数据库
use dbname; 打开某个数据库
show tables; 显示数据库mysql中所有的表
describe user; 显示表mysql数据库中user表的信息
create databasename; 创建数据库
use databasename; 选择数据库
exit; 退出Mysql
? 命令关键词 : 寻求帮助
– 表示注释



