Questions about MySQL Database migration

Source: Internet
Author: User

A few days ago because of the installation of lamp problem, and then want to reinstall Lamp, the results do not know why, but appeared/usr/bin/dpkg return an errror (100), so I put the kpkg to unload, and the result this unloading is very, The original dpkg is all the installation of Linux to go through a step, it is a foundation,, not all of its installation can not be installed, unless you install the source package. Anyway, I was not done, and then the result is the re-installation system ...


Reinstall the system, after the problem came,, lamp because of the problem, and then reinstall the system, and then do not want to install lamp,, and then find the same, and I think he is more useful than lamp, that is xampp ... After installation, it is to transfer the website source code and database ...


But after the transfer some data tables do not exist, this can really scare me, because the data is very important, so like all kinds of methods, and then understand ... The original tables when the engine is selected InnoDB, so it will not generate myi and myd table, will only generate the frm suffix file,, so in the transfer of the database only the frm file transfer past is far from enough ... Also need to transfer (Ibdata) (IB_LOGFILE0) (ib_logfile1) These three files to the database directory, which you will find these tables are still not used,, so the last step is to restart MySQL ....



Ha ha... Finally ended, and this is what you will find all the data intact, isn't it great AH!!!

Questions about MySQL Database migration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.