跳至內容
選單
此問題已被標幟
1 回覆
6228 瀏覽次數

In the docker-compose file I declared the name of the postgres database, ran Odoo locally for first time, and get the initial form,  put the same name defined previously and get the following error:
Database creation error: database 'my_db' already exists!
But the database don't appear in the database manager.
Why can't I use it? 

頭像
捨棄
最佳答案

Try dropping your postgres database and recreating it.

dropdb my_db

createdb my_db

You should then be able to fill in the recreated database using your databases psql dump.

psql -d my_db -f your_database_dump_file

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
1月 23
2623
0
9月 19
4715
0
2月 25
1569
2
1月 25
8178
2
1月 24
10138