MySQL 5 Database Management

Source: Internet
Author: User

1. Data Files
1) MyISAM Table: There are three related files, data file. MYD, index file. myi, target file (definition file). FRM
2) bdb table: contains two files, one. DB data file and one. frm target file.
3) InnoDB table: it has its own target file. frm, but the actual data is stored in the upper-level Directory, which belongs to the same level as the database.

2. Log Files
Error Log: Under the directory c:/program files/MySQL Server 5.0/data/, the. Err File

3. database backup and recovery
Simplest and intuitive method: use the official MySQL administrator GUI tool

1) backup/Restor
Backup table sales to 'C: // temp ';
Restor table sales from 'C: // temp ';

2) For MyISAM tables, three related files can be directly copied (MyISAM tables are independent of the platform and can be directly transferred to other machines)

3) mysqldump backup
Back up mysqldump test sales> C:/temp/backupsales2006_05_05. SQL
Restore test <C:/temp/backupsales2006_05_05. SQL

4) Select into backup
Backup table select * from sales into OUTFILE 'C: // temp // sales. dat'
Restore table load data infile 'C: // temp // sales. dat 'into Table sales

5) mysqlhotcopy backup
Mysqlhotcopy databasename backup_directory_path

6) Database Replication Technology

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.