Re: can't connected to DB



On Wed, 30 May 2007, Keng Hee wrote:

Hi,

I have simple script , trying to get connection to DB.
....
I get this error from DB connection.
install_driver(mysql) failed: Can't load
....
...for module DBD::mysql: libmysqlclient.so.15: cannot open shared

Try ensuring that your underlying libmysqlclient.so is of the correct version and that it is on your environment's library search path, before invoking the script.

ie (for bash):
export LD_LIBRARY_PATH=/path/to/libmysqlclient.so:$LD_LIBRARY_PATH

This may need to be set in the environment the script is run in, or any container environments - ie. apache.

If it's just a standalone, one-of script, you might try sticking it in a begin block: BEGIN { $ENV{LD_LIBRARY_PATH}='path_to_lib' }

Just a thought. Hope it helps.

Cheers,

Raf
.



Relevant Pages

  • Re: Hyperlinks
    ... http://www.snipesfamily.net/index_files/DAVE.htm The issue is that Publisher ... the design checker tool will find some of these issues. ... I am betting that you are using a script on your home page that you are not ... I have seen a lot of Publisher produced sites that load ...
    (microsoft.public.publisher.webdesign)
  • Re: UCOMIStream, MSHTML and WebBrowser control Persistence Problem
    ... Actually I had chopped off the top of the Form Load script which correctly ... If I navigate to a file ... It is best to retrieve it from the control each time you ...
    (microsoft.public.dotnet.languages.vb)
  • Re: UCOMIStream, MSHTML and WebBrowser control Persistence Problem
    ... Actually I had chopped off the top of the Form Load script which correctly ... If I navigate to a file ... It is best to retrieve it from the control each time you ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: UCOMIStream, MSHTML and WebBrowser control Persistence Problem
    ... Actually I had chopped off the top of the Form Load script which correctly ... If I navigate to a file ... It is best to retrieve it from the control each time you ...
    (microsoft.public.dotnet.general)
  • Re: aceptable loading time/CPU load
    ... > I have a fairly complicated script that seems to load fairly fast. ... > to load on average and what load it place on the server. ... your local server to a production server; then again, ...
    (comp.lang.php)