>>>>> "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> 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
You should also let your program print the value of 'select user()' to
verify the user for the made connection.