Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100220 - mysqlbinlog my.cnf error
Summary: mysqlbinlog my.cnf error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux MySQL bugs team
URL: http://bugs.mysql.com/bug.php?id=10726
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 05:56 UTC by Romang
Modified: 2005-07-26 11:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Romang 2005-07-25 05:56:39 UTC
Hello,

When I have try to use mysqlbinlog i got this error message :

mysql-write / # mysqlbinlog
mysqlbinlog: unknown variable 'character_set=latin1'

This error come from :

[client]
character_set                           = latin1
default-character-set           = latin1

They are no need to put this two latin1, until mysqladmin and mysqbinlog don't
work anymore.

Regards.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-25 12:06:06 UTC
which mysql do you have installed?
Comment 2 Romang 2005-07-26 08:11:35 UTC
Hello,

Yes sorry, the latest stable mysql version 4.1.12-r2

I gonna to upgrade to 4.1.13-r1

Regards.
Comment 3 Francesco R. (RETIRED) gentoo-dev 2005-07-26 09:28:05 UTC
to comment #2

nope, upgrading will not help
(http://dev.mysql.com/doc/mysql/en/option-files.html). 
please remove all "character_set" like settings from "[client]" section of your
my.cnf file.

to comment #2 and all the others.

Those option where added in my.cnf to make easyer the life of programs that link
against mysql library (one for all PHP).

my.cnf file may have more section, the manual mention:
[client]
  [mysql]
  [myisamchk]
  [myisampack]
  [mysqladmin]
  [mysqlbinlog]
  [mysqlcc]
  [mysqlcheck]
  [mysqld_safe]
  [mysqldump]
  [mysqlhotcopy]
  [mysqlimport]
  [mysqlshow]
  
[mysqld] [mysql.server]
  [mysqld-4.0]
  [mysqld-4.1]
  ...

The programs that references to the my.cnf file read the "general" section and
then their specific one.
For example "mysqlbinlog" will read first the "[client]" section then the
"[mysqlbinlog]" one, if they exist.

what we need is a "[mysqlclient]" or "[libmysqlclient]" section but it's not
mentioned anywhere.

A solution that modify only the my.cnf file and not all the external programs is
strongly preferred.
Comment 4 Francesco R. (RETIRED) gentoo-dev 2005-07-26 11:30:59 UTC
My PHP applications don't give anymore strange "collation" errors. Also without
specifing the "character_set" in [client] section.

All programs which:
- have a corresponding subsection in my.cnf
- support some kind of characther specification
now have their section explicited to stay as compatible as possible.

new my.cnf is in CVS -> closing this