【问题标题】:Xampp MySQL doesn't want a portXampp MySQL 不需要端口
【发布时间】:2022-01-05 21:58:12
【问题描述】:

从字面上看,当我启动“mysql”服务器时,它没有分配端口(我知道,因为在端口列中 xampp 的 mysql 行中没有任何内容),当我尝试在 phpMyAdmin 或通过我的网站,甚至我的数据库的 vscode 扩展(如 mysql 工作台)它只是说它拒绝连接......检查 mysql 日志只有一些警告:

2022-01-05T21:49:30.875196Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2022-01-05T21:49:30.875199Z 0 [System] [MY-010116] [Server] C:\xampp\mysql\bin\mysqld.exe (mysqld 8.0.27) starting as process 6076
2022-01-05T21:49:30.950201Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-01-05T21:49:34.263390Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-01-05T21:49:36.583523Z 0 [Warning] [MY-011311] [Server] Plugin mysqlx reported: 'All I/O interfaces are disabled, X Protocol won't be accessible'
2022-01-05T21:49:37.927602Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
2022-01-05T21:49:37.928600Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
2022-01-05T21:49:37.933600Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2022-01-05T21:49:37.933601Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2022-01-05T21:49:38.112611Z 0 [System] [MY-010931] [Server] C:\xampp\mysql\bin\mysqld.exe: ready for connections. Version: '8.0.27'  socket: ''  port: 0  MySQL Community Server - GPL.
2022-01-05T21:49:48.764220Z 0 [System] [MY-013105] [Server] C:\xampp\mysql\bin\mysqld.exe: Normal shutdown.
2022-01-05T21:49:50.652328Z 0 [System] [MY-010910] [Server] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete (mysqld 8.0.27)  MySQL Community Server - GPL.

如果这很重要,我正在使用 Windows 7 我不在我的主计算机上(度假)。 我一直在尝试修复 xampp 问题 1.5 天,因此感谢您的帮助。 ALSO 我已经安装了 mysql 扩展/插件或其他任何东西,因为默认 mysql 实际上是 MariaDB,我认为这就是我的查询不起作用的原因,所以我按照堆栈溢出 awnser 安装了正确的 mysql(我是使用 mysqld --init 东西)。 编辑: 忘了提及 phpMyAdmin 说设置无效,即使我确信它们是正确的(我已经尝试了所有我能找到的方法)。

【问题讨论】:

  • 转到C:\xampp 并找到文件properties.ini。您应该能够检查 MySQL 使用的端口是什么。这很可能是默认的3306
  • 回复 FanoFN:是的,它设置为 3306,但更改它似乎没有什么区别properties.ini 只是指出)。
  • 请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。

标签: mysql database phpmyadmin xampp


【解决方案1】:

我想通了!这是我安装的 mysql 扩展/附加组件。我重新安装了 xampp,并决定我要处理 mariaDB。

【讨论】:

    猜你喜欢
    • 2015-04-04
    • 2017-11-10
    • 2017-04-29
    • 2015-05-11
    • 2015-11-17
    • 2020-01-04
    • 2020-09-05
    • 2015-03-16
    相关资源
    最近更新 更多