为什么我无法安装Postgresql(PostgreSQL-9.6.2-2-win64-bigsql.exe)?视窗

时间:2018-07-02 07:58:50

标签: postgresql

我不明白为什么会这样?

Log started 07/02/2018 at 14:08:21
Preferred installation mode : win32
Trying to init installer in mode win32
Mode win32 successfully initialized
[14:08:24] Initializing PostgreSQL installer
[14:08:24] Windows Version is: Windows 7 (6.1)
[14:08:24] Operating System Language is: en
[14:08:24] Current build_identifier is: 9.6.2-2
[14:08:24] System PATH:
**All path of my system** 
[14:08:24] Initializing pg96 variables
[14:08:24] Download url: https://s3.amazonaws.com/pgcentral
[14:08:24] PostgreSQL Locale to install: DEFAULT
Setting variable windows_net_session_exitcode from C:\Users\himanshu-sharma\AppData\Local\Temp\postgresql_himanshu-sharma/net-session-exit-code.bat 
Script exit code: 1

Script output:


Script stderr:
 '"C:\Users\HIMANS~2\AppData\Local\Temp\POSTGR~1\NET-SE~1.BAT"' is not recognized as an internal or external command,
operable program or batch file.

Error with configuration or permissions. Please see log file for more information.

1 个答案:

答案 0 :(得分:0)

在此将@RAM答案记入贷方。 Problems Installing PostgreSQL 9.2

解决方案:

  1. 在管理员模式下打开命令提示符
  2. 执行以下命令以根据您的驱动器或所有驱动器更改格式

    示例命令:

    fsutil 8dot3name set 1    
         This disable 8dot3 name creation on all volumes
    fsutil 8dot3name set C: 1  
         This disable 8dot3 name creation on c:
    
  3. 以具有管理员权限的用户身份执行安装

  4. 安装后,请考虑将8dot3name设置重置为默认值(2),以避免意外后果

希望它可以解决问题!