欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

xampp运行MySQL shutdown unexpectedly解决方案 又装了phpstudy后 两个mysql 冲突 有大用 有大大用 有大大大用

在控制面板=>服务 里面重启mysql,会报错 "本地无法启动MySQL服务,报的错误:1067,进程意外终止"

 


相信不少喜欢WordPress的朋友和我一样,会用xampp在本地搭建一个网站学习调试,但是在用的过程中也会遇到些麻烦,毕竟我们都是小白,今天就分享一个xampp运行MySQL数据时出现 Error: MySQL shutdown unexpectedly. 的完美解决方案。

xampp运行MySQL shutdown unexpectedly解决方案                

工具/原料    

  • xampp
  • 记事本

方法/步骤    

  1. 1

    故障描述:

    12:15:46  [mysql] Attempting to start MySQL app...

    12:15:47  [mysql] Status change detected: running

    12:15:47  [mysql] Status change detected: stopped

    12:15:47  [mysql] Error: MySQL shutdown unexpectedly.

    12:15:47  [mysql] This may be due to a blocked port, missing dependencies, 

    12:15:47  [mysql] improper privileges, a crash, or a shutdown by another method.

    12:15:47  [mysql] Press the Logs button to view error logs and check

    12:15:47  [mysql] the Windows Event Viewer for more clues

    12:15:47  [mysql] If you need more help, copy and post this

    12:15:47  [mysql] entire log window on the forums

    xampp运行MySQL shutdown unexpectedly解决方案                    
  2. 2

    故障说明:

    在我们启动xampp时,发现Apache可以正常启动;而MySQL却不能正常运行。我们称它为MySQL意外关机。这是由于端口被占用,或者缺少运行特权,崩溃而导致MySQL数据库意外关闭。

    xampp运行MySQL shutdown unexpectedly解决方案                    
  3. 3

    解决办法:

    在xampp软件界面找到MySQL组件,点击其组件下的config按钮,打开mysql配置文件(位置如下图);

    xampp运行MySQL shutdown unexpectedly解决方案                    
  4. 4

    在mysql配置文件内搜索到[mysqld]所在行,在其下方插入

    [mysqld]

    innodb_force_recovery = 4

    保存后关闭记事本(位置如下图);

    xampp运行MySQL shutdown unexpectedly解决方案                    
  5. 5

    这时重新运行MySQL组件,是不是发现问题已经解决了呢!

    13:00:41  [mysql] Attempting to start MySQL app...

    13:00:41  [mysql] Status change detected: running

    xampp运行MySQL shutdown unexpectedly解决方案                    
  6. 6

    快去你的本地WordPress小站看看吧。


  7. 启动后 再注释掉它 吧 #

  8. innodb_force_recovery = 4

    END                

注意事项    

  • 详细信息可以按记录按钮来查看错误日志和检查
  • 删除目录mysql\data下的ibdata1文件方法并不可取

来自  https://jingyan.baidu.com/article/90895e0ff0fd1864ec6b0b1c.html


XMPP本地Mysql无法启动

 (2014-12-01 18:14:32)    
转载    

分类: PHP                
最近在本地运行xmpp的时候,偶尔遇到了mysql罢工,具体原因不明。但是在网上找到了解决的方法
18:08:34  [mysql] Error: MySQL shutdown unexpectedly.
18:08:34  [mysql] This may be due to a blocked port, missing dependencies, 
18:08:34  [mysql] improper privileges, a crash, or a shutdown by another method.
18:08:34  [mysql] Press the Logs button to view error logs and check
18:08:34  [mysql] the Windows Event Viewer for more clues
18:08:34  [mysql] If you need more help, copy and post this
18:08:34  [mysql] entire log window on the forums
其中有位网友提到他的解决方法:
  1. exit  Xampp server

  2. go to your C:\xampp\mysql\data 

    directory delete the ibdata1 file

  3. restart xampp server

来自  http://blog.sina.com.cn/s/blog_6baeeae10102vbqu.html


  昨天升级WordPress程序时同时升级了数据库,今天打开XAMPP启动MySQL数据库时出现错误:Error: MySQL shutdown unexpectedly. 

      那么如何解决这个 错误呢?

免费建站:[12]如何解决XAMPP中MySQL启动失败                

工具/原料    

  • 建站
  • XAMPP
  • MySQL数据库

方法/步骤    

  1. 1

        今天运行XAMPP启动MySQL数据库时出现错误:

    21:37:31  [mysql] Status change detected: stopped

    21: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 check

    21:37:31  [mysql] the Windows Event Viewer for more clues

    21:37:31  [mysql] If you need more help, copy and post this

    21:37:31  [mysql] entire log window on the forums

    s

    免费建站:[12]如何解决XAMPP中MySQL启动失败                    
  2. 2

        有遇到这类问题的朋友可以试试小编的方法,反正我是解决了。

        打开你的xampp安装目录,这里小编把它安装在D:\Program Files\xampp目录。

    免费建站:[12]如何解决XAMPP中MySQL启动失败                    
  3. 3

         下拉鼠标,找到Mysql文件夹,这里就是你的本地MySQL数据库,点击打开。

    免费建站:[12]如何解决XAMPP中MySQL启动失败                    
  4. 4

         继续打开data文件夹,data一般是指保存数据的文件夹,也可能是软件生成的临时文件夹。

    免费建站:[12]如何解决XAMPP中MySQL启动失败                    
  5. 5

         这里有个文件名为 ibdata1 的文件 ,ibdata就是用来储存文件的数据的。这里我们把它删除掉。

    免费建站:[12]如何解决XAMPP中MySQL启动失败                    
  6. 6

        重新运行XAMPP程序,启动MySQL数据库。

        系统提示:Status change detected: running说明MySQL数据库启动成功。

    免费建站:[12]如何解决XAMPP中MySQL启动失败                    
  7. 7

         再次进入D:\Program Files\xampp\mysql\data文件目录我们可以看到,系统又重新生成了一个 ibdata1 文件。

    END                
经验内容仅供参考,如果您需解决具体问题(尤其法律、医学等领域),建议您详细咨询相关领域专业人士。
作者声明:本篇经验系本人依照真实经历原创,未经许可,谢绝转载。

来自  https://jingyan.baidu.com/article/60ccbceb64b42064cab197a0.html


普通分类: