After installation, Perl (v 5.10.0) does not find the Mysql.pm file in the installation.
Also, after pointing to it, the connect() function appears not to exist anymore.
Somehow, I now have to use DBI:.
Is there an alternative that prevents me to from having to rewrite some hundred scripts?
Revert to the Perl and the libdb-mysql-perl (or whatever it's called) from your distribution packager.
Alternatively, reinstall libdb-mysql-perl from source.
Your INClude paths (perl -V) change when you install a new version. Your libdb-mysql bindings are most likely not moved / upgraded to the new directory layout.
Perhaps there's a special command, like the update-python-modules.
Better in the long run: start programming modules, where the database dependend stuff is in one module. That way you only have to change one module.
Paul
The Following User Says Thank You to tebokkel For This Useful Post:
Better in the long run: start programming modules, where the database dependend stuff is in one module. That way you only have to change one module.
Paul
Programming modules would be my best option for new stuff, indeed.
Thanks Paul!
Recent comments
2 days 13 hours ago
2 days 22 hours ago
3 days 1 hour ago
3 days 2 hours ago
3 days 3 hours ago
3 days 5 hours ago
3 days 6 hours ago
3 days 8 hours ago
4 days 7 min ago
4 days 56 min ago