Explorar o código

Fixed host= in app.pl

Nate Brady %!s(int64=9) %!d(string=hai) anos
pai
achega
ea88974335
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 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 $sth = $dbh->prepare('SELECT * FROM World where id = ?');