当我启动xampp时,它在mysql中给我一个错误。我正在使用Windows 10。 这是错误日志的内容:
2015-11-10 15:26:56 10fc 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.
2015-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB memory heap is disabled
2015-11-10 15:26:56 4348 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-11-10 15:26:56 4348 [Note] InnoDB: Memory barrier is not used
2015-11-10 15:26:56 4348 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32 instructions
2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-11-10 15:26:56 4348 [Note] InnoDB: Completed initialization of buffer pool
2015-11-10 15:26:56 4348 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-10 15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1835027
2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-10 15:26:57 4348 [Note] Server socket created on IP: '::'.
2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.8-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2015-11-10 15:27:11 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Normal shutdown
当我打开XAMPP并单击启动MySQL按钮时,它给了我一个错误。
9:12:53 PM [mysql] Error: MySQL shutdown unexpectedly.
9:12:53 PM [mysql] This may be due to a blocked port, missing dependencies,
9:12:53 PM [mysql] improper privileges, a crash, or a shutdown by another method.
9:12:53 PM [mysql] Press the Logs button to view error logs and check
9:12:53 PM [mysql] the Windows Event Viewer for more clues
9:12:53 PM [mysql] If you need more help, copy and post this
9:12:53 PM [mysql] entire log window on the forums
可能您的3306或其他任何应用程序正在使用它们。可能你不知道XAMPP通常会遇到像Skype这样的应用程序的问题。如果您正在运行Skype,请尝试关闭它并打开XAMPP。您还可以更改HTTP和MySQL的默认端口。
要编辑Apache端口,请打开apache.conf并重新启动服务器。
要编辑MySql端口,请打开my.cnf并重新启动该服务。
你也可以看一下这篇文章。可能是您需要删除由于损坏而导致的数据库文件,但如果您刚刚安装了新的Xampp实例,则可能不是原因。
XAMPP - MySQL shutdown unexpectedly
UPDATE
如果您愿意,可以在此处获得如何更改Skype端口的截图。
问题是您的计算机中安装了两个mysql实例。检查进程mysqld.exe是否已通过任务管理器运行并终止(如果存在)。然后通过运行打开services.msc并删除所有mysql实例(如果有的话)(在删除之前终止它),重启机器并再次运行XAMPP。这将解决您的问题。
请仔细,谨慎地遵循这些步骤。
5.在MySQL选项卡上输入'3308'。并保存更改。
6.在Windows搜索上搜索'services.msc'。应该弹出一个窗口。向下滚动,直到找到“MySQL”。
sc删除mysql
请记住先备份您的数据!
使用cmd作为管理员卸载
然后使用sc delete删除服务并删除XAMPP的所有目录。然后重新安装它。