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.