php - Xampp 服务器 MySQL 错误? MySQL 数据库的状态 - DEACTIVATED

标签 php mysql drupal-7 xampp

当我开始在本地主机中运行它时,我安装了最新的 XAMPP 服务器,

我还安装了 Drupal 和 MySQL 6.1 ,.

安装 Drupal 后,我可以访问 localhost/drupal,这里整个数据库都保存到 MySQL 6.1。

但是在 XAMPP 的 MySQL 部分中,我遇到了类似的错误

6:33:47 PM  [mysql]     Attempting to start MySQL app...
6:33:47 PM  [mysql]     Status change detected: running
6:33:48 PM  [mysql]     Status change detected: stopped
6:33:48 PM  [mysql]     Error: MySQL shutdown unexpectedly.
6:33:48 PM  [mysql]     This may be due to a blocked port, missing dependencies, 
6:33:48 PM  [mysql]     improper privileges, a crash, or a shutdown by another method.
6:33:48 PM  [mysql]     Press the Logs button to view error logs and check
6:33:48 PM  [mysql]     the Windows Event Viewer for more clues
6:33:48 PM  [mysql]     If you need more help, copy and post this
6:33:48 PM  [mysql]     entire log window on the forums

并且在状态下我正在获得此状态。

enter image description here

如何在 xampp 中运行它

最佳答案

尝试删除C:\xampp\mysql\data目录下的ibdata1文件 确保先退出 xampp 然后重新启动它。

关于php - Xampp 服务器 MySQL 错误? MySQL 数据库的状态 - DEACTIVATED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23110541/

相关文章:

php - 如何禁用 Mailchimp 双重选择加入 PHP

mysql - 有没有办法在没有 shell session 的情况下使用 mysqldump?

.htaccess - 将/子目录重定向到/符号链接(symbolic link)/子目录,其中/符号链接(symbolic link)指向/

上传到 pantheon 服务器时 .htaccess 在 drupal 7 上不起作用

javascript - 如何在 php 中传递来自 JavaScript 的值?

php - 如何使用特定的 UTC 更改时区 laravel 5.4 版

C# Windows 应用程序访问数据库数据不会在关闭时保留

php - 如何通过 PHP 从 Swift 将 UIImage 上传到 MySQL?

drupal-7 - Drupal 7 站点迁移到不同域

php - 关闭表中的多个垂直菜单