Jump to content

Basic MySql question


Dark57

Recommended Posts

I seem to be doing something wrong, but I'm brand new to MySql and I have no clue as to why this is happening. I tried to troubleshoot it a few ways, opened up the .ini and looked through that but I'm not sure as to why I'm still getting this error.

 

I am running Vista and using WAMPserver for my development. Is there something I am missing from either not running it on a real server or am I forgetting to add something?

 

I am getting this error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'SYSTEM'@'localhost' (using password: NO) in C:\wamp\www\Chapter 4 - Databasing\databaseconnect.php on line 5

could not connect: Access denied for user 'SYSTEM'@'localhost' (using password: NO)

 

This is my code:

<html>
<body>

<?php
$con = mysql_connect();
if(!$con)
{
die('could not connect: ' . mysql_error());
}

?>

</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/197138-basic-mysql-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.