From: "Peter V. Saveliev" <peet@eltel.net>
To: sisyphus@altlinux.ru
Subject: [sisyphus] mysql sorting order problem
Date: Wed, 15 Oct 2003 10:42:48 +0400
Message-ID: <20031015104248.5252ff25.peet@eltel.net> (raw)
...
Есть проблемы с сортировкой в mysql:
[root@mysql mysql]# rpm -qa | grep -i mysql-server
MySQL-server-4.0.15-alt2
[root@mysql mysql]# my_print_defaults mysqld
--default-character-set=win1251
--chroot=/var/lib/mysql
--datadir=/db
--bdb-logdir=/log
--pid-file=/mysqld.pid
--skip-locking
--socket=/mysql.sock
--tmpdir=/tmp
--user=mysql
--set-variable=max_connections=300
Запрос:
select * from a.b order by c;
В колонке "c" находятся данные в cp1251. Сортировка, как понятно,
сортирует "как-то странно". Конкретнее, пример у клиента:
http://www.finnews.ru/test.php
В настройках сервера указывал как cp1251, так и win1251. Ни character
set, ни collate в запросах не работают вообще. То есть, говорят ошибку
синтаксиса (все запросы брал из документации).
В общем-то, проблема даже не в сортировке :) Порвут меня сегодня, как
тузики тряпку. Хелп.
--
10:37:04 up 33 days, 21:53, 2 users, load average: 0.60, 0.59, 0.58
++
Sincerely, Peter V. Saveliev
E-mail: peet@eltel.net
Jabber: peet@jabber.ru
next reply other threads:[~2003-10-15 6:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 6:42 Peter V. Saveliev [this message]
2003-10-15 6:58 ` Evgeny Yugov
2003-10-15 8:06 ` Peter V. Saveliev
2003-10-15 8:14 ` Re[2]: " Evgeny Yugov
2003-10-15 8:29 ` Peter V. Saveliev
2003-10-15 8:43 ` Re[2]: " Evgeny Yugov
2003-10-15 8:51 ` Peter V. Saveliev
2003-10-15 9:06 ` Re[2]: " Evgeny Yugov
2003-10-15 17:10 ` Serge Pavlovsky
2003-10-16 22:55 ` Peter V. Saveliev
2003-10-17 1:05 ` Peter V. Saveliev
2003-10-17 1:34 ` Peter V. Saveliev
2003-10-15 17:02 ` Serge Pavlovsky
2003-10-16 11:04 ` Sanja Byelkin
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=20031015104248.5252ff25.peet@eltel.net \
--to=peet@eltel.net \
--cc=sisyphus@altlinux.ru \
/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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git