Re: problem with libmysqlclient_r.so

2002-05-16 Thread Michael Widenius
Hi! > "Andrey" == Andrey Kotrekhov <[EMAIL PROTECTED]> writes: Andrey> -LДобрый день.-A Andrey> Are mysql know about this!!! >> >> Sorry but if your OS doesn't support gethostbyname_r(), then >> mysql_real_connect() is not thread safe (I have just updated our >> documentation about this)

Re: problem with libmysqlclient_r.so

2002-05-16 Thread Michael Widenius
Hi! > "Michael" == Michael Chang <[EMAIL PROTECTED]> writes: >> For example, have you called mysql_thread_init() before calling >> mysql_real_connect() in all your threads ? Michael> However, to my understanding, mysql_thread_init() is not needed if Michael> only one database connection is

Re: problem with libmysqlclient_r.so

2002-05-16 Thread Andrey Kotrekhov
Hi! > >> Under FreeBSD gethostbyname is not thread-safe > >> And there is no thread-safe gethostbyname_r > >> (function exist but not thread-safe) > >> > >> Are mysql know about this!!! > > Just a note about this problem: > > We will add a wrapper for gethostbyname() in 3.23.51 and the 4.0.2 > th

Re: problem with libmysqlclient_r.so

2002-05-16 Thread Michael Widenius
Hi! > "Sinisa" == Sinisa Milivojevic <[EMAIL PROTECTED]> writes: >> I am not agree. I take _another program_ which work fine during ~2 year >> with previouse mysql version (mysql-3.23.44 for example). >> And I send dump from this program. >> >> Why I interested libmysqlclient_r? >> I have

Re: problem with libmysqlclient_r.so

2002-04-26 Thread Sinisa Milivojevic
Michael Chang writes: > > > For example, have you called mysql_thread_init() before calling > > mysql_real_connect() in all your threads ? > > However, to my understanding, mysql_thread_init() is not needed if > only one database connection is used, and that database connection > is established

Re: problem with libmysqlclient_r.so

2002-04-26 Thread Michael Chang
> For example, have you called mysql_thread_init() before calling > mysql_real_connect() in all your threads ? However, to my understanding, mysql_thread_init() is not needed if only one database connection is used, and that database connection is established when the program starts, before any

Re: problem with libmysqlclient_r.so

2002-04-26 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: > äÏÂÒÙÊ ÄÅÎØ. > > > Hmm... I use mysql_init() in each thread but: > > 8.4.4.4 my_thread_init() > . > This is automatically called by my_init() and mysql_connect(). > ~ > > And in manual: > To get a threaded client where you

Re: problem with libmysqlclient_r.so

2002-04-26 Thread Andrey Kotrekhov
äÏÂÒÙÊ ÄÅÎØ. > Andrey> Are mysql know about this!!! > > Sorry but if your OS doesn't support gethostbyname_r(), then > mysql_real_connect() is not thread safe (I have just updated our > documentation about this) Thank you. > > Another issue is that if your client dies in the dbug_ code, this >

Re: problem with libmysqlclient_r.so

2002-04-25 Thread Michael Widenius
Hi! > "Andrey" == Andrey Kotrekhov <[EMAIL PROTECTED]> writes: Andrey> #12 0x180e7cdc in mysql_real_connect () Andrey>from /usr/local/mysql/lib/libmysqlclient.so.10 Andrey> #13 0x1812f93c in MysqlConnection::real_connect (this=0x80c9c18, Andrey> db=0x80fe8b0 "zzz", host=0x80fb040

Re: problem with libmysqlclient_r.so

2002-04-25 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: > Hi! > > > I am not agree. I take _another program_ which work fine during ~2 year > with previouse mysql version (mysql-3.23.44 for example). > And I send dump from this program. > > Why I interested libmysqlclient_r? > I have a program, which try to connect to mysql

Re: problem with libmysqlclient_r.so

2002-04-25 Thread Andrey Kotrekhov
Hi! > > äÏÂÒÙÊ ÄÅÎØ. > > > > I think problem is in libmysqlclient_r.so > > becouse I compile program which work fine many month with > > libmysqlclient_r. > > And program died in the same place. > > #0 _db_enter_ (_func_=0x28252311 "mysql_real_query", > > _file_=0x28251d48 "libmysql.c", _lin

Re: problem with libmysqlclient_r.so

2002-04-25 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: > äÏÂÒÙÊ ÄÅÎØ. > > I think problem is in libmysqlclient_r.so > becouse I compile program which work fine many month with > libmysqlclient_r. > And program died in the same place. > #0 _db_enter_ (_func_=0x28252311 "mysql_real_query", > _file_=0x28251d48 "libmysql.c",

