gpt4 book ai didi

windows-services - 在Windows上安装mysql和未知选项

转载 作者:行者123 更新时间:2023-11-29 13:36:15 26 4
gpt4 key购买 nike

我正在尝试使用 mysqld 在 Windows 上安装 MySQL 服务。这是我的命令:

mysqld --install test123 --defaults-file="C:\mysql\my.ini" --verbose --console --explicit_defaults_for_timestamp --innodb=off

这就是我想要的:

  • mysql --install test123 - 安装名为 test123 的 mysql 服务
  • --defaults-file="C:\mysql\my.ini" - 使用配置文件 C:\mysql\my.ini 中的默认值
  • --verbose --console - 显示输出
  • --explicit_defaults_for_timestamp - 不显示 this annoying warning
  • --innodb=off - 我不需要 InnoDB 存储引擎

当我运行上面的命令时,我收到错误消息未知选项“--install”。整体输出:

2013-09-09 14:17:06 3712 [Note] Plugin 'FEDERATED' is disabled.
2013-09-09 14:17:06 3712 [Note] Plugin 'InnoDB' is disabled.
2013-09-09 14:17:06 3712 [ERROR] mysqld: unknown option '--install'
2013-09-09 14:17:06 3712 [ERROR] Aborting

2013-09-09 14:17:06 3712 [Note] Binlog end
2013-09-09 14:17:06 3712 [Note] Shutting down plugin 'partition'
...many "Shutting down plugin" lines...
2013-09-09 14:17:06 3712 [Note] Shutting down plugin 'binlog'
2013-09-09 14:17:06 3712 [Note] mysqld: Shutdown complete

屏幕:http://prntscr.com/1q9ah2

我应该如何处理 mysqld.exe 才能知道选项 --install ?

我不知道这是否重要,但在 the manual 中写的是:

On Windows, if the server is started with the --defaults-file and --install options, --install must be first. Otherwise, mysqld.exe will attempt to start the MySQL server.

in this part还有:

If the server is started with the --defaults-file and --install options, --install must be first.

最佳答案

我刚刚发现问题出在选项--verbose --console上。

当我运行此命令时,一切看起来都很好: command

关于windows-services - 在Windows上安装mysql和未知选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18698288/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com