MyBB Community Forums

Full Version: iso-8859-1 to UTF-8
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi to all.
I have a big problem. I have my BD in iso-8859-1, som how can I update to UTF-8?
I cannot import my backup, because its not work propely.
thanks
Voce tem acesso a SSH? Se tiver, faz o seguinte:
With SSH Access:

1) Cria um banco de dados vazio (database1) no PHP My Admin com codificação utf8_bin (o padrao é 'latin1', para português)
1) Create a database called (database1) in PHPMyadmin with encoding utf8_bin

2) usa este comando pra criar um Backup do seu banco de dados atual(*):
mysqldump -h hostname -u <usuario> -p database > database.sql
Call this command in ssh prompt to generate a backup
mysqldump -h hostname -u <username> -p database > database.sql

*lembrando que voce precisa ter permissao de escrita... no meu Site (hospedado no Mediatemple) eu preciso dar este comando pra ir pra pasta do root do site:
cd domains\mydomain.com\html
*Remember that you´ll need write access in current directory


3) Reimportando os dados no Banco de dados codificado em UTF-8:
mysql -h hostname -u <username> -p database1 < database.sql
Then you´ll just reimport all data in utf8_bin encoding
mysql -h hostname -u <username> -p database1 < database.sql


>> http://www.freakitude.com/2006/09/03/mys...rom-shell/
I try but im recive this

"Shell access is not enabled on your account!
If you need shell access please contact support."

Is any other way to fix?
One more thing. my skills abou this is very poor.
I wait for a wanser. thanks (Obrigado aglioeolio)
Anyone?
And if you do it from MyBB? It has that option...
http://wiki.mybboard.net/index.php/UTF8_Setup
the problem are solved thanks anyway