Browse Source

re-enabled the connection to DB

Tudor Constantin 11 years ago
parent
commit
409c6df3ce
1 changed files with 3 additions and 3 deletions
  1. 3 3
      mojolicious/app.pl

+ 3 - 3
mojolicious/app.pl

@@ -4,9 +4,9 @@ use JSON::XS;
 use Memoize;
 use Memoize;
 use DBI;
 use DBI;
 
 
-my $dsn ;#= "dbi:mysql:database=hello_world;host=localhost;port=3306";
-my $dbh ;#= DBI->connect( $dsn, 'benchmarkdbuser', 'benchmarkdbpass', {} );
-my $sth ;#= $dbh->prepare("SELECT * FROM World where id = ?");
+my $dsn = "dbi:mysql:database=hello_world;host=localhost;port=3306";
+my $dbh = DBI->connect( $dsn, 'benchmarkdbuser', 'benchmarkdbpass', {} );
+my $sth = $dbh->prepare("SELECT * FROM World where id = ?");
 
 
 
 
 get '/json' => sub {
 get '/json' => sub {