【问题标题】:XAMPP with MySQL instead of MariaDBXAMPP 与 MySQL 而不是 MariaDB
【发布时间】:2018-11-20 01:50:13
【问题描述】:

我正在尝试从一本书中学习 PHP + MySQL,我想用 MySQL 更改 MariaDB。

到目前为止,我尝试使用旧版本的 xampp(2015 年 11 月),但它仍然有 MariaDB 并使用它: https://gist.github.com/odan/c799417460470c3776ffa8adce57eece

不幸的是,它不起作用:

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

我是否应该尝试使用 MySQL 而不是 MariaDB 获得 XAMPP 版本(那将是一个非常旧的版本?如果是的话,你能给我一个吗?)

我该如何解决? 我在事件查看器和错误日志中什么都没有。 (我认为 xampp 正在向我显示另一个日志,因为最后一行是从晚上 21:11 开始的并且它没有更新)。

关于用 MySQL 替换 MariaDB 的想法,请记住以上几点?

【问题讨论】:

    标签: php mysql apache xampp mariadb


    【解决方案1】:

    我知道这不是您想要的,但我不得不问:您为什么要用 MySQL 替换 MariaDB? 它们非常相似(请参阅this post),如果将 XAMPP 中的 MariaDB 服务器替换为仅使用 MariaDB 的其他东西可能会更麻烦。

    我认为在大多数情况下(如果不是所有情况)使用 MariaDB 代替 MySQL 是完美的很好。他们声称 MariaDB 的速度有所提高,但查询应该是相同的,如上面链接的帖子中所述。我使用 XAMPP 进行本地测试已经有一段时间了,还没有遇到过两者之间的问题。

    【讨论】:

      猜你喜欢
      • 2016-06-26
      • 2017-07-19
      • 2016-04-25
      • 2019-06-05
      • 2017-05-08
      • 2020-12-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多