Bonsoir à tous

Mon site en html sur http://paniez.laurent.ifrance.com/

J'ai préparé une mise à jour en php avec dreamweaver MX2004 et WAMP5 version 2.0 ( phpmyadmin,apache,php,mysql) depuis un an et en Localhost tout va bien.

Donc migration vers ifrance.

J'ai activé ma base, créer en ligne ma première table = ok.

Modifier mon fichier <<ma_connexion.php>> en local,distant,évaluation.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_ma_connexion = "imysql04";
$database_ma_connexion = "i3855138";
$username_ma_connexion = "i3855138";
$password_ma_connexion = "******";
$ma_connexion = mysql_pconnect($hostname_ma_connexion, $username_ma_connexion, $password_ma_connexion) or die(mysql_error());
mysql_select_db($database_ma_connexion, $ma_connexion);
?>
Modifier mon <<index.php>>

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
<?php require_once('connections/ma_connexion.php'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
	<TITLE>Bienvenue chez Nous</TITLE>
	<META NAME="GENERATOR" CONTENT="Microsoft FrontPage 6.0">
	<META NAME="CREATED" CONTENT="20050926;10490270">
	<META NAME="CHANGEDBY" CONTENT="Laurent Paniez">
	<META NAME="CHANGED" CONTENT="20051019;9281000">
Il ne trouve pas ma table et aprés F12 message :

Warning: mysql_pconnect() [function.mysql-pconnect]: Unknown MySQL server host 'imysql04' (11004) in C:\wamp\www\lpaniez_ifrance\connections\ma_connexion.php on line 9
Unknown MySQL server host 'imysql04' (11004)

Comme l'erreur viens de C:\wamp\www\.....
J'ai donc inclus dans <<config.inc.php>>

Aprés
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
$i++;
$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave 
.......etc .......
Ces lignes ;
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
$i++;
$cfg['Servers'][$i]['host']          = 'imsql04'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension']     = 'mysqli';     // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                    // (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
                                                    // (this user must have read-only
$cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
                                                    // and "mysql/db" tables).
                                                    // The controluser is also
                                                    // used for all relational
                                                    // features (pmadb)
$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'i3855138';           // MySQL user                       ( 'root')
$cfg['Servers'][$i]['password']      = '*******';          // MySQL password (only needed         ( ' **** = par sécurité' )
                                                    // with 'config' auth_type)
$cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
                                                    // this db is displayed in left frame
....... etc
Maintenant j'ai bien deux serveurs localhost et imysql mais le dernière donne;

Erreur
MySQL a répondu:
#2005 - Unknown MySQL server host 'imsql04' (11004)

J'ai aussi remarqué que l'accés en ligne se fait avec

http://82.196.5.29/db/index.php

Il faut peut-être inclure dans <<config.inc.php>> cette adresse ip mais ou

Merci pour votre aide par avance