Question:
mysql database error help?
shyGuy
2012-06-20 04:33:27 UTC
Hi I need help installing a script...i followed the instructions but i get the error below.

script- http://www.worldtvpc.com/internettvscript/howtoinstall.php

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'u924032675'@'localhost' (using password: YES) in /home/u924032675/public_html/index.php on line 4
Access denied for user 'u924032675'@'localhost' (using password: YES)


i might messed up on creating the mysql database.

what should i do?

thanks
sean
Three answers:
potatocouch
2012-06-20 15:51:25 UTC
the error states the error is on line 4. it would more helpful if you can paste lines 3-5. it seems like your database password is wrong. note that the password is case sensitive. try logging in from an alternative method such as phpmyadmin or via the command line to see if you have the right password.
James Bond
2012-06-20 04:46:50 UTC
First pickup creating database, creating users for the same from your web site tools. Then, use those users usernames, passwords, in this script file along with other parameters.
picou
2016-11-29 06:05:18 UTC
you probably did no longer positioned your code, so, verify that your connection is prevalent this type: function dbconnect() { $link = mysql_connect ( " localhost " , " username " , " password ") or die ("blunders: ".mysql_error()); mysql_select_db ( " databasename " ) or die("ought to no longer elect database: ".mysql_error()); return($link); } (replace localhost, username, password and databasename with the genuine values, of course, and do away with areas further!) it form of feels additionally which you attempt to apply "root" as your username: that isn't be in a position to be! "root" is a key-word.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...