Re: problem with libmysqlclient_r.so

2002-04-25 Thread Andrey Kotrekhov
äÏÂÒÙÊ ÄÅÎØ. > Andrey Kotrekhov writes: > > Hi! > > > > %> g++ -v > > Using builtin specs. > > gcc version 2.95.3 20010315 (release) [FreeBSD] > > And libstdc++ is include in compiller > > How can I see version of libstdc++ ? > > In /usr/src/contrib/libstdc++/Makefile.in I see > > VERSION = 2.10.

Re: problem with libmysqlclient_r.so

2002-04-24 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: > Hi! > > %> g++ -v > Using builtin specs. > gcc version 2.95.3 20010315 (release) [FreeBSD] > And libstdc++ is include in compiller > How can I see version of libstdc++ ? > In /usr/src/contrib/libstdc++/Makefile.in I see > VERSION = 2.10.0 > INTERFACE = 3 > Is there righ

Re: problem with libmysqlclient_r.so

2002-04-24 Thread Andrey Kotrekhov
Hi! > Andrey Kotrekhov writes: > > > > > > my program crash in another plase > > (gdb) bt > > #0 _db_enter_ (_func_=0x280fe4dc "mysql_ping", > > _file_=0x280fdd48 "libmysql.c", _line_=2248, _sfunc_=0xbfa87d3c, > > _sfile_=0xbfa87d40, _slevel_=0xbfa87d44, _sframep_=0xbfa87d48) > > at

Re: problem with libmysqlclient_r.so

2002-04-23 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: > > > my program crash in another plase > (gdb) bt > #0 _db_enter_ (_func_=0x280fe4dc "mysql_ping", > _file_=0x280fdd48 "libmysql.c", _line_=2248, _sfunc_=0xbfa87d3c, > _sfile_=0xbfa87d40, _slevel_=0xbfa87d44, _sframep_=0xbfa87d48) > at dbug.c:712 > #1 0x28

Re: problem with libmysqlclient_r.so

2002-04-23 Thread Andrey Kotrekhov
äÏÂÒÙÊ ÄÅÎØ. > > program crash in my_fopen > > > > this is stack of program : > > (gdb) bt > > #0 0x180ef7f2 in my_fopen () from > > /usr/local/mysql/lib/libmysqlclient_r.so.10 > > #1 0x180f0b20 in search_default_file () > >from /usr/local/mysql/lib/libmysqlclient_r.so.10 > > [skip] > > Hi!

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: > äÏÂÒÙÊ ÄÅÎØ. > > #1 0x180f0b20 in search_default_file () > from /usr/local/mysql/lib/libmysqlclient_r.so.10 > > Will I need to compile mysql with --with-debug option to see parameters? > > Best regards. > ___ > Andrey Kot

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Andrey Kotrekhov
äÏÂÒÙÊ ÄÅÎØ. > Andrey Kotrekhov writes: > > Hello, All! > > > > I have program which try to connect to different mysql servers twice at > > the same time. > > When I use libmysqlclient.so sometimes one or two mysql connection freeze > > in mysql_real_connect > > > > But when I try to use libmysql

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Sinisa Milivojevic
Andrey Kotrekhov writes: > Hello, All! > > I have program which try to connect to different mysql servers twice at > the same time. > When I use libmysqlclient.so sometimes one or two mysql connection freeze > in mysql_real_connect > > But when I try to use libmysqlclient_r.so > program crash in

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Gelu
l Message - From: Andrey Kotrekhov <[EMAIL PROTECTED]> To: Gelu <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 12:30 PM Subject: Re: problem with libmysqlclient_r.so Hi, I use mysql++ And each object Connection use own MYSQL mysql; mysql_init called i

Re: problem with libmysqlclient_r.so

2002-04-22 Thread Andrey Kotrekhov
Hi, I use mysql++ And each object Connection use own MYSQL mysql; mysql_init called in Connection constructor. > Hi, > You use and two different mysql_init ? > Regards, > Gelu > > _ > G.NET SOFTWARE COMPANY > > Permanent e-mail address : [EMAIL

Re: problem with libmysqlclient_r.so

2002-04-21 Thread Gelu
Hi, You use and two different mysql_init ? Regards, Gelu _ G.NET SOFTWARE COMPANY Permanent e-mail address : [EMAIL PROTECTED] [EMAIL PROTECTED] - Original Message - From: Andrey Kotrekhov <[EMA