in reply to How to use perl CGI programs with mysql server?

First of all you are going to need a webserver, I would suggest Apache (if you need help configuring this see the apache documentation as well as How to configure Apache for running perl scripts. and (OT) Configure Apache for CGI).

As for the rest of your question, I'd suggest looking at CGI Programming and using CGI, DBI and HTML::Template (a mini tutorial with example code) from the Web Programming sub section of the tutorials section.

Once you are familiar with these concepts, if you still have any questions/problems let us know.

Hope this helps

Martin

  • Comment on Re: How to use perl CGI programs with mysql server?

Replies are listed 'Best First'.
Re^2: How to use perl CGI programs with mysql server?
by Gavin (Archbishop) on Oct 29, 2008 at 10:55 UTC

    In addition to what marto has already suggested.

    You may find that you can get most of what you need from FirePages MySQL Apache server integration that works with Perl.

Re^2: How to use perl CGI programs with mysql server?
by sanjay nayak (Sexton) on Oct 29, 2008 at 10:01 UTC

    Hi Marto

    Many many thanks for your reply. Can i use Mysql server instead of Apache server? If yes then how? Because my requirement is to use the Mysql server with the CGI script. plz suggest.

    regd's
    Sanjay

      MySQL is a database product, not a webserver. If you want a webpage to interact with a database at some point you are going to need Webserver software, like Apache.

      So, to answer your question, no, you will need MySQL server to run your database, and Apache to serve your webpages (generated via your CGI connected to MySQL).

      Hope this helps

      Martin

      Not sure what platform you are on, but it looks like you are just starting out so I suggest a simple package like XAMPP (apachefriends). Its insecure, but is easy to setup and run to get started and play. It includes Apache, mysql and Perl (and some other language called PHP). There are other similar packages about.