Update PHP7 MYSQL PHP Extension

MCSell asked:

I need to Upgrade my Server PHP version to 7.

Is there a way to update in OpenSuse 13.2 to version PHP7 via the console?
Can I install a php Extension which allows me to use the following again?

mysql_connect
mysql_query
mysql_select_db

PS: May be you could help me on another question too?
http://stackoverflow.com/q/34200270/1694342?sem=2

That’s the Reason why I need to updgrade to PHP to 7.

My answer:


The functions you are asking about have been deprecated for years, and no longer exist in PHP 7. See the PHP documentation for information on choosing another MySQL API for your application. (Note that Magento uses PDO so you should have no issues with that aspect of it.)


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.