mysql extension is deprecated and will be removed ... : use mysqli or PDO instead


Same old problem as described after several years posted. I can’t find a clear solution on forums.

[SIZE=12px]We get:

Connection Success after installing deployment on production machine but:[/SIZE]
[TABLE=“border: 1, cellpadding: 1, width: 500”]
[TD][SIZE=11px]Connection Error[/SIZE]

		[SIZE=11px]mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead[/SIZE][/TD]

When trying to select [SIZE=12px]Database Name [/SIZE]

My only guess is both development and production machine must run same PHP version.
Any ideas?

Production Env: [INDENT]buntu 15.10
XAMPP for Linux 5.6.21
PHP Version 5.6.21[/INDENT] Development Env: [INDENT]Scriptcase V6[/INDENT] [INDENT]CentOS shared server
PHP Version 5.3.29[/INDENT] Thank you in advance.


If you dont move from from PHP version is ok. MySQL extension is marked deprecated in different PHP versions, and removed on PHP7

There’s a good (security) reason for that. Therefore I recommend using pdo.