MySQL module for NetWare.

MySQL module for NetWare.

am 28.06.2002 14:06:30 von Ananth Kesari

Hi,

I am trying to build the MySQL module for NetWare. I could compile and
link the module into an executable (nlm). But when I run a sample script
that has a simple statement: "use mysql", the executable does not load.
It says: "Can't find 'boot_DBD__mysql' symbol in
perl/lib/auto/dbd/mysql/mysql.nlm". What do you think could be the
problem?

1. I have compiled Perl 5.6.1 both for Windows and NetWare and
installed them appropriately.
2. I have compiled Dbi-1.14 both for Windows and NetWare and installed
them appropriately.
3. I am using DBD-mysql-2.1017

Any thoughts on this? Any help on this is highly appreciated since I am
stuck with this for a few days now.

Thanks in advance,
Ananth.


------------------------------------------------------------ ---------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail msql-mysql-modules-thread1833@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.

Re: MySQL

am 19.09.2003 09:15:42 von Jochen Wiedmann

Steve Schein wrote:

> Thank you for your efforts regarding API development for MySQL
> databases. I am currently using MySQL 4.0x on a Linux system and Perl
> v5.8. At the moment I'm using a generic DBI module (v1.38) and having
> trouble threads. The database won't connect on a new thread and
> generates:
>
> "thread failed to start: DBD::mysql::dr connect failed: handle 1 is
> owned by thread 8454df8 not current thread 86bc3d0 (handles can't be
> shared between threads and your driver may need a CLONE method added) at
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBI.p m line 585,
> <$client> line 1."
>
> The program runs fine unthreaded. Please let me know if you have a
> MySQL interface module that is thread safe.

I do not know, what you are specifying as "thread safe". The CLONE method,
which is required to share a handle between threads was added in DBD::mysql
2.1019, one year ago. I never tried whether it actually works, but I have no
reports that it doesn't, except yours.

DBI handles are not thread safe in the sense that they are reentrant. They
will never be, because they are typically related to network connections.
You cannot send 5 bytes of one request over the network, followed by then
bytes of a second request and 5 bytes of the next request. In other words:
You may share a handle between threads, but they must synchronize each other.

If your problem is reproducible, please be so kind to reduce it to a small
example script and post that to perl@lists.mysql.com.


Jochen



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org