Hello.


>I use my.ini in MySQL install directory



On Windows, MySQL programs reads startup options from the following files:

  WINDIR\my.ini

  C:\my.cnf 



Use --defaults-file=/path/ command line option to specify exact location

of my.ini file.







Zimoo <[EMAIL PROTECTED]> wrote:

> Hello Gleb,

> 

> Sunday, December 19, 2004, 10:02:58 PM, you wrote:

> 

>> Also you can put in your [client] section of my.cnf something like:

>>  default_character_set=gbk

> 

>   I use my.ini in MySQL install directory, not my.cnf .

>   My MySQL Server in windows services.msc is

>   "C:\Program Files\MySQL\bin\mysqld-max-nt" --defaults-file="C:\Program 
> Files\mysql\my.ini" MySQL

> 

>   When I put default_character_set = gbk or default-character-set = gbk

>   in [client], and use command

>   C:\>net start mysql

>   Server could started, but mysql show me like:

> 

> mysql> show variables like "char%";

> +--------------------------+----------------------------------------+

> | Variable_name            | Value                                  |

> +--------------------------+----------------------------------------+

> | character_set_client     | latin1                                 |

> | character_set_connection | latin1                                 |

> | character_set_database   | gbk                                    |

> | character_set_results    | latin1                                 |

> | character_set_server     | gbk                                    |

> | character_set_system     | utf8                                   |

> | character_sets_dir       | C:\Program Files\MySQL\share\charsets/ |

> +--------------------------+----------------------------------------+

> 7 rows in set (0.00 sec)

> 

> Why?

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to