首页 > 数据库 > The database cluster initialisation failed but was not the same version as initdb的解决办法(postgresql)

The database cluster initialisation failed but was not the same version as initdb的解决办法(postgresql)

时间:2023-10-12 09:01:08浏览次数:35  
标签:postgresql database initialisation same cluster failed version initdb was

问题:不论装哪个版本的postgresql,都报 The program "postgres" was found by ".../initdb.exe" but was not the same version as initdb. 和 The database cluster initialisation failed 的错误。
过程:
1 设置目录权限无效
2 更后版本无效
3 更改目录的路径无效

最后解决:根据网上的帖子。 我曾经因为命令行里的中文乱码,更改了注册表里的相关值,就是65001之类的那玩意。 只要把这个值清空就行了。
注册表位置: KEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun

备注:如果报某个文件没找到,比如a.dll找不到,就通过everything搜索到,把路径添加到,电脑变量的path里就行了。

标签:postgresql,database,initialisation,same,cluster,failed,version,initdb,was
From: https://www.cnblogs.com/wang2650/p/17758667.html

相关文章

  • Failed to find "GL/gl.h" in
     001、问题:Failedtofind"GL/gl.h"in 002、解决方法[[email protected]]#yuminstallmesa-lib* 。 参考:https://www.jianshu.com/p/5eeb3dd51c08 ......
  • Error: Failed to download metadata for repo 'appstream': Cannot prepare internal
    一背景跑了一份centos容器,想装一下net-tools,报如下错误Error:Failedtodownloadmetadataforrepo'appstream':Cannotprepareinternalmirrorlist:NoURLsinmirrorlist 二解决参考帖子:https://developer.aliyun.com/article/1165954  CentOS已经停止......
  • PostgreSQL学习(1)
    安装PostgreSQLsudoaptinstallpostgresqlpostgresql-contrib#如果您需要特定版本,请使用“postgresql-12”或类似版本,替换“postgresql”:postgresql-contrib软件包包含了一些有用的扩展和附加功能。登录PostgreSQL默认情况下,PostgreSQL安装后只允许本地连接,且只有postgr......
  • Grafana导入 json 文件的 dashboard 错误 Templating Failed to upgrade legacy queri
    前言编辑或者修改后的dashboard保存为json文件,在其他环境导入使用,报错FailedtoupgradelegacyqueriesDatasourcexxxxxxxwasnotfound,无法显示监控数据问题原因为:从其他grafana导出的dashboardjson文件中,数据源是写的固定的,如果当前要显示的监控数据的数据源名称......
  • java fx 报错 java.lang.instrument ASSERTION FAILED ***: “!errorOutstanding“ wi
    问题描述在javafx中遇到的错误在fxml中通过了fx:controller绑定了控制器在控制的controller里面使用了FXMLLoader.load获取这个fxml文件出现报错java.lang.instrumentASSERTIONFAILED***:"!errorOutstanding"withmessagetransformmethodcallfailedat......
  • 11g-crsctl_start_crs-failed-workaround
    SYMPTOMScrsctlstartcrsCRS-4124:OracleHighAvailabilityServicesstartfailedCAUSE:InstallofClusterwarefailswhilerunningroot.shonOL7-ohasdfailstostart(DocID1959008.1)InOL7itneedstobesetupasaserviceandpatchfixforBug......
  • ASP .Net Core: 使用EF连接postgresql
    备注关于数据库的创建,可参考下方的链接,去创建测试环境,我已经有现成的数据库,故不再记录创建数据库的过程。实现步骤安装EF工具dotnettoolinstall--globaldotnet-ef安装其他依赖dotnetaddpackageNpgsql.EntityFrameworkCore.PostgreSQLdotnetaddpackageMicrosoft.E......
  • Command "python setup.py egg_info" failed with error code 1
     D:\ProgramFiles\python_3_6_4>python-mpipinstall--upgradepipCacheentrydeserializationfailed,entryignoredCollectingpip Cacheentrydeserializationfailed,entryignored Downloadinghttps://files.pythonhosted.org/packages/a4/6d/6463d49a93......
  • PostgreSQL操作-psql基本命令
    一、建立数据库连接----------------接入PostgreSQL数据库:psql-hIP地址-p端口-U数据库名之后会要求输入数据库密码 二、访问数据库1、列举数据库:\l2、选择数据库:\c数据库名3、查看该某个库中的所有表:\dt4、切换数据库:\cinterface5、查看某个库中的某个表结构:\d表......
  • Postgresql 截取字符串
    截取字符串一般用substring就够用了。对于有些长度不定的就没法用这个函数了,但还是有规律的,可以某个字符分割。  这时需要​​split_part​​函数,如:--url一共3个-,字符串被分成4部分,取最后一部分,那最后一个参数就是4selectsplit_part(fs.cdn_url,'-',4)fromfile......