Use Navicat to create a new PostgreSQL database error ERROR: new collation (en_ US.utf8) is incompatible with the collation of t

Original: https://www.cnblogs.com/nesnilnehc/p/12448265.html

The error is as follows:
Insert picture description here
Solution:
Use TEMPLATE to specify the template database to create the database

-- LC_COLLATE:string sort order
-- LC_CTYPE:character classification
-- database_name,数据库名称
-- database_user,用户名
CREATE DATABASE {database_name} WITH OWNER = {database_user} ENCODING 'UTF8' LC_COLLATE = 'Chinese (Simplified)_China.936' LC_CTYPE = 'Chinese (Simplified)_China.936' TEMPLATE template0;

Guess you like

Origin blog.csdn.net/weixin_46099269/article/details/113238583