Connexion base de données
bonsoir j'ai un probléme de connexion a ma bd voici le script de connexion
Code:
1 2 3 4 5 6 7 8 9 10 11
|
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connex2 = "host";
$database_connex2 = "monbd";
$username_connex2 = "user";
$password_connex2= "password";
$connex2 = mysql_pconnect($hostname_connex2, $username_connex2, $password_connex2) or trigger_error(mysql_error(),E_USER_ERROR);
?> |
et jai ce message derreur:
Warning: mysql_pconnect(): Can't connect to MySQL server on 'monserveur' (110)