I get this error while try to access MySQL database using phpMyAdmin. Unable to establish connection to MySQL 1045 : Access denied for user 'apache'@'localhost' (using password: NO) I don't know what is apache@localhost. The error is from server and hosting settings? or there is a php / SQL programming fault? Any idea is appreciated.
are you passing a username and password to it? doesnt seem so. $conn = mysql_connect("localhost","username","password"); PHP:
Ask your host to change the value of $cfg['Servers'][$i]['user'] , and $cfg['Servers'][$i]['password'] in "config.inc.php" file. That's your base user when you use phpmyadmin. regards
Please let me explain more. I'm trying to install a special modified version of CuteNews which uses PHP-MySQL.(The original version of CuteNews does not use MySQL.) The installation program needs the following parameters during setup process : Database Server... Database User Name ... Database Password... Database Name ... ----------------- The problem is that on my hosting server there is a different setting than usual setting. There is not localhost , instead I see these settings via my control panel and phpMyadmin : Database Server = an IP address has been given via TCP/IP. (I name it IP1) (Instead of localhost via Unix.) User Name = username@anohter IP address. (I name it IP2) ----------------- The server management system is Apache 2. Can any one help about what I should fill in ... places?