简体   繁体   English

XAMPP Apache和MySQL Server无法启动

[英]XAMPP Apache & MySQL Server won't start

aI have the problem that both services won't start. 我有两个服务都无法启动的问题。 On both, I get the Message 两者都收到消息

Error: MySQL shutdown unexpectedly. (The same with apache). (与Apache相同)。

I already changed the ports of the apache server from 80 to 8080 and 443 to 4433, and also to others to check, that doesn't help. 我已经将apache服务器的端口从80更改为8080,将443更改为4433,也请其他人进行检查,这无济于事。

I tried some solutions on similar posts here, like deleting the ibdata1-file in the mysql-folder, but none of these seem to work. 我在这里的类似文章上尝试了一些解决方案,例如删除mysql-folder中的ibdata1-file,但这些似乎都不起作用。 I even don't think these might solve it, because both services are affected. 我什至不认为这些可能解决问题,因为两种服务都受到影响。

Another idea I had was that I had not enough rights on the pc to run these services, but I am logged in as administrator and I also have a postgres-service running which I am able to stop and restart. 我的另一个想法是,我在PC上没有足够的权限来运行这些服务,但是我以管理员身份登录,并且还运行着一个postgres-service,可以停止并重新启动它。

I am using Windows 10, but had XAMPP running on it before. 我正在使用Windows 10,但之前在其上运行过XAMPP。

Logfile: Apache 日志文件:Apache

[Wed Jan 13 09:33:31.539128 2016] [core:warn] [pid 5664:tid 572] AH00098: pid file D:/Data/Xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Jan 13 09:33:32.039157 2016] [mpm_winnt:notice] [pid 5664:tid 572] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 configured -- resuming normal operations
[Wed Jan 13 09:33:32.039157 2016] [mpm_winnt:notice] [pid 5664:tid 572] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Wed Jan 13 09:33:32.039157 2016] [core:notice] [pid 5664:tid 572] AH00094: Command line: 'd:\\data\\xampp\\apache\\bin\\httpd.exe -d D:/Data/Xampp/apache'
[Wed Jan 13 09:33:32.039157 2016] [mpm_winnt:notice] [pid 5664:tid 572] AH00418: Parent: Created child process 4376
[Wed Jan 13 09:33:32.523560 2016] [mpm_winnt:notice] [pid 4376:tid 556] AH00354: Child: Starting 150 worker threads.

Logfile: MySQL 日志文件:MySQL

2016-01-13 09:33:33 5760 [Note] Plugin 'FEDERATED' is disabled.
2016-01-13 09:33:33 af8 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2016-01-13 09:33:33 5760 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-01-13 09:33:33 5760 [Note] InnoDB: The InnoDB memory heap is disabled
2016-01-13 09:33:33 5760 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-01-13 09:33:33 5760 [Note] InnoDB: Memory barrier is not used
2016-01-13 09:33:33 5760 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-01-13 09:33:33 5760 [Note] InnoDB: Not using CPU crc32 instructions
2016-01-13 09:33:33 5760 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-01-13 09:33:33 5760 [Note] InnoDB: Completed initialization of buffer pool
2016-01-13 09:33:33 5760 [Note] InnoDB: Highest supported file format is Barracuda.
2016-01-13 09:33:33 5760 [Note] InnoDB: The log sequence numbers 1665234 and 1665234 in ibdata files do not match the log sequence number 61260762 in the ib_logfiles!
2016-01-13 09:33:33 5760 [Note] InnoDB: Database was not shutdown normally!
2016-01-13 09:33:33 5760 [Note] InnoDB: Starting crash recovery.
2016-01-13 09:33:33 5760 [Note] InnoDB: Reading tablespace information from the .ibd files...
2016-01-13 09:33:33 5760 [Note] InnoDB: Restoring possible half-written data pages 
2016-01-13 09:33:33 5760 [Note] InnoDB: from the doublewrite buffer...
2016-01-13 09:33:34 5760 [Note] InnoDB: 128 rollback segment(s) are active.
2016-01-13 09:33:34 5760 [Note] InnoDB: Waiting for purge to start
2016-01-13 09:33:34 5760 [Note] InnoDB: 5.6.24 started; log sequence number 61260762
2016-01-13 09:33:34 5760 [Note] Server hostname (bind-address): '*'; port: 3306
2016-01-13 09:33:34 5760 [Note] IPv6 is available.
2016-01-13 09:33:34 5760 [Note]   - '::' resolves to '::';
2016-01-13 09:33:34 5760 [Note] Server socket created on IP: '::'.

If I select the xampp-start.exe, I get this message in the cmd-window: 如果选择xampp-start.exe,则会在cmd窗口中显示以下消息:

2016-01-14 10:30:28 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2016-01-14 10:30:28 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-01-14 10:30:28 0 [Note] mysql\bin\mysqld.exe (mysqld 5.6.24) starting as process 1800 ...
2016-01-14 10:30:28 1800 [ERROR] Can't find messagefile 'D:\Data\Xampp\mysql\share\errmsg.sys'
2016-01-14 10:30:28 1800 [Warning] Can't create test file D:\Data\Xampp\mysql\data\DESKTOP-0E1SMUM.lower-test
2016-01-14 10:30:28 1800 [Warning] Can't create test file D:\Data\Xampp\mysql\data\DESKTOP-0E1SMUM.lower-test
mysql\bin\mysqld.exe: Can't change dir to 'D:\Data\Xampp\mysql\data\' (Errcode: 13 - Permission denied)
2016-01-14 10:30:28 1800 [ERROR] Aborting

2016-01-14 10:30:28 1800 [Note] Binlog end
2016-01-14 10:30:28 1800 [Note]
httpd.exe: Syntax error on line 37 of E:/Data/Xampp/apache/conf/httpd.conf: ServerRoot must be a valid directory

The File errmsg.sys exists though. 但是文件errmsg.sys存在。

I found another solution that worked for me! 我找到了另一个对我有用的解决方案! If anyone has that problem, try to start apache via batch file "apache_start" located in xampp-directory. 如果有人遇到问题,请尝试通过xampp目录中的批处理文件“ apache_start”启动apache。 that gave me the error: 这给了我错误:

ServerRoot must be a valid directory

This again could be solved by running the "setup_xampp" batch file, located in the same directory. 通过运行位于同一目录中的“ setup_xampp”批处理文件,可以再次解决此问题。 After completion, apache & mysql were running again. 完成后,apache和mysql再次运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM