486974 Posted September 6, 2007 Share Posted September 6, 2007 Please help i have uploaded some php script followed the instructions to the letter and now i get errors can someone please help. these are the errors Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'rceinter_admin'@'localhost' (using password: YES) in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 16 Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'rceinter'@'localhost' (using password: NO) in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 17 Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 17 Warning: Cannot modify header information - headers already sent by (output started at /home/rceinter/public_html/traffic-blast-one/admin/connect.php:16) in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 465 Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'rceinter_admin'@'localhost' (using password: YES) in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 16 Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'rceinter'@'localhost' (using password: NO) in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 17 Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 17 Warning: Cannot modify header information - headers already sent by (output started at /home/rceinter/public_html/traffic-blast-one/admin/connect.php:16) in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 43 Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'rceinter_admin'@'localhost' (using password: YES) in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 16 Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'rceinter'@'localhost' (using password: NO) in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 17 Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/rceinter/public_html/traffic-blast-one/admin/connect.php on line 17 please help me Quote Link to comment https://forums.phpfreaks.com/topic/68264-i-need-help-i-dont-know-what-to-do-they-said-it-was-easy/ Share on other sites More sharing options...
Psycho Posted September 6, 2007 Share Posted September 6, 2007 All the errors are database errors. The first one shows you had an error attempting to connect to the database, so all other database commands will generate an error as well. You need to correct the database connection error. Then the others will either disappear or you can then attack those. So, for the connection error you need to verify that the database is installed and running and that your connection string has the right parameters: Database location (localhost?), username & password. Quote Link to comment https://forums.phpfreaks.com/topic/68264-i-need-help-i-dont-know-what-to-do-they-said-it-was-easy/#findComment-343204 Share on other sites More sharing options...
486974 Posted September 6, 2007 Author Share Posted September 6, 2007 i have checked the database and repaired it made sure i have written the right username password and host in config.php file and all is good but still getting the same errors Quote Link to comment https://forums.phpfreaks.com/topic/68264-i-need-help-i-dont-know-what-to-do-they-said-it-was-easy/#findComment-343219 Share on other sites More sharing options...
squiggerz Posted September 6, 2007 Share Posted September 6, 2007 Looks like you might need to configure access hosts on your server, dont suppose your server uses Cpanel software does it? Wait, if you uploaded the php file to the same server as the server your database is located, disregard this. Quote Link to comment https://forums.phpfreaks.com/topic/68264-i-need-help-i-dont-know-what-to-do-they-said-it-was-easy/#findComment-343228 Share on other sites More sharing options...
$username Posted September 6, 2007 Share Posted September 6, 2007 you may have to set the password to old. What version of MYSQL are you using. Here is what I have to do. UPDATE mysql.user SET password=OLD_PASSWORD('somepassword') WHERE user='someuser' AND host='somehost'; update mysql.user set -> password = old_password('1234') -> where user = 'root'; Brett Quote Link to comment https://forums.phpfreaks.com/topic/68264-i-need-help-i-dont-know-what-to-do-they-said-it-was-easy/#findComment-343230 Share on other sites More sharing options...
486974 Posted September 6, 2007 Author Share Posted September 6, 2007 its bluehost which uses cpanel i dont know how to configure access host brett MySQL version 4.1.22-standard-log where would i put that piece of code would it go in config.php file heres the instruction i got: Step 1: Create a database in phpMyAdmin (choose a database name, database username and database password, write it down you'll need it for the next step) Step 2: Go to phpMyAdmin and upload the “mysql.sql” file to the new database you created Step 3: To set up the database's host, user name and password, edit the CONFIG.PHP file in notepad, as follows: $db_hostname = "localhost"; $db_username = "databaseusername"; $db_password = "databasepassword"; $db_name = "databasename"; STEP 4: You will also nee to change the server url and the sitename on the config.php script. Replace the values between the brackets $server_url = "http://www.yoursiteurl.com"; $site_name = "SiteName"; (e.g. "My Manual Traffic Exchange") Step 5: Upload script, Chmod "banners" and "Images" folders to 777, Chmod lock.php file in admin folder to 777 Step 6: Log into the admin at http://www.yoursiteurl.com/admin/index.php , your intial password will be "admin". CONFIGURE SCRIPT! Quote Link to comment https://forums.phpfreaks.com/topic/68264-i-need-help-i-dont-know-what-to-do-they-said-it-was-easy/#findComment-343241 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.