IGWiki Main Page


Search pages

July2022
    1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
       

IGSuiteConvertire il database da latin1 a utf8 (Draft) (Document expired)
  Edit WikiPage historyPropertyGet PdfCalcTranslatorShows a printable version of this pageCan I help you ?

Convertire il database da latin1 a utf8

Estrarre il DB

Editare il file estratto

Convertire il DB
iconv --from-code latin1 --to-code utf-8 db.out > db.out.utf8

Restore del DB
psql -f db.out.utf8 template1

Modifica del file di configurazione di IGSuite

Codifica dei file del dizionario di IGSuite

$lang_charset = 'utf-8';

Aggiornare Perl a 5.14


Version 4.004 or higher of DBD::mysql is required. UTF-8 was first available in MySQL v4.1. As of v5.0, it is the system default.

Installare IGSuite 6.0




#! /bin/bash
for file in *_lang
do
    iconv --from-code latin1 --to-code utf-8 -o "$file.new" "$file" &&
    mv -f "$file.new" "$file"
done

Appunti Ale

apt-get libmysqlclient-dev

## aggiornamento di DBI
ppm
upgrade DBI


## installazione DBD::mysql
cd
cd temp
wget http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTO... link
tar -zxvf DBD-mysql-4.026.tar.gz
cd DBD-mysql-4.026
perl Makefile.PL
make
make install

##aggiornamento di /etc/mysql/my.cnf
mysqld
max_connections = 250 ##//AF//custom
default-storage-engine=INNODB ##//AF//custom

## ripristino per DB corrotto
# backup del DB
aggiunta di "innodb_force_recovery = 1" a my.cnf mysqld
/etc/init.d/mysql restart
/usr/bin/mysqldump -u root -pPPPPP --single-transaction --flush-logs --master-data=2 igsuite > /tmp/igsuite.sql
mv /tmp/igsuite.sql /var/igsuite/cgi-bin/data/igsuite.sql
(copia, per sicurezza, del backup su PC locale)
mysql -u root -pPPPPP
> drop database igsuite;
> create database `igsuite` charset utf8;
> quit
mysql -u root -pPPPPPP -D igsuite < /tmp/igsuite.sql togliere "innodb_force_recovery = 1" a my.cnf [mysqld] /etc/init.d/mysql restart (verifica diritti utente igsuite su DB igsuite)


Name: utf8 - Revision: 0 - Author: LucaS (18.01.2014) - Last Editor: LucaS (23.12.2014) - Category: Wiki - Due Date: 18.01.2015 - View privileges: All the world - Edit privileges: Shared by all users - Copyright © LucaS All right reserved



Last modified Wikies
   
getrss