rake db:create encoding error with postgresql

前端 未结 5 840
日久生厌
日久生厌 2021-01-30 02:41

I\'m importing an existing rails project that I was working on into my new arch linux system, I already installed all gems and postgresql correctly, but I having some issues whe

5条回答
  •  梦毁少年i
    2021-01-30 03:09

    The main problem here is that your template database (template1) has been created with an ASCII encoding and you're telling PostgreSQL to create the new database with UTF8 encoding. Needless to say, it's not particularly pleased about that. What you can do is erase your template1 database and re-create it using these instructions. This can also be a problem when your hosting provider hasn't properly set the locale. You can read more about fixing your missing locales.

    I found all of this info through this post about Fixing PostgreSQL's default encoding on Ubuntu 9.10

提交回复
热议问题