r7840 | Can't connect to mySQL DB

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

m1334
Noob
Noob
Posts: 18
Joined: 16 Oct 2010, 12:02
Noob?: Yes

r7840 | Can't connect to mySQL DB

#1 Post by m1334 »

Not to sure if it's just me but before i updated to r7840 this works just fine.

Code: Select all

my $dbUser	= "user";  # the name of the mysql user that has read/write access to database $database
my $dbPassword	= "pass";	# his password
my $database	= "database";	# the used database
my $dbHostname	= "host";	# mysql server 
my $dbPort	= "port";	# mysql server port
my $dsn		= "DBI:mysql:database=$database;host=$dbHostname;port=$dbPort"; 
my $dbh;

$dbh = DBI->connect($dsn, $dbUser, $dbPassword) or die $dbh->errstr;
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: r7840 | Can't connect to mySQL DB

#2 Post by EternalHarvest »

What version you were using previously?