Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
15397 มุมมอง

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

อวตาร
ละทิ้ง

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

คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง

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

ผู้เขียน

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

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

คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 24
3352
1
มี.ค. 15
7877
0
ก.ค. 25
1416
2
พ.ย. 24
6196
2
ต.ค. 24
3152