in reply to Re: Using mysql with perl
in thread Using mysql with perl

Thanks, mahi! I saved your code as test2.cgi and ran it from the browser. I don't see any output. Is it supposed to produce any output? I installed mysql quite a while ago and I'm not even sure if I had set a username and password. Is there a way to check?

Replies are listed 'Best First'.
Re: Re: Re: Using mysql with perl
by Itatsumaki (Friar) on Jun 07, 2003 at 16:19 UTC
    Kiat,

    Don't try to run it from the browser (i.e. via CGI) yet! Does it work from the command-line first? You have to take things one step at a time. So, first you need to figure out: can you connect to the mysql db manually, what password and user-name have you setup, etc.. This may not be a PERL problem at all! Also, if you don't know the user/password you may seriously want to consider reinstalling MySQL again so that you know exactly how it is set up.

    Hope it helps!
    -Tats