Ticket #11666 (closed defect (bug): fixed)

Opened 2 years ago

Last modified 2 years ago

upgrade.php dies hard on MySQL < 4.1.0

Reported by: miqrogroove Owned by:
Priority: normal Milestone: 2.9.1
Component: Upgrade/Install Version: 2.9
Severity: blocker Keywords:
Cc:

Description

Need to revert some of [12409]

MySQL 4.1.0 is required to execute SET NAMES, and as a result WP 2.9 upgrader never loads on old servers. This leaves webmasters unaware of the version incompatibility.

Attachments

11666-upgrade-failure.patch Download (435 bytes) - added by miqrogroove 2 years ago.

Change History

  • Keywords has-patch added

mm, it shouldn't even go so far that it actually lets the webmaster think he's fine. the upgrader should bail without upgrading the DB if the php and mysql versions are not met.

Agreed. My patch enables mysql version checking. Without it, the webmaster will only get a blank screen or internal server error.

comment:4   ryan2 years ago

(In [12573]) Don't set charset if mysql version does not have the collation cap. Props miqrogroove. see #11666 for trunk

comment:5   ryan2 years ago

(In [12574]) Don't set charset if mysql version does not have the collation cap. Props miqrogroove. see #11666 for 2.9k

comment:6   ryan2 years ago

(In [12575]) Check PHP and MySQL versions in upgrade.php. see #11666

comment:7   ryan2 years ago

(In [12576]) Check PHP and MySQL versions in upgrade.php. see #11666 for 2.9

comment:8   ryan2 years ago

Added some quick checks to upgrade.php.

(In [12578]) Check PHP and MySQL versions in install.php. see #11666 for 2.9

[12577] for trunk.

  • Status changed from new to closed
  • Resolution set to fixed

Good enough for now.

  • Keywords has-patch removed

Another way to signal changes is to offer the changelog to the user: #11739

Note: See TracTickets for help on using tickets.