Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: MySQL AES Encryption with CBC mode

by haukex (Archbishop)
on May 17, 2017 at 06:32 UTC ( [id://1190435]=note: print w/replies, xml ) Need Help??


in reply to Re^2: MySQL AES Encryption with CBC mode
in thread MySQL AES Encryption with CBC mode

running them separate terminates the initial assigned "session" and reverts to defaults with the second command.

That's part of what I meant when I was talking about calling DBConnect every time DBRun or DBDo gets called: This will establish a new connection to the database for every command you run, so that will certainly cause the session to be ended and a new one begun. Have you tried to see what happens when you connect only once at the beginning of the script and then run your commands separately?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (None)
    As of 2024-04-25 00:10 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found