Go Back   Web Server Hosting Forum by BODHost > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-21-07, 11:05
BOD Member
 
Join Date: Nov 2005
Posts: 206
Default MySQL Errors and MySQL client Library

When using MySQL client Library, there is a possiblity to receive many errors in referance to MySQL. This can be solved by adding -Ldir_path -lmysqlclient at the end where dir_path mentiones pathname of the client library directory. In order to check this, the following command can be used -

shell> mysql_config --libs

For the undefined erros, please add add -lz to the end of the link

Is is also a possibility, that we may get undefined referance errors such as following -

mf_format.o(.text+0x201): undefined reference to `__lxstat'

This error is in respect to the compatibility of MySQL client library.

If in case you get undefined reference errors at the time of execution. If they start with mysql_ or if they mention that MySQL client library cannot be located. You will need to follow the following -

* Add the path to directory of libmysqlclient.so to LD_LIBRARY_PATH environment variable
* Add the path to the directory of libmysqlclient.so to the LD_LIBRARY environment variable.

Thereafter, copy libmysqlclient.so, so that the system can search for them. You can also update shared library through the command - ldconfig
Reply With Quote
  #2 (permalink)  
Old 08-22-07, 08:33
BOD Member
 
Join Date: Nov 2005
Posts: 131
Thumbs up

Thanks bodjack for this helpful information.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.