# Customize Mysql Error Messages

**URL:** <https://forums.percona.com/t/customize-mysql-error-messages/941>\
**Category:** Other MySQL® Questions\
**Created:** [September 24, 2008, 1:51am UTC](https://forums.percona.com/t/customize-mysql-error-messages/941 "2008-09-24T01:51:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pato](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Pato](https://forums.percona.com/u/Pato)\
**Post date:** [September 24, 2008, 1:51am UTC](https://forums.percona.com/t/customize-mysql-error-messages/941/1 "2008-09-24T01:51:54Z")

</div>

Hallo forks,

I would like to know whether there is a way in which I can customize error messages from my mysql db to user friendly messages. For example due to referential integrity a user cannot just delete an item in one table when the same item is referenced by another table.

I will appreciate any help.

Thanks.

---

<div class="post-metadata">

**Author:** ![xaprb](https://avatars.discourse-cdn.com/v4/letter/x/49beb7/32.png) [@xaprb](https://forums.percona.com/u/xaprb)\
**Post date:** [December 25, 2009, 11:06am UTC](https://forums.percona.com/t/customize-mysql-error-messages/941/2 "2009-12-25T11:06:39Z")

</div>

You’ll have to build your own errmsg.sys.
