Have been trying to get an old Perl script moved over to a new GoDaddy hosting account. The account is a deluxe Linux hosting account.
The script needs to reference MySQL and I've used the example shown at https://www.godaddy.com/help/connecting-to-a-mysql-database-using-cgiperl-254 to figure out the code. However, the script is choking on the following line, which is the first referencing anything MySQL-specific:
$drh = DBI->install_driver("mysql");
The script does (displays) everything that comes before this line, but nothing after it. OTOH, adding the other $dbh causes a full-on internal server error.
Have seen similar posts (https://www.godaddy.com/community/Building-and-Managing-a-Website/Perl-error-encountered-with-MySQL-...) that suggest that the issue is related to not having the Perl MySQL module installed. Have looked up the correct modules (https://dev.mysql.com/downloads/dbi.html), which appear to be these: DBI, DBD::mysql, and Net:MySQL maybe. All three of these are installed now, but am still seeing the issue.
Any help? If more details needed, please lmk. I'm not experienced with error handling, but my "or die" never happens so I don't know what the error is that's being thrown off here.
Thanks!
Hi @2sigmas. Welcome to GoDaddy Community! I'm not sure why your script isn't working. I'd suggest posting the full script (minus any login information of course). That way, others can look at it and see if they can spot any other issues within it. Hope you're able to figure this out.