Commit b1a6027d authored by jake%acutex.net's avatar jake%acutex.net

Remove the code for rejecting the version of MySQL with broken encryption (as…

Remove the code for rejecting the version of MySQL with broken encryption (as bugzilla no longer uses MySQL's encrypt routine). Also, point to mysql.com for downloading newer versions. Patch by Myk Melez <myk@mozilla.org> r= jake@acutex.net
parent 0134058c
...@@ -765,15 +765,14 @@ if ($my_db_check) { ...@@ -765,15 +765,14 @@ if ($my_db_check) {
my ($sql_vers) = $qh->fetchrow_array; my ($sql_vers) = $qh->fetchrow_array;
$qh->finish; $qh->finish;
my $sql_vok = ((vers_cmp($sql_vers,$sql_want) > -1) # Check what version of MySQL is installed and let the user know
&& ($sql_vers ne "3.23.29")); # encrypt() is broken in 3.23.29 # if the version is too old to be used with Bugzilla.
print (($sql_vok ? "ok: " : " "), "found v$sql_vers\n"); if ( vers_cmp($sql_vers,$sql_want) > -1 ) {
print "\n"; print "ok: found v$sql_vers\n\n";
unless ($sql_vok) { } else {
die "Your MySQL server is either too old or a known broken version.\n", die "Your MySQL server v$sql_vers is too old./n" .
" Bugzilla requires version $sql_want or later of MySQL.\n", " Bugzilla requires version $sql_want or later of MySQL.\n" .
($sql_vers eq "3.23.29") ? "Version 3.23.29 has a broken encrypt() command. 3.23.30 fixes this.\n" : "", " Please visit http://www.mysql.com/ and download a newer version.\n";
" Please visit http://www.mysql.com and download a newer version.\n";
} }
my @databases = $dbh->func('_ListDBs'); my @databases = $dbh->func('_ListDBs');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment