How can i change database encoding for a PostgreSQL database using sql or phpPgAdmin?
views:
2522answers:
1
+8
A:
You have to perform:
- database dump,
- delete database,
- create database with new encoding,
- import data from dump created in point 1.
Changing it on-the-fly isn't possible as it would require rewriting most of internal database data which is almost equal to recreating db way I described.
romke
2008-12-19 13:21:37
+1 I came here to say this.
Paul Tomblin
2008-12-19 13:24:20
i have a cpanel account and if i backup the database i will be able to restore only the content and not to recreate database with new encoding
daniels
2008-12-19 13:24:26
drop = delete, here's link to cpanel docs:http://www.cpanel.net/support/docs/11/cpanel/databases_delete_post.html
romke
2008-12-19 13:35:42