|
-
Jul 17th, 2001, 08:24 PM
#1
Thread Starter
Fanatic Member
MySQL with Perl
How do i go about accessing/creating a MySQL database from perl. I'm running Solaris 2 (UNIX).
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
-
Jul 17th, 2001, 08:37 PM
#2
good luck, if you find out let me know as I am wondering the samething. I have not seen any programs that do this.
-
Jul 17th, 2001, 08:42 PM
#3
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 17th, 2001, 08:54 PM
#4
ya that is what I just found out. also cgi.pm is/was used in some cases. I also found out tha tis is pretty much like php
PHP Code:
my $data_source = "DBI:mysql:$database:$dbserver";
$dbh = DBI->connect($data_source, $dbuser, $dbpass)
|| &error("Can't connect to $data_source: $DBI::errstr.", $0);
actually they use DBI BD
-
Jul 17th, 2001, 09:01 PM
#5
Monday Morning Lunatic
DBD is the internal driver that supports DBI (database interface) - going along with the "all software problems can be simplified by adding an extra layer of indirection" 
CGI.pm is just for the CGI part but I never used it - always used my 5-line parser code and that was all
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 17th, 2001, 09:08 PM
#6
thanks Mike, I never used DBI or any form of it.
-
Jul 17th, 2001, 09:13 PM
#7
Thread Starter
Fanatic Member
Okay, after a little research on CPAN, i've found out the following:
- I will use the DBI module to connect to the database
- I will use the DBD::MySQL driver included in the "msql mysql" package avalible through the DBI help files
Thanks to all that helped, and i hope this will help anyone that needs it
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|