Wishlist 0 ¥0.00

MySQL数据库迁移(直接复制文件)

有些时候为了节省效率,mysql数据库文件直接复制另外一个数据库。步骤如下:

说明:这里用的mysql是mysql-8.0.23-winx64的windows的版本,注意版本需要一致,不然很可能不成功

1、先停止mysql服务 进入到bin下:cd  D:\Tool\mysql-8.0.23-winx64\bin,然后   net stop mysql 

2、进入到mysql的data文件夹下:复制数据库的文件和ibdata1和mysql.ibd三种文件,表和表结构必须一致 

 3、重启mysql服务,net start  mysql
 再看,已经成功的复制了!!!

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.