Re: WARNING: MYSQL_OPT_RECONNECT
I think the warning is likely coming from the Perl DBI driver ( DBD::mysql), rather than the connection line itself. Check which version you have installed and whether it enables MYSQL_OPT_RECONNECT by default.
You can use below to check:
perl -MDBD::mysql -e 'print "$DBD::mysql::VERSION\n"'
If reconnect is enabled, review the driver's documentation for disabling it and handle reconnects explicitly in your script when needed. The warning alone doesn't mean your database inserts are failing.
Herrick, DevOps Engineer @accuweb.cloud
Subject
Written By
Posted
November 23, 2025 01:44PM
Re: WARNING: MYSQL_OPT_RECONNECT
October 14, 2026 02:25AM
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.