当前位置: 首页 > 工具软件 > go-conf > 使用案例 >

SQL server 2019 linux mssql-conf setup 报错处理

逑沛
2023-12-01

一、报错信息:

[root@ecs-sqlserver2019 bin]# ./mssql-conf setup

Locale en_AU not supported. Using en_US.

Choose an edition of SQL Server:

  1) Evaluation (free, no production use rights, 180-day limit)

  2) Developer (free, no production use rights)

  3) Express (free)

  4) Web (PAID)

  5) Standard (PAID)

  6) Enterprise (PAID) - CPU core utilization restricted to 20 physical/40 hyperthreaded

  7) Enterprise Core (PAID) - CPU core utilization up to Operating System Maximum

  8) I bought a license through a retail sales channel and have a product key to enter.

  9) Standard (Billed through Azure) - Use pay-as-you-go billing through Azure.

10) Enterprise Core (Billed through Azure) - Use pay-as-you-go billing through Azure.

Details about editions can be found at

SQL Server 2019 | Microsoft

Use of PAID editions of this software requires separate licensing through a

Microsoft Volume Licensing program.

By choosing a PAID edition, you are verifying that you have the appropriate

number of licenses in place to install and run this software.

By choosing an edition billed Pay-As-You-Go through Azure, you are verifying

that the server and SQL Server will be connected to Azure by installing the

management agent and Azure extension for SQL Server.

Enter your edition(1-10): 2

The license terms for this product can be found in

UNAME(1)                                      User Commands                                      UNAME(1)

NAME

/usr/share/doc/mssql-server or downloaded from:

https://go.microsoft.com/fwlink/?LinkId=2104294

The privacy statement can be viewed at:

Microsoft Privacy Statement – Microsoft privacy

Choose the language for SQL Server:

(1) English

(2) Deutsch

(3) Espa�ol

(4) Fran�ais

(5) Italiano

Traceback (most recent call last):

  File "/opt/mssql/bin/../lib/mssql-conf/mssql-conf.py", line 600, in <module>

    main()

  File "/opt/mssql/bin/../lib/mssql-conf/mssql-conf.py", line 596, in main

    processCommands()

  File "/opt/mssql/bin/../lib/mssql-conf/mssql-conf.py", line 312, in processCommands

    COMMAND_TABLE[args.which]()

  File "/opt/mssql/bin/../lib/mssql-conf/mssql-conf.py", line 95, in handleSetup

    mssqlconfhelper.setupSqlServer(eulaAccepted, noprompt=args.noprompt)

  File "/opt/mssql/lib/mssql-conf/mssqlconfhelper.py", line 1057, in setupSqlServer

    languageSelect(noprompt)

  File "/opt/mssql/lib/mssql-conf/mssqlconfhelper.py", line 244, in languageSelect

    print("(6) \u65e5\u672c\u8a9e")

UnicodeEncodeError: 'latin-1' codec can't encode characters in position 4-6: ordinal not in range(256)

[root@ecs-sqlserver2019 bin]#

二、解决方法:

export LANG=en_US.UTF-8

env |grep LANG 

检查环境变量是否生效

三、处理结果:

[root@ecs-sqlserver2019 bin]# ./mssql-conf setup

Choose an edition of SQL Server:

  1) Evaluation (free, no production use rights, 180-day limit)

  2) Developer (free, no production use rights)

  3) Express (free)

  4) Web (PAID)

  5) Standard (PAID)

  6) Enterprise (PAID) - CPU core utilization restricted to 20 physical/40 hyperthreaded

  7) Enterprise Core (PAID) - CPU core utilization up to Operating System Maximum

  8) I bought a license through a retail sales channel and have a product key to enter.

  9) Standard (Billed through Azure) - Use pay-as-you-go billing through Azure.

10) Enterprise Core (Billed through Azure) - Use pay-as-you-go billing through Azure.

Details about editions can be found at

SQL Server 2019 | Microsoft

Use of PAID editions of this software requires separate licensing through a

Microsoft Volume Licensing program.

By choosing a PAID edition, you are verifying that you have the appropriate

number of licenses in place to install and run this software.

By choosing an edition billed Pay-As-You-Go through Azure, you are verifying

that the server and SQL Server will be connected to Azure by installing the

management agent and Azure extension for SQL Server.

Enter your edition(1-10): 2

The license terms for this product can be found in

/usr/share/doc/mssql-server or downloaded from:

https://go.microsoft.com/fwlink/?LinkId=2104294&clcid=0x409

The privacy statement can be viewed at:

Microsoft Privacy Statement – Microsoft privacy

Enter the SQL Server system administrator password:

Confirm the SQL Server system administrator password:

Configuring SQL Server...

The licensing PID was successfully processed. The new edition is [Developer Edition].

ForceFlush is enabled for this instance.

ForceFlush feature is enabled for log durability.

Setup has completed successfully. SQL Server is now starting.

[root@ecs-sqlserver2019 bin]#

 类似资料: