MySQL Basics In Pictures
  1. Then add the Use lines:

    use DBI;
    use CGI qw(:standard);
    use strict;

  2. Add the database information for your MySQL database:

    my $db="enter database name here";
    my $host="enter mysql server name here";
    my $port="enter default port here";
    my $userid="enter valid user here";
    my $passwd="enter user's password here";
    my $connectionInfo="enter connection info here";

    TIP: You're using the database us_presidents.

    Use the MySQL server on the computer you're working on now.

    Use the default port on the MySQL server.

    A valid user is "marty."

    You can get standard connection info from the random.cgi script.