On Fri, 2002-11-08 at 16:51, [EMAIL PROTECTED] wrote: > I am trying to connect to my Mysql DB via Apache and PHP, but I get the > following error: " Warning: MySQL Connection Failed: Access denied for > user: 'root@jws-portald' (Using password: YES) in helloSql.php on line 3 > Could not connect"
Can you try to access a db as normal user? Or is there a reason you want to connect to the db as root? I use a MySQL user without password and I connect with a command like: $db = mysql_connect("localhost", "M8ram", ""); mysql_select_db("db_name",$db); Perhaps you have to check the 'case' of your username? HTH -- # Mertens Bram "M8ram" <[EMAIL PROTECTED]> Linux User #249103 # # Red Hat Linux 7.3 KDE 3.0.0-10 kernel 2.4.18-3 i686 128MB RAM # --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php