List:Internals« Previous MessageNext Message »
From:Michael Widenius Date:August 7 2001 12:50am
Subject:Problem with using gdb on clients linked against libmysqlclient_r and/or libpthread
View as plain text  
Hi!

>>>>> "Vladimir" == Vladimir Zidar <mr_W@stripped> writes:

Vladimir>  The subject describes most of the problem. Mysql server refuses connection 
Vladimir> when this client is ran from gdb:


Vladimir> (gdb) run
Vladimir> Starting program: /usr/local/src/rmd/./m2 
Vladimir> [New Thread 1024 (LWP 1449)]
Vladimir> MYSQL:1045 Access denied for user: 'root@localhost' (Using password: YES)

Vladimir> Program exited with code 0112.
Vladimir> (gdb) 


Vladimir> But when run from shell, it says:

Vladimir> noteboox:/src/rmd # ./m2
Vladimir> Connect okay
Vladimir> noteboox:/src/rmd # 


Vladimir>  That's very strange, since I can't indentify if this is mysqlclient bug, or
> 
Vladimir> gdb bug, or pthreads bug.

Please check that your program explicitely sets the user parameter to
the required user.  The default user may be different when running
under gdb..

You should also let your program print the value of 'select user()' to
verify the user for the made connection.

Regards,
Monty
Thread
Problem with using gdb on clients linked against libmysqlclient_r and/or libpthreadVladimir Zidar4 Aug
  • Re: Problem with using gdb on clients linked against libmysqlclient_r and/or libpthreadSinisa Milivojevic5 Aug
  • Problem with using gdb on clients linked against libmysqlclient_r and/or libpthreadMichael Widenius7 Aug