From: "Aleksey E. Birukov" <birukov@vladinfo.ru> To: Sysadmins@lists.altlinux.org Subject: [Sysadmins] Кодировка при переходе с mysql4 на mysql5 Date: Thu, 07 Aug 2008 19:45:02 +0400 Message-ID: <489B187E.3080402@vladinfo.ru> (raw) Есть файлы базы из /var/lib/mysql/db/host1248. База создавалась на mysql версии 4. Соответственно на версии 5. Проблема с кодировкой. Как можно ее решить? На одном сервере я добавлял init-connect='SET NAMES cp1251' в my.cnf а потом заливал дамп, сделанный на 4-ой версии. Есть ли более оптимальный способ? Я попробовал на 5-ой версии дамп сделать -- ошибка: mysqldump: Error 1194: Table 'sml_stat_hosts' is marked as crashed and should be repaired when dumping table `sml_stat_hosts` at row: 1746290 Причем я пробовал эту таблицу починить через phpMyAdmin
next reply other threads:[~2008-08-07 15:45 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-08-07 15:45 Aleksey E. Birukov [this message] 2008-08-07 16:01 ` Nikolay A. Fetisov 2008-08-07 17:13 ` Aleksey E. Birukov 2008-08-07 18:09 ` Nikolay A. Fetisov 2008-08-07 18:15 ` Aleksey E. Birukov 2008-08-07 18:24 ` Aleksey E. Birukov 2008-08-07 17:20 ` Aleksey E. Birukov 2008-08-07 20:39 ` Aleksey E. Birukov 2008-08-08 12:46 ` [Sysadmins] Кодировка при переходе с mysql4 на mysql5 (кто шарит в sql?) Aleksey E. Birukov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=489B187E.3080402@vladinfo.ru \ --to=birukov@vladinfo.ru \ --cc=Sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git