Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package SpaceLife::DbConfig;
- use strict;
- use warnings;
- # Connect to the database
- our $db_conn = DBIx::Simple->connect(
- # for Docker uncomment this:
- "DBI:mysql:database=spacelife_db;host=spacelife_db;port=3306",
- #for local use only
- # "DBI:mysql:database=spacelife_db;host=localhost;port=3306",
- 'root',
- '123',
- # for local use only
- # 'g8800gts',
- { mysql_enable_utf8 => 1 }
- ) or die('cannot connect to the database');
- $db_conn->result_class = 'DBIx::Simple::Result';
- 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement