mysql 总结


1 mysql8.0版本,修改数据库密码:

alter  user 'root'@'localhost' identified by '新密码';  https://www.cnblogs.com/dahuzuidai/p/14870324.html

5.7版本的http://c.biancheng.net/view/7152.html

2 将 .sql文件导入 数据库

https://blog.csdn.net/weixin_37887248/article/details/80897230

 source  sql文件的路径(注意你的文件路径要是复制来的,要将"\"全部换成“/”)

 3 SHOW VARIABLES LIKE 'char%';   查看编码

4 status;  查看当前数据库 信息;