Database-ask for a question about mysql replication

Source: Internet
Author: User
Dear friends, the younger brother is a new employee and takes over the maintenance of an existing system. he wants to build a test environment and copy the mysql database in use on another machine, fail for half a day. please try again. Background: the original server is windows, and the new server has the same system. The selected content may be different from the original content during the merge operation. 2. shut down mysql on the target server by using the netstopmysql command, and there is no m... mysql database in the process

Dear friends:

The younger brother is a new employee and takes over the maintenance of an existing system. he wants to set up a test environment and copy the mysql database in use on another machine, so he cannot succeed for half a day, please try again.

Background: the original server is windows, and the new server has the same system.
1. first, a mysql database is installed on the new service. because you do not know the original database configuration, you can configure a mysql database,
When mysqlinstanceconfig.exe is run, the selected content may be different from the original content.
2. shut down mysql on the target server by using the net stop mysql command, and there is no mysql in the process
3. copy the Mysql folder and Mysql_Data folder on the source server to the corresponding folder on the target server to overwrite all the original files.
4. modify the my. ini file, change basedir = to the path of the Mysql folder in the target service, and datadir = to the path of Mysql_Data/Data on the target server.
5. run net start mysql

The following prompt is displayed:

MySQL service is starting... MySQL service cannot be started. System error. System error 1067. unexpected process termination.

6. view the err file in the Mysql_Data \ data directory and find the following content:

 150120 15:37:32 [Note] Plugin 'FEDERATED' is disabled.150120 15:37:33  InnoDB: Initializing buffer pool, size = 2.0G150120 15:37:37  InnoDB: Completed initialization of buffer pool150120 15:37:37  InnoDB: Operating system error number 21 in a file operation.InnoDB: Some operating system error numbers are described atInnoDB: http://dev.mysql.com/doc/refman/5.1/en/operating-system-error-codes.htmlInnoDB: File name E:\MySQL-Data\ibdata1InnoDB: File operation call: 'create'.InnoDB: Cannot continue operation.

The above are all operations. could you please tell me how mysql database cannot be started? what should I do? thank you.

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.