Windows Server MySQL startup failure how to do

Source: Internet
Author: User

One, correct configuration file, clear cache

1. In the face of this problem, do not rush to reinstall the MySQL database, in fact, the solution is very simple, people need to clean up the Windows cache directory on it.
2. Press "Windows key +r" to open the Run dialog box, enter the command "CMD", return to open the DOS window.

3. Enter "del c:\windows\temp\*.*/s/q", waiting for files to be deleted, MySQL will naturally return to normal.

Second, configuration file configuration error (MySQL startup error 1067 resolution)


Question one

Delete%windows%/my.ini Delete the My.ini in the MySQL installation directory to copy My-small.ini to My.ini in My.ini

Last line insert: CODE: [Mysqld] #设置basedir指向mysql的安装路径

Basedir=c:mysql-5.1.11-beta-win32 Datadir=c:mysql-5.1.11-beta-win32data

Reboot ...

c:mysql-5.1.11-beta-win32in>net start MySQL MySQL

The service is starting. The MySQL service failed to start. System error.

A system error 1067 occurred. The process terminated unexpectedly.

C:mysql-5.1.11-beta-win32in>mysqld-nt--remove Service successfully removed.
C:mysql-5.1.11-beta-win32in>mysqld-nt--install Service successfully installed.
c:mysql-5.1.11-beta-win32in>net start MySQL MySQL service is starting. The MySQL service has started successfully. c:mysql-5.1.11-beta-win32in>net stop MySQL MySQL service is stopping. The MySQL service has stopped successfully.

Question Two

After MySQL installed, restart the computer The second Discovery service failed to start. The prompts are as follows:

------------------------

The MySQL service failed to start.
System error.
A system error 1067 occurred.
The process terminated unexpectedly.

------------------

Viewed the error log in the directory F:programdatamysqlmysql Server 5.5data, which shows the following:

130825 20:47:50 [note] Plugin ' federated ' is disabled.
130825 20:47:50 innodb:the InnoDB memory heap is disabled
130825 20:47:50 innodb:mutexes and rw_locks use Windows interlocked functions
130825 20:47:50 innodb:compressed tables use zlib 1.2.3
130825 20:47:50 InnoDB:Error:unable to create temporary file; Errno:2
130825 20:47:50 [ERROR] Plugin ' InnoDB ' init function returned ERROR.
130825 20:47:50 [ERROR] Plugin ' InnoDB ' registration as a STORAGE ENGINE.
130825 20:47:50 [ERROR] unknown/unsupported storage Engine:innodb
130825 20:47:50 [ERROR] Aborting

One of the core hints is that the temporary file cannot be created:

130825 20:47:50 InnoDB:Error:unable to create temporary file; Errno:2

So view My.ini

[Mysqld] section joined:
#自己指定的临时文件目录
Tmpdir= "Temp directory"

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.