Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
14639 Lượt xem

How can I change the name of my database. Can I do this without programming?

Ảnh đại diện
Huỷ bỏ

... using postgresql: "ALTER DATABASE name RENAME TO newname"

NEVER DO THIS !!!

I try it and reach serious pb with server after that : no one of existing databases correctly load and work !

Seems that theme management if broken, at least...

Use only the web function "duplicate" or "backup" then "restore to an other name

Câu trả lời hay nhất

Hello, using postgresql: "ALTER DATABASE name RENAME TO newname" or you can duplicate the database with a new name in the database options, login screen.

Ảnh đại diện
Huỷ bỏ

Make sure you shut down the OpenERP server first if you use the ALTER DATABASE option.

Tác giả

Thank you very much for the information, I'l try this.

Hello, using postgresql: "ALTER DATABASE name RENAME TO newname"

Câu trả lời hay nhất

If you change the database name, you have to rename its filestore too. So you can do the following:
1. Stop the Odoo server. 

2.Log in to postgres and alter database name "ALTER DATABASE name RENAME TO newname"

3. Rename the filestore from old database name to new database name.

4. Restart Odoo server.

That should do it.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 24
2537
1
thg 3 15
7517
0
thg 2 25
798
2
thg 11 24
4920
2
thg 10 24
2083