Re: can't connected to DB
- From: rafiq@xxxxxxxxxxxxxxxxxxxxxxx (Raf)
- Date: Wed, 30 May 2007 09:20:36 +0100 (BST)
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
.
- Follow-Ups:
- Re: can't connected to DB
- From: Raf
- Re: can't connected to DB
- References:
- can't connected to DB
- From: Keng Hee
- can't connected to DB
- Prev by Date: can't connected to DB
- Next by Date: Re: can't connected to DB
- Previous by thread: can't connected to DB
- Next by thread: Re: can't connected to DB
- Index(es):
Relevant Pages
|