in reply to DBD::mysql

What do you mean by "falls over" ? If you would not mind, change your die message to
<code lang="perl">die "cant open db : $DBI::errstr\n"</code>
If you re-run, and post the error message we can see if the problem is in loading the module (as it was during make test), or in connecting (since you are unsure on the <code lang="perl">connect()</code> details).
i had a memory leak once, and it ruined my favorite shirt.

Replies are listed 'Best First'.
Re: Re: DBD::mysql
by costas (Scribe) on Oct 17, 2001 at 15:03 UTC
    I do not get any feedback of any kind. The die error is not even triggered.

    The program runs fine until it gets to this line and then just stops. Anything past the connect line is not executed and I am given no feedback from the connect line whatsoever.

    I am wrong in saying that if the db details were wrong then the die command would be executed?

    any further ideas?
      Are you running this from the command line or a browser ?

      1. Browser : run it from the command line. If you are calling <code lang="perl">die()</code> before you print a header, the prowser would print nothing.
      2. Command line : It appears that there is still something wrong with a path setup somewhere, and the mysql.so file is not getting loaded. It usually will not go into a black hole like that (it usually prints a cannot load message like make test did), but i have seen DBD::Sybase do this on rare occasion. So, back to the path issue from your other posts

      i had a memory leak once, and it ruined my favorite shirt.
        Just to Say that it is now fixed!

        If anyone is having problems installing mysql DDBD on Suse use Msql-Mysql module instead of the DBDmysdql module. Its quite tricky getting DBD::mysql to install succesfully on Suse.

        Install the Msql-Mysql module by performing a 'make install && make test'.

        Thanks to all who helped.

        costas
        eeer, looking at the code the guy posted I think it's clear he is printing a header. pay attention children.