Browse Source

Fixed host= in app.pl

Nate Brady 9 years ago
parent
commit
ea88974335
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Perl/web-simple/app.pl

+ 1 - 1
frameworks/Perl/web-simple/app.pl

@@ -3,7 +3,7 @@ use Web::Simple;
 use JSON::XS;
 use JSON::XS;
 use DBI;
 use DBI;
 
 
-my $dsn = "dbi:mysql:database=hello_world;host=127.0.0.1";
+my $dsn = "dbi:mysql:database=hello_world;host=localhost";
 my $dbh = DBI->connect( $dsn, 'benchmarkdbuser', 'benchmarkdbpass', { RaiseError => 1 });
 my $dbh = DBI->connect( $dsn, 'benchmarkdbuser', 'benchmarkdbpass', { RaiseError => 1 });
 my $sth = $dbh->prepare('SELECT * FROM World where id = ?');
 my $sth = $dbh->prepare('SELECT * FROM World where id = ?');