Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001062

Re: [PHP-DB] Connecting to MySQL From: Christopher Ostmo (tech <email protected>)
Date: 06/21/01

Keith Whyman pressed the little lettered thingies in this order...

> Can anyone help with this problem !
> user name should just be keith but the  <email protected> gets added and then I
> can't connect ???
>
> Warning: MySQL Connection Failed: Access denied for user: 'keith <email protected>'
> (Using password: YES) in /usr/var/www/www.happy.de/html/cms/test.php on
> line 23 Problem connecting to DataBase
>

A copy of the code you are trying to use to connect top the DB would
be helpful.

Basically, " <email protected>" gets added to your username whenever you
haven't specified a host name. Did you use mysql_connect() or
mysql_pconnect() before attempting to run the query?
mysql_connect("host_name","user","password");
$result = mysql("db_name","query");

Christopher Ostmo
a.k.a. tech <email protected>
AppIdeas.com
Meeting cutting edge dynamic
web site needs

For a good time,
http://www.AppIdeas.com/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>