# mysql access bug

**URL:** <https://forums.interworx.com/t/mysql-access-bug/12276>\
**Category:** Bugs\
**Created:** [January 21, 2009, 4:33am UTC](https://forums.interworx.com/t/mysql-access-bug/12276 "2009-01-21T04:33:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulo](https://forums.interworx.com/user_avatar/forums.interworx.com/paulo/32/7_2.png) [@paulo](https://forums.interworx.com/u/paulo)\
**Post date:** [January 21, 2009, 4:33am UTC](https://forums.interworx.com/t/mysql-access-bug/12276/1 "2009-01-21T04:33:23Z")

</div>

Hi,

One of our customers discovered a possible bug on mysql as reported bellow;  
System: CentOS 5.2 + Interworx 3.0.4  
Mysql user BD created: domuser1\_OB\_user  
when using domuser1\_OB\_user123, domuser1\_OB\_user1111, etc, it permits login to database and the user is not created.

Please confirm if it is really a bug

Regards

---

<div class="post-metadata">

**Author:** ![IWorx-Tim-Pgh](https://forums.interworx.com/user_avatar/forums.interworx.com/iworx-tim-pgh/32/10_2.png) [@IWorx-Tim-Pgh](https://forums.interworx.com/u/IWorx-Tim-Pgh)\
**Post date:** [January 21, 2009, 8:39am UTC](https://forums.interworx.com/t/mysql-access-bug/12276/2 "2009-01-21T08:39:51Z")

</div>

Hi Paulo -

I can certainly confirm the behavior. It’s because MySQL only supports 16-character user names, and the server itself simply truncates the username! Since the usernames are truncated to the same 16 characters as the first name your user is using, as long as it’s using the same password, the connection is made as the first user, not as the longer name.

Unfortunately, MySQL does not see this as a bug - [http://bugs.mysql.com/bug.php?id=4944](http://bugs.mysql.com/bug.php?id=4944)

Thanks  
Tim

---

<div class="post-metadata">

**Author:** ![paulo](https://forums.interworx.com/user_avatar/forums.interworx.com/paulo/32/7_2.png) [@paulo](https://forums.interworx.com/u/paulo)\
**Post date:** [January 21, 2009, 2:57pm UTC](https://forums.interworx.com/t/mysql-access-bug/12276/3 "2009-01-21T14:57:11Z")

</div>

Thank you for the feedback, Tim
