Hacking with a program which has initialization of a MYSQL object

$ls
connect1-p1.c
$cp connect1-p1.c connect1-p2.c 
$emacs connect1-p2.c 
$gcc -lmysqlclient -g -L/usr/lib/mysql connect1-p2.c
$./a.out 
mysql_init failed
$echo $?
1
$./a.out 2> error.txt
$cat error.txt 
mysql_init failed
$emacs connect1-p2.c
$gcc -lmysqlclient -g -L/usr/lib/mysql connect1-p2.c
$./a.out 
mysql_init failed
$./a.out 2> error.txt
mysql_init failed
$cat error.txt 
$