I am running mysql on windows me and when I try to connect with the below code i get the below errors
<?php
if(!$link_id = mysql_connect("localhost","frank","frank")) die("Cannot connect to mysql");
if(!mysql_select_db("cheats")) die("Cannot Select Database");
if(!$result = mysql_query("SELECT * FROM dreamcast", $link_id)) die("cannot query");
while ($data_db = mysql_fetch_row($result));
{
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td bgcolor=\"#ffffff\">",$data_db[0],"</td></tr></table>";
}
?>
---errors
Warning: Access denied for user: 'frank@COMPUTER' (Using password: YES) in c:\program files\apache group\apache\htdocs\index.php on line 11
Warning: MySQL Connection Failed: Access denied for user: 'frank@COMPUTER' (Using password: YES) in c:\program files\apache group\apache\htdocs\index.php on line 11
and i am also getting this error from mysql program
010817 13:33:46 Aborted connection 3 to db: 'unconnected' user: 'ODBC' host: `localhost' (Unknown error) - see <!-- m --><a class="postlink" href="http://www.mysql.com/doc/C/o/Communication_errors.html">http://www.mysql.com/doc/C/o/Communication_errors.html</a><!-- m -->
C:/MYSQL/bin/mysqld-opt.exe: ready for connections
I went to the site they gave me but that was no help...can someone please help me get mysql working??
Thanks,
-Frank
<?php
if(!$link_id = mysql_connect("localhost","frank","frank")) die("Cannot connect to mysql");
if(!mysql_select_db("cheats")) die("Cannot Select Database");
if(!$result = mysql_query("SELECT * FROM dreamcast", $link_id)) die("cannot query");
while ($data_db = mysql_fetch_row($result));
{
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td bgcolor=\"#ffffff\">",$data_db[0],"</td></tr></table>";
}
?>
---errors
Warning: Access denied for user: 'frank@COMPUTER' (Using password: YES) in c:\program files\apache group\apache\htdocs\index.php on line 11
Warning: MySQL Connection Failed: Access denied for user: 'frank@COMPUTER' (Using password: YES) in c:\program files\apache group\apache\htdocs\index.php on line 11
and i am also getting this error from mysql program
010817 13:33:46 Aborted connection 3 to db: 'unconnected' user: 'ODBC' host: `localhost' (Unknown error) - see <!-- m --><a class="postlink" href="http://www.mysql.com/doc/C/o/Communication_errors.html">http://www.mysql.com/doc/C/o/Communication_errors.html</a><!-- m -->
C:/MYSQL/bin/mysqld-opt.exe: ready for connections
I went to the site they gave me but that was no help...can someone please help me get mysql working??
Thanks,
-Frank