connexion to mysql db through php

From: Date: Wed, 02 May 2001 17:52:33 +0000
Subject: connexion to mysql db through php
Groups: php.general 
Request: Send a blank email to php-general+get-51177@lists.php.net to get a copy of this message
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: 'root@sdnpc2.sdnp.cm' (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

« previous php.general (#51177) next »