PHPackages                             mysql-php/errors - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. mysql-php/errors

ActiveLibrary[Database &amp; ORM](/categories/database)

mysql-php/errors
================

MySQL Server Error Constants for PHP

v1.0.0(8y ago)156.6k↓35.2%MITPHPPHP &gt;=5.4

Since Dec 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Bavragor/mysqlerror)[ Packagist](https://packagist.org/packages/mysql-php/errors)[ RSS](/packages/mysql-php-errors/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

mysql-php/errors
================

[](#mysql-phperrors)

MySQL Server Error Constants

[![Latest Stable Version](https://camo.githubusercontent.com/8ba755590a993c3a21ad9692613baef5d9367672a13ee4a31c93a35bd9940509/68747470733a2f2f706f7365722e707567782e6f72672f6d7973716c2d7068702f6572726f72732f762f737461626c65)](https://packagist.org/packages/mysql-php/errors)[![Total Downloads](https://camo.githubusercontent.com/0576ad70646f58de3271f5bd35e4147088afa0323861d8aa2070de5a47014ddb/68747470733a2f2f706f7365722e707567782e6f72672f6d7973716c2d7068702f6572726f72732f646f776e6c6f616473)](https://packagist.org/packages/mysql-php/errors)[![License](https://camo.githubusercontent.com/45dfd345feae03ca45d81e4c739b8029527995c832c71b3619ddac97da469120/68747470733a2f2f706f7365722e707567782e6f72672f6d7973716c2d7068702f6572726f72732f6c6963656e7365)](https://packagist.org/packages/mysql-php/errors)[![Monthly Downloads](https://camo.githubusercontent.com/5414e39c6e339ea298c4e290f055490fe2cabe9f6b5d39029e50b0fc6b0a2157/68747470733a2f2f706f7365722e707567782e6f72672f6d7973716c2d7068702f6572726f72732f642f6d6f6e74686c79)](https://packagist.org/packages/mysql-php/errors)

Covers up to MySQL 5.7.13. Notice that some constants were renamed in later versions of MySQL, because they became obsolete. (In case you wonder: the names here match the symbols MySQL uses in source code.) Obsolete names haven't been changed in this package to avoid breaking code, but you should no longer be using them in applications.

Usage
-----

[](#usage)

To start using error constants in your code, require mysql-php/errors in [Composer](https://getcomposer.org/):

```
composer require mysql-php/errors

```

Changes
-------

[](#changes)

Here's the full list of changes since this package's first version:

CodeThis packageMySQL (as of 5.7.8)1150ER\_DELAYED\_CANT\_CHANGE\_LOCKER\_UNUSED11151ER\_TOO\_MANY\_DELAYED\_THREADSER\_UNUSED21165ER\_DELAYED\_INSERT\_TABLE\_LOCKEDER\_UNUSED31349ER\_VIEW\_SELECT\_DERIVEDER\_VIEW\_SELECT\_DERIVED\_UNUSED

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3079d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c614e4c0a0f7dd8b823c000598c95d86c2525dc6ca484d9158d119c53ce55e2?d=identicon)[Bavragor94](/maintainers/Bavragor94)

---

Top Contributors

[![tony-stark-eth](https://avatars.githubusercontent.com/u/7630518?v=4)](https://github.com/tony-stark-eth "tony-stark-eth (6 commits)")

---

Tags

exception-handlingmysqlphpphp7php71

### Embed Badge

![Health badge](/badges/mysql-php-errors/health.svg)

```
[![Health](https://phpackages.com/badges/mysql-php-errors/health.svg)](https://phpackages.com/packages/mysql-php-errors)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
