Skip to main content
Share Your Experience: Take the 2024 Developer Survey

MySQL is an open-source, relational database management system. If your PHP code uses MySQLi, use the MySQLi tag instead.

MySQL is a relational database management system that runs as a server providing multi-user access to a number of databases.

Deprecation of mysql_ functions

PHP functions that start with mysql_ have been deprecated as of PHP 5.5.0. If you are in a position to do so, please consider updating your code to use the mysqli_ or PDO extensions instead.

Code Language (used for syntax highlighting): lang-sql