Installation PHP: connexion avec MySQL

Répondre
Partager Rechercher
Bonjour,

Existe-t-il un moyen de configurer une installation de PHP pour activer le module MySQL sans ré-installer ni PHP ni MySQL ?

Voici ma configuration:
http://www.nudge.org:9980/info.php

Sur ce serveur, j'ai déjà un MySQL qui tourne et si j'utilise yum, il tente de ré-installer mysql (qui est d'ailleurs en conflit de version).
Je ne veux ni ne peux pas ré-installer MySQL: j'ai une autre application qui utilise ce serveur et je ne peux pas arrêter cette appli.

J'ai vu qu'une hypothèse serait de l'installer via ./configure, mais ça sous-entends de télécharger les sources et je risque de tâtonner pas mal et de perdre du temps avant de trouver les bons paramètres ....

Sinon, j'ai envisagé de modifier le php.ini et d'ajouter php_mysql.so mais pas moyen de trouver ce fichier où que ce soit sur internet ... et pas certains que ça sera suffisant.

Merci.
Si j'essaye d'installer php-mysql, il m'insulte car il tente un downgrade de mysql-libs.

Code:
> yum install php-mysql
(...)

Dependencies Resolved

=====================================================================================================================================
 Package                        Arch                       Version                          Repository                          Size
=====================================================================================================================================
Installing:
 php-mysql                      x86_64                     5.2.6-2.fc8                      updates-newkey                      83 k
Installing for dependencies:
 mysql-libs                     x86_64                     5.0.45-6.fc8                     updates-newkey                     1.5 M
 php-pdo                        x86_64                     5.2.6-2.fc8                      updates-newkey                      62 k
(...)
Transaction Check Error:
  file /etc/my.cnf from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/charsets/README from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.0.45-6.fc8.x86_64 conflicts with file from package MySQL-server-5.1.50-1.glibc23.x86_64
Je connais pas trop Fedora et ses petits copains (Debian forever ), mais tu ne peux pas télécharger un paquets en excluant certaines dépendances (avec RPM plutôt que YUM)?

Sinon le paquet c'est php5-mysql .

Ou sinon, autre solution, tu ne peux pas faire une copie de ton serveur ailleurs(Machine virtuelle ?), faire tes tests. Si ça marche, tu renvoies ton appli vers ton serveur de "secours", tu mets à jour sur ton serveur principal et tu rebascules ton appli vers ton serveur principale ?
c'est bon le problème est résolu.
je me suis créé une nouvelle instance vierge en cloud juste le temps d'installer le package php-mysql puis j'ai copié le mysql.so entre les deux environnements.
ça marche.

merci en tout cas pour ton aide Elmet Hachem
__________________
www.nudge.org
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés