Need Help, Getting mysql error =(

choad

Registered Member
Joined
Dec 28, 2008
Messages
70
Reaction score
119
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'choad169_123s'@'node17.myserverhosts.com' (using password: YES) in /home/choad169/public_html/index.php on line 5

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'choad169'@'localhost' (using password: NO) in /home/choad169/public_html/index.php on line 6

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/choad169/public_html/index.php on line 6
Access denied for user 'choad169'@'localhost' (using password: NO)

I was trying to install a nulled image php script, and i edited the part i was suppose to about my database info, but every time i try to open any pagess, i get that error. =(

i am 100% sure that the db username i put in is correct same for the name of the database, and the password. also the user has full access to the database

this is the part i was suppose to edit
<?

$server = ".............";
$user = "choad169_123s";
$pass = "...";
$database = "choad169_image";

?>

please help me =(
 
it has nothing to do with chmod. your DB credentials MUST be effed up.
 
yeah, you have to edit

so for example if your host name is john and your db name is newdb and your user name is john1 and your pass is pass22 then it would be

server = localhost (most likely)
user = john_john1
password = pass22
database = john_newdb
 
Make sure you are NOT putting the "choad169_" prefix on your password.

Also try these for the server:
localhost
mysql
mysql.domain.com

and your actual server IP
 
also use <?php at the begining of your php script block instead of just <?

see first line of your code...

its better for compatibility...

i know this is stating the obvious but the DB has been created and a user assigned to it right??? :)
 
make sure the host is "localhost" and you're filling the details out correctly.

It's just an authentication issue, you're database is there and working, just don't have the right details there.
 
If you are using godaddy it wouldnt be "localhost"

What are you using?
 
mmm im using hostnine, and for the server i used the ip adress, ill try typing in localhost

also ty for your guyses help

edit: XD got it working when i typed localhost! ty soo much!

kinda weight though, when i tried the ip adress before i didnt get the error, but now i do. meh problem solved, ty again everyone =P

edit again: actulay wait, dont close thread yet... think im getting another error, brb
 
Last edited:
edit: sorry nvm, figured out what was wrong mods can close, ty for help guys =P
 
mmm i had another msql error, but i forogt i had to run install.php, once i ran it i didnt have the error anymore
 
Back
Top