Re: [PHP] Connexion to MySQL

2001-07-18 Thread Jason Bell

Forget PHP for a second. Can you connect to that server normally, using
a MySQL Client?

- Original Message -
From: Moise Bertrand TACHAGO [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 1:55 PM
Subject: [PHP] Connexion to MySQL


 Hi,

 Please can anyone help me to understand and resolve the probleme below

 Warning: MySQL Connection Failed: Host '195.24.202.98' is not allowed to
connect to this MySQL server in
 /usr/local/apache/htdocs/kolosys/Menu.php on line 35
 ERROR:

 Unable to connect to server

 I have this probleme when i'm try to connect to MySQL through a php
program i had wrote.

 This is how i made the connexion:

 $server=getenv(SERVER_NAME);

 $user=root;

 $pass=;

 mysql_connect($server,$user,$pass);

 Thanks in advance

 --
 Moise Bertrand TACHAGO
 Computer scientist
 Intern SDNP Cameroon, 506 Hajal Center Building, Yaounde CAMEROON
 phone   (237)22 24 90
 E_mails [EMAIL PROTECTED]
 [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] connexion to mysql db through php

2001-05-02 Thread Moise Bertrand Tachago

Hi to all,

I am working on i60086 environment with php-4.0.4pl1, mysql-3.23.36,
Linux 7 and apache_1.3.19 (on the same computer).

I can't connect to mysql with user and password i use in command line.
This is what i do:

?php

$serveur=sdnpc2.sdnp.cm;
$login=root;
$pass=sdnp;
$base=sdnpdb;

mysql_connect($serveur,$login,$pass) or die (Connexion au serveur
impossible);
mysql_select_db($base) or die(connexion a la base de donnees
impossible);
.
.
.
?

this program is called when i submit my form (form action=bd.php
method=post) and i have the follow error message:
Warning: MySQL Connection Failed: Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES) in
/www/htdocs/sdnpdev/Creation_Membre.php on line 11
Connexion au serveur impossible

Please can somebody help me?

Thanks in advance

Bertrand


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]