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

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

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

MySQL Server Error Constants for PHP

v1.0.0(8y ago)160.6k—8.3%MITPHPPHP &gt;=5.4

Since Dec 12Pushed 8y 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 2w 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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

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

3170d 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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

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