使用Navicat新建PostgreSQL数据库报错ERROR: new collation (en_ US.utf8) is incompatible with the collation of t

原文:https://www.cnblogs.com/nesnilnehc/p/12448265.html

报错如下:
在这里插入图片描述
解决方法:
使用 TEMPLATE 指定创建数据库的模板数据库

-- 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;

猜你喜欢

转载自blog.csdn.net/weixin_46099269/article/details/113238583