{"id":17089297,"url":"https://github.com/holdoffhunger/mysql-errors-codes","last_synced_at":"2026-04-30T17:32:09.481Z","repository":{"id":174703239,"uuid":"140774431","full_name":"HoldOffHunger/mysql-errors-codes","owner":"HoldOffHunger","description":"Provide fuller error messaging for MySQL error messages.","archived":false,"fork":false,"pushed_at":"2020-06-05T04:04:06.000Z","size":183,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T15:28:24.727Z","etag":null,"topics":["mysql","mysql-database","mysql-error"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HoldOffHunger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["HoldOffHunger"]}},"created_at":"2018-07-12T23:35:21.000Z","updated_at":"2020-06-05T04:04:08.000Z","dependencies_parsed_at":"2023-07-30T12:00:09.185Z","dependency_job_id":null,"html_url":"https://github.com/HoldOffHunger/mysql-errors-codes","commit_stats":null,"previous_names":["holdoffhunger/mysql-errors-codes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HoldOffHunger/mysql-errors-codes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoldOffHunger%2Fmysql-errors-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoldOffHunger%2Fmysql-errors-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoldOffHunger%2Fmysql-errors-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoldOffHunger%2Fmysql-errors-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HoldOffHunger","download_url":"https://codeload.github.com/HoldOffHunger/mysql-errors-codes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoldOffHunger%2Fmysql-errors-codes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32472396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mysql","mysql-database","mysql-error"],"created_at":"2024-10-14T13:46:40.991Z","updated_at":"2026-04-30T17:32:09.465Z","avatar_url":"https://github.com/HoldOffHunger.png","language":"PHP","funding_links":["https://github.com/sponsors/HoldOffHunger"],"categories":[],"sub_categories":[],"readme":"# MySQL Error Codes\n\nThis project intends to provide fuller error messaging for MySQL error messages.\n\n## Sample Use\n\n### OLD Error Messaging\n\nNormally, in PHP and MySQL, the only error information you can get is...\n\n\t$db_link = new mysqli($this-\u003ehostname,$this-\u003eusername,$this-\u003epassword);\n\tprint($db_link-\u003econnect_errno . \" : \" . $db_link-\u003econnect_error);\n\nThis will only give output like...\n\n\t13236 : Message: Newly created data directory SOMEDIRECTORY is unusable. You can safely remove it.\n\n### NEW Error Messaging\n\nBut with MySQLErrorCodes...\n\n\t$db_link = new mysqli($this-\u003ehostname,$this-\u003eusername,$this-\u003epassword);\n\tprint($db_link-\u003econnect_errno . \" : \" . $db_link-\u003econnect_error);\n\t\n\t$mysql_error = new MySQLErrorCode();\n\t$error_codes = $mysql_error-\u003eErrorCodes();\n\t\n\tprint_r($error_codes[13236]);\n\t\nAnd this will give the full output of...\n\n\t13236 : Message: Newly created data directory SOMEDIRECTORY is unusable. You can safely remove it.\n\n\t'13236' =\u003e [\n\t\t'error_code' =\u003e '13236',\n\t\t'internal_code' =\u003e 'ER_DATA_DIRECTORY_UNUSABLE',\n\t\t'message_template' =\u003e 'Message: Newly created data directory %s is unusable. You can safely remove it.',\n\t\t'sql_state' =\u003e 'HY000',\n\t\t'version_information' =\u003e 'ER_DATA_DIRECTORY_UNUSABLE was added in 8.0.13.'\n\t],\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholdoffhunger%2Fmysql-errors-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholdoffhunger%2Fmysql-errors-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholdoffhunger%2Fmysql-errors-codes/lists"}