Our web servers run PHP 7+ by default. In this PHP version the old MySQL module is replaced with either the mysqli or PDO_MySQL extension.
The original mysql extension is deprecated and is no longer supported in newer versions of PHP.
It has been removed in PHP 7+ to enhance:
Security
Performance
stable
Contemporary standards of development
If your website or application was developed using the old mysql functions then you should update your code to one of the following:
mysqli (MySQL Improved)
PDO_MySQL (PHP Data Objects MySQL)
Nowadays this is the most common way to link PHP applications to MySQL databases.
If you are already running modern PHP code on your site you will not be affected.
However, if your website uses deprecated functions like:
mysql_connect()
mysql_query
Then you will need to update, as those functions are no longer available in PHP 7+.
Our suggestions:
Changing your code to use mysqli or PDO_MySQL
If you’re using WordPress or another CMS, check for plugin or theme compatibility
See Official PHP Documentation for Migration Guidance
You can find technical information and tips for migration on PHP’s official website about the deprecation of the MySQL extension.