sleepnot Posted April 17, 2012 Share Posted April 17, 2012 it says Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES) in C:\wamp\www\Forum\config.php on line 9 Call Stack # Time Memory Function Location 1 0.0009 396096 {main}( ) ..\index.php:0 2 0.0014 399640 include( 'C:\wamp\www\Forum\config.php' ) ..\index.php:3 3 0.0014 399840 mysql_connect ( ) ..\config.php:9 cannot connect <?php mysql_connect('localhost', 'username', 'password') or die("cannot connect"); mysql_select_db('db'); //Username of the Administrator $admin='admin'; //Forum Home Page $url_home = 'index.php'; //Design Name $design = 'default'; include('init.php'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/261103-help-cant-connect-wrong-variable/ Share on other sites More sharing options...
creata.physics Posted April 17, 2012 Share Posted April 17, 2012 This is an issue with your database information. Hostname, sql user, sql pass or sql table is wrong. Double check and try again. Quote Link to comment https://forums.phpfreaks.com/topic/261103-help-cant-connect-wrong-variable/#findComment-1338103 Share on other sites More sharing options...
sleepnot Posted April 17, 2012 Author Share Posted April 17, 2012 This is an issue with your database information. Hostname, sql user, sql pass or sql table is wrong. Double check and try again. thanks! solved it should be 'root' and '' Quote Link to comment https://forums.phpfreaks.com/topic/261103-help-cant-connect-wrong-variable/#findComment-1338109 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.