将mysql数据从Windows迁移到Linux中
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
·
1、先在windows上将数据都导出一个文件。(这里以某个数据库为例)
导出整个数据库
mysqldump -u 用户名 -p密码 数据库名 > 导出的文件名
导出指定表
mysqldump -u 用户名 -p密码 数据库名 表名1 表名2 ... > 导出的
文件名
2、将数据从Windows拷贝到Linux中。
3、登录Linux的MySql数据库
4、创建与windows同名的数据库名。
mysql> create database qt;
查看字符集是否与windows一致,不一致则进行相应修改。
mysql> show create database qt;
mysql> alter database qt character set utf8;
mysql> show create database qt;
5、导入数据
6、查看结果
A beautiful web dashboard for Linux
最近提交(Master分支:8 个月前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐




所有评论(0)