Browse Source

Remote MySQL server

Pedro Figueiredo 12 years ago
parent
commit
c163ed893b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dancer/app.pl

+ 2 - 1
dancer/app.pl

@@ -6,7 +6,8 @@ use Dancer ':syntax';
 use Dancer::Plugin::Database;
 set serializer => 'JSON';
 
-my $dbh = database({ driver => 'mysql', database => 'test' });
+#my $dbh = database({ driver => 'mysql', database => 'test' });
+my $dbh = database({ driver => 'mysql', host => 'ip-10-34-150-134.eu-west-1.compute.internal', database => 'test', username => 'root' });
 
 get '/json' => sub {
     { message => 'Hello, World!' }