"Juri Shimon" <[EMAIL PROTECTED]> wrote:
>> Hi!
>>
>> >
>> > What does 'SHOW CREATE DATABASE database_name;' show for this database?
>> >
>>
>> I've found it...
>>
>> 1. F:\Projects\has\sql>mysql -u root -e "create database t; show create
>> database t; drop database t"
>>
> +----------+--------------------------------------------------------------+
>> | Database | Create Database
> |
>>
> +----------+--------------------------------------------------------------+
>> | t        | CREATE DATABASE `t` /*!40100 DEFAULT CHARACTER SET cp1251 */
> |
>>
> +----------+--------------------------------------------------------------+
>>
>> 2. F:\Projects\has\sql>mysql -u root -e "use_mysql; create database t;
> show
>> create database t; drop database t"
>>
> +----------+--------------------------------------------------------------+
>> | Database | Create Database
> |
>>
> +----------+--------------------------------------------------------------+
>> | t        | CREATE DATABASE `t` /*!40100 DEFAULT CHARACTER SET latin1 */
> |
>>
> +----------+--------------------------------------------------------------+
>>
>> Where
>> F:\Projects\has\sql>mysql -u root -e "show create database mysql"
>>
> +----------+----------------------------------------------------------------
>> --+
>> | Database | Create Database
>> |
>>
> +----------+----------------------------------------------------------------
>> --+
>> | mysql    | CREATE DATABASE `mysql` /*!40100 DEFAULT CHARACTER SET latin1
>> */ |
>>
> +----------+----------------------------------------------------------------
>> --+
>>
>> Seems, there is dependence on current database charset and, IMHO, it's a
>> bug.
>>

It's not a bug.
character_set_database indicates the current database character set.


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [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