WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11666 closed defect (bug) (fixed)

upgrade.php dies hard on MySQL < 4.1.0

Reported by: miqrogroove Owned by:
Milestone: 2.9.1 Priority: normal
Severity: blocker Version: 2.9
Component: Upgrade/Install Keywords:
Focuses: 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 (1)

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

Download all attachments as: .zip

Change History (14)

#1 @miqrogroove
11 years ago

  • Keywords has-patch added

#2 @Denis-de-Bernardy
11 years ago

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.

#3 @miqrogroove
11 years ago

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

#4 @ryan
11 years ago

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

#5 @ryan
11 years ago

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

#6 @ryan
11 years ago

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

#7 @ryan
11 years ago

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

#8 @ryan
11 years ago

Added some quick checks to upgrade.php.

#9 @automattor
11 years ago

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

#10 @ryan
11 years ago

[12577] for trunk.

#11 @ryan
11 years ago

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

#12 @ryan
11 years ago

Good enough for now.

#13 @hakre
11 years ago

  • 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.