免费建站:[12]如何解决XAMPP中MySQL启动失败
1、 今天运行XAMPP启动MySQL数据库时出现错误:21:37:补朱锚卦31 [mysql] Status 艘早祓胂change detected: stopped21:37:31 [mysql] Error: MySQL shutdown unexpectedly.21:37:31 [mysql] This may be due to a blocked port, missing dependencies,21:37:31 [mysql] improper privileges, a crash, or a shutdown by another method.21:37:31 [mysql] Press the Logs button to view error logs and check21:37:31 [mysql] the Windows Event Viewer for more clues21:37:31 [mysql] If you need more help, copy and post this21:37:31 [mysql] entire log window on the forumss
![免费建站:[12]如何解决XAMPP中MySQL启动失败](https://exp-picture.cdn.bcebos.com/7c84d1672b5fd54661e9b4a77fd0b503c9d224d6.jpg)
3、 下拉鼠标,找到Mysql文件夹,这里就是你的本地MySQL数据库,点击打开。
![免费建站:[12]如何解决XAMPP中MySQL启动失败](https://exp-picture.cdn.bcebos.com/c3c22dbf3bef354f3fc7b88d23db574afb321bd6.jpg)
5、 这里有个文件名为ibdata1 的文件 ,ibdata就是用来储存文件的数据的。这里我们把它删除掉。
![免费建站:[12]如何解决XAMPP中MySQL启动失败](https://exp-picture.cdn.bcebos.com/f59dbe39131fceecaca665c679c4ec9958430bd6.jpg)
7、 再次进入D:\Program Files\xampp\mysql\data文件目录我们可以看到,系统又重新生成了一个ibdata1文件。