Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl / SQL

Status
Not open for further replies.

disord3r

Programmer
Apr 12, 2002
189
US
I'm modifying a perl script script that is constantly monitoring a server for specific traffic and dumping certain things to a mySQL database. I also want it to insert some of that data into a SQL database on a different server. Does perl include functions for connecting to SQL or do I need to install an extra module for it?
 
If you want to go with a pure perl solution, you can try "dbiproxy" - I'm not sure if it comes with the DBI module - if not, then it comes with Bundle::DBI. I believe your can read about DBD::proxy by doing 'perldoc DBD::proxy'. This is also described in "Programming the Perl DBI" book by Descartes & Bunce.

The database you're using might support remote access already - I know Oracke, MySQL and PostgreSQL all do. If you're using DBI already with the DBD for your database, then read the perldocs on the DBD for your database to see if it supports remote access. For DBD::mysql do

perldoc DBD::mysql

HTH. Hardy Merrill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top