Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Perl XAMPP DB Connect issue (Windows/Strawberry?)

by soonix (Canon)
on Dec 31, 2022 at 13:23 UTC ( [id://11149223]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl XAMPP DB Connect issue (Windows/Strawberry?)
in thread Perl XAMPP DB Connect issue (Windows/Strawberry?)

I see DBD/mysql.pm includes "use DBI;", so it wasn't needed explicitly in your code in that case. However, even the DBD::mysql examples start out with "use DBI;", and the connect method induces loading the corresponding DBD module (instead of useing it explicitly). This way - at least for simple SQL - you could switch and mix database drivers by simply changing the connect string...

⇒ You might need to install DBI and/or DBD::mysql, because at least one of these two seems not to be in XAMPP's default - (see also)

Replies are listed 'Best First'.
Re^4: Perl XAMPP DB Connect issue (Windows/Strawberry?)
by Polyglot (Chaplain) on Dec 31, 2022 at 13:34 UTC
    I guess my concern is that if XAMPP is doing things differently in order to get a "LAMP"-like setup working on Windows, its DB.pm package must be catered for its own setup and using another package would not guarantee success. It seems I just need to figure out the right incantations for the DB package. Fortunately, I have only the one subroutine doing the database connection, so it would be a cinch to update that and make it useful for all the routines that call it.

    Blessings,

    ~Polyglot~

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11149223]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-25 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found