【问题标题】:MySQL: Error while loading the configuration and product catalogMySQL:加载配置和产品目录时出错
【发布时间】:2022-08-13 02:37:43
【问题描述】:

我的系统上安装了 MySQL 社区服务器。它工作正常,但每天上午 12:00(或在上午 12:00 后连接到互联网时)都会弹出一个检查某些内容并自行关闭的弹出窗口。

但是在最新的 Windows 更新之后,它不会自行关闭,而是会以错误代码终止。我检查了 CLI 对我来说工作正常,但我想禁止显示此错误消息。

这是完整的错误消息:

=================== Start Initialization =================== 
MySQL Installer is running in Community mode
Initializing product requirements. 
Loading product catalog. 
Checking for product packages in the bundle. 
Categorizing product catalog. 
Finding all installed packages.

There was an error encountered while loading the configuration and 
product catalog: Access to the path \'C:\\ProgramData\\MySQL\\MySQL Installer for Windows\\settings-Community.xml\' is denied. 
Initialization failed. Please check the logs for more information.

[process exited with code 2 (0x00000002)]

请帮忙!

PS:我使用 Windows 11 和 MySQL 8.0 社区服务器

  • @KenWhite 对此感到抱歉。我将编辑问题
  • @AryanSoni拒绝访问路径 \'C:\\ProgramData\\MySQL\\MySQL Installer for Windows\\settings-Community.xml\'。文件夹MySQL Installer for Windows 是由MySQL 创建的还是手动创建的?
  • @ErgestBasha 它是由 MySQL 创建的。最初没有问题,但在最新的 Windows 更新后,这开始发生

标签: mysql


【解决方案1】:

可以通过将full control 提供给名为settings-Community.xml 的文件来解决此问题。默认情况下只有read/write,但在/properties/security中更改后,错误消息消失了。

【讨论】:

    猜你喜欢
    • 2015-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-01
    相关资源
    最近更新 更多