Forum Moderators: coopster
<?php
$server = "localhost";
$user = "example@example.com";
$pass = "password";
$connection = mysql_connect($server,$user,$pass)
or die(mysql_error());
print("Congratulations! You connected to MySQL");
?>
Any thoughts?
[edited by: jatar_k at 5:44 pm (utc) on Mar. 23, 2004]
[edit reason] generalized [/edit]
Side Note:
MySQL usernames [mysql.com] can be up to 16 characters long.
Also, I don't use MysqlAdmin as I do everything from command line, but check your "mysql" database. The "user" table should have a "localhost" host specified for your user "example@example.com" user - if not, that user will not be allowed to connect from the local machine.
[edited by: jatar_k at 5:44 pm (utc) on Mar. 23, 2004]
[edit reason] generalized [/edit]