I have a problem. I am running mysql on slackware 9.0, version 4.0.15a. I have a web server running on a Red Hat Enterprise machine, and would like to access the mysql database thru php, etc. Nothing new here (except to me!). using a php script: like this:
<?php require_once( 'DB.php' );
$dsn = "mysql://mie:[EMAIL PROTECTED]/phpbook"; $db_conn = DB::connect( $dsn ); if ( DB::isError( $db_conn ) ) {
print $db_conn->getMessage( ) . "\n"; exit( 1 );
}
else {
print "Connected to database\n";
} $db_conn->disconnect( ); ?>
I cannot connect, and get an error DB: no such database.
this is thru a page on the RedHat machine. I can log on to the slackware mysql host machine, and log on to mysql as the user no problem, etc, and even add data to tables, etc. I am guessing that there may be something not correctly set in terms of my mysql, users, etc?
any hints or help will help!
Thanks,
eric
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]