Merge lp:~ovais-tariq/percona-data-recovery-tool-for-innodb/bug1094478 into lp:percona-data-recovery-tool-for-innodb

Proposed by Ovais Tariq
Status: Merged
Merged at revision: 74
Proposed branch: lp:~ovais-tariq/percona-data-recovery-tool-for-innodb/bug1094478
Merge into: lp:percona-data-recovery-tool-for-innodb
Diff against target: 28 lines (+3/-1)
1 file modified
create_defs.pl (+3/-1)
To merge this branch: bzr merge lp:~ovais-tariq/percona-data-recovery-tool-for-innodb/bug1094478
Reviewer Review Type Date Requested Status
Aleksandr Kuzminsky Pending
Review via email: mp+141454@code.launchpad.net

Description of the change

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'create_defs.pl'
2--- create_defs.pl 2012-08-03 12:10:30 +0000
3+++ create_defs.pl 2012-12-29 14:51:22 +0000
4@@ -16,6 +16,7 @@
5 my $db_user = "root";
6 my $db_pass = "";
7 my $db_table = "";
8+my $db_socket = "/var/lib/mysql/mysql.sock";
9 my $help = 0;
10
11 # Parse options
12@@ -25,6 +26,7 @@
13 "user=s" => \$db_user,
14 "password=s" => \$db_pass,
15 "table=s" => \$db_table,
16+ "socket=s" => \$db_socket,
17 "help|?" => \$help
18 );
19
20@@ -33,7 +35,7 @@
21 #----------------------------------------------------------------
22 # Connect to mysql
23
24-my $dsn = "DBI:mysql:database=$db_name;host=$db_host;port=$db_port";
25+my $dsn = "DBI:mysql:database=$db_name;host=$db_host;port=$db_port;mysql_socket=$db_socket";
26 my $dbh = DBI->connect($dsn, $db_user, $db_pass);
27
28 Usage("Can't connect to mysql!") unless $dbh;

Subscribers

People subscribed via source and target branches