J'ai mis à jour le php sur mon serveur. Maintenant, lorsque je tente de se connecter au serveur MySQL via php je reçois le texte suivant:Conflit MySQL PHP5
Fatal error: Call to undefined function mysql_connect()
Je couru
sudo yum install php-mysql
C'est ce que je suis:
--> Running transaction check
---> Package php-mysql.x86_64 0:5.3.3-40.el6_6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-mysql-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-pdo(x86-64) for package: php-mysql-5.3.3-40.el6_6.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.3-40.el6_6 will be installed
---> Package php-pdo.x86_64 0:5.3.3-40.el6_6 will be installed
--> Processing Conflict: php56w-common-5.6.17-1.w6.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.3.3-40.el6_6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Y at-il un solution simple à cela?
mysql_connect() est dépréciée – davejal
que dois-je utiliser? @davejal – user1011332
Devrait-il être 'sudo yum installer php5-mysql'? – Tristan