Hi -
I've been doing my initial testing with 'root', but now that I'm getting ready to put a front end on things, I can't seem to access my db when I change usernames. Strangely, when I offer the password it refuses to connect, but when I use just the new username alone, it connects but can't find the db I want.
Here's what I'm using:
// connect to the database
$db = @mysql_connect("localhost", "root");
// select the 'xyz' database
if (!@mysql_select_db("xyz")) {
echo( " <p>Unable to locate the content database at this time." );
exit();
}
I'm sure I'm overlooking something stupid, but I'm fairly new to this. Can anyone shed any light on this behavior?
Thanks,
shaBANG
I've been doing my initial testing with 'root', but now that I'm getting ready to put a front end on things, I can't seem to access my db when I change usernames. Strangely, when I offer the password it refuses to connect, but when I use just the new username alone, it connects but can't find the db I want.
Here's what I'm using:
// connect to the database
$db = @mysql_connect("localhost", "root");
// select the 'xyz' database
if (!@mysql_select_db("xyz")) {
echo( " <p>Unable to locate the content database at this time." );
exit();
}
I'm sure I'm overlooking something stupid, but I'm fairly new to this. Can anyone shed any light on this behavior?
Thanks,
shaBANG