Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. package SpaceLife::DbConfig;
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6. # Connect to the database
  7. our $db_conn = DBIx::Simple->connect(
  8. # for Docker uncomment this:
  9. "DBI:mysql:database=spacelife_db;host=spacelife_db;port=3306",
  10. #for local use only
  11. # "DBI:mysql:database=spacelife_db;host=localhost;port=3306",
  12. 'root',
  13. '123',
  14. # for local use only
  15. # 'g8800gts',
  16. { mysql_enable_utf8 => 1 }
  17. ) or die('cannot connect to the database');
  18. $db_conn->result_class = 'DBIx::Simple::Result';
  19.  
  20. 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement