<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="1002402">
  <date_last_updated>2012-05-30 23:48:47.903123+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/1002402</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~hartmut-php</bug_owner_link>
    <milestone_link></milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/1002402/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/1002402/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/1002402</bug_web_link>
  <owner>Hartmut Holzgraefe</owner>
  <assignee></assignee>
  <milestone_title></milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>mysql_install_db still creates users with case sensitive hostname</title>
  <status>New</status>
  <importance>Undecided</importance>
  <created>2012-05-21 17:51:35.018516+00:00</created>
  <description>
<![CDATA[Description:
Since the fix of MySQL bug http://bugs.mysql.com/36742 GRANT, CREATE USER and DROP USER all lowercase the host name portion of user name argument before going to the mysql.user table, so ensuring that the actually stored host name part is always lowercase.

The mysql_system_tables_data.sql template used by mysql_install_db doesn't take into account yet that the system hostname may use upper case characters in its set hostname

How to repeat:
On the shell do "hostname FOOBAR"
then do a fresh server installation using mysql_install_db
check the mysql.user table to see that entries with the
uppercase FOOBAR were created instead of the expected lowercase foobar]]>  </description>
  <activities>
    <activity datechanged="2012-05-21T17:51:35.018516+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Hartmut Holzgraefe</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2012-05-21T17:52:33.276197+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[http://bugs.mysql.com/bug.php?id=62254]]>      </newvalue>
      <whatchanged>bug watch added</whatchanged>
      <person>Hartmut Holzgraefe</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-21T17:52:33.276197+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[mysql-server]]>      </newvalue>
      <whatchanged>bug task added</whatchanged>
      <person>Hartmut Holzgraefe</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-21T18:41:05.142341+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[lp:~hartmut-php/maria/bug1002402]]>      </newvalue>
      <whatchanged>branch linked</whatchanged>
      <person>Hartmut Holzgraefe</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-22T11:14:21.777619+00:00">
      <oldvalue>
<![CDATA[Description:
Since the fix of bug #36742 GRANT, CREATE USER and DROP USER all lowercase the host name portion of user name argument before going to the mysql.user table, so ensuring that the actually stored host name part is always lowercase.

The mysql_system_tables_data.sql template used by mysql_install_db doesn't take into account yet that the system hostname may use upper case characters in its set hostname

How to repeat:
On the shell do "hostname FOOBAR"
then do a fresh server installation using mysql_install_db
check the mysql.user table to see that entries with the 
uppercase FOOBAR were created instead of the expected lowercase foobar]]>      </oldvalue>
      <newvalue>
<![CDATA[Description:
Since the fix of MySQL bug http://bugs.mysql.com/36742 GRANT, CREATE USER and DROP USER all lowercase the host name portion of user name argument before going to the mysql.user table, so ensuring that the actually stored host name part is always lowercase.

The mysql_system_tables_data.sql template used by mysql_install_db doesn't take into account yet that the system hostname may use upper case characters in its set hostname

How to repeat:
On the shell do "hostname FOOBAR"
then do a fresh server installation using mysql_install_db
check the mysql.user table to see that entries with the
uppercase FOOBAR were created instead of the expected lowercase foobar]]>      </newvalue>
      <whatchanged>description</whatchanged>
      <person>Hartmut Holzgraefe</person>
      <message></message>
    </activity>
    <activity datechanged="2012-05-30T23:48:47.733567+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[upstream]]>      </newvalue>
      <whatchanged>tags</whatchanged>
      <person>Elena Stepanova</person>
      <message></message>
    </activity>
  </activities>
  <comments>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/1002402/comments/0" datecreated="2012-05-21T17:51:35.018516+00:00">
      <person>Hartmut Holzgraefe</person>
      <subject>
<![CDATA[mysql_install_db still creates users with case sensitive hostname]]>      </subject>
      <content>
<![CDATA[Description:
Since the fix of bug #36742 GRANT, CREATE USER and DROP USER all lowercase the host name portion of user name argument before going to the mysql.user table, so ensuring that the actually stored host name part is always lowercase.

The mysql_system_tables_data.sql template used by mysql_install_db doesn't take into account yet that the system hostname may use upper case characters in its set hostname

How to repeat:
On the shell do "hostname FOOBAR"
then do a fresh server installation using mysql_install_db
check the mysql.user table to see that entries with the 
uppercase FOOBAR were created instead of the expected lowercase foobar]]>      </content>
    </comment>
  </comments>
  <branches>
    <branch>lp:~hartmut-php/maria/bug1002402</branch>
  </branches>
</launchpad-bug>
