Probleme sur mon intranet

j3r3m067 Messages postés 99 Date d'inscription mardi 25 août 2009 Statut Membre Dernière intervention 28 juin 2011 - 3 déc. 2009 à 14:06
j3r3m067 Messages postés 99 Date d'inscription mardi 25 août 2009 Statut Membre Dernière intervention 28 juin 2011 - 4 déc. 2009 à 08:26
sur mon serveur intranet, j'ai ma fiche index.php:
<?php
mysql_connect("192.168.16.86:3306", "root", "root");
mysql_select_db("cardio");
$rst = mysql_query("select * from patients");
while ($row = mysql_fetch_array($rst))
{ 
     echo $row[1]
} 
?>


et j'ai les erreurs suivante:

Warning: mysql_connect() [function.mysql-connect]: Host 'ZB58F09.hus.chru-strasbourg.fr' is not allowed to connect to this MySQL server in C:\www\cardio\index.php on line 2

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'SYSTEM'@'localhost' (using password: NO) in C:\www\cardio\index.php on line 3

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in C:\www\cardio\index.php on line 3

Warning: mysql_query() [function.mysql-query]: Access denied for user 'SYSTEM'@'localhost' (using password: NO) in C:\www\cardio\index.php on line 4

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\www\cardio\index.php on line 4

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\www\cardio\index.php on line 5


quelqu'un peut m'expliquer?

2 réponses

kohntark Messages postés 3706 Date d'inscription lundi 5 juillet 2004 Statut Membre Dernière intervention 27 avril 2012 30
3 déc. 2009 à 22:42
BONJOUR à toi aussi (ter)

Le serveur mysql est il installé sur la même machine ou est il sur le LAN ?

merci beaucoup de demander des explications/b (ter)


Kohntark -
0
j3r3m067 Messages postés 99 Date d'inscription mardi 25 août 2009 Statut Membre Dernière intervention 28 juin 2011
4 déc. 2009 à 08:26
Bjr,

Oui le serveur mysql est installer sur la machine sur laquelle est installé mon serveur apache, php, phpmyadmin. si c'est ça ta question.

aurais-tu une idée?

j3r3m
0
Rejoignez-nous