BenRussell
Programmer
I am having problems connecting to the a MySQL server. It gives me the error "Access denied: Anakin@localhost".
I use the following code :
--------------
use DBI;
# Declare variables
$DB_Name = "tibsun_Test";
$DB_User = "Anakin";
$DB_Pass = "password";
$dsn = "DBI:mysql:$DB_Name";
$dbh = DBI->connect('$dsn','$DB_Use','$DB_Pass') || die "Couldnt connect to database";
return;
---------------
Something wrong with it?
That is just the connect part, there is more to it after that. - Ben Russell
- President of Intracor Technologies (
I use the following code :
--------------
use DBI;
# Declare variables
$DB_Name = "tibsun_Test";
$DB_User = "Anakin";
$DB_Pass = "password";
$dsn = "DBI:mysql:$DB_Name";
$dbh = DBI->connect('$dsn','$DB_Use','$DB_Pass') || die "Couldnt connect to database";
return;
---------------
Something wrong with it?
That is just the connect part, there is more to it after that. - Ben Russell
- President of Intracor Technologies (