I tried to upload a file via my web site, which uses a common video file upload script, during the uploading process this page appeared: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." So then I looked in the site script's Error Log and I see this: PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'xyzadmin'@'localhost' (using password: YES) in /home/public_html/logout.php on line 25 So, I look at line 25 of the login.php file and I see this: $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); Can you shed some light on what I might do to remedy this? Or offer some guidance? I'm not very versed in databases, mysql or phpmyadmin. Thanks
are u sure u hav installed the script properly? have u made a mysql database,given a mysql user its privileges and made tables in the database,also specified wat $dbhost etc are?
are u sure u hav installed the script properly? YES have u made a mysql database,given a mysql user its privileges and made tables in the database,also specified wat $dbhost etc are? YES
To me it seems you are trying to connect to a MySQL database using invalid user information. 1) Ensure the database host, database user name and password are 100% correct in your script and in the location you have created them. 2) Ensure the MySQL user has the correct privileges 3) Ensure the MySQL user has access to the database you have created.
One of $dbhost, $dbuser or $dbpass is wrong, the database is set up incorrectly or the database has a problem (like MySQL crashed).