Oracle 5.0 Reference Manual page 164

Table of Contents

Advertisement

file after upgrading. Use the
databases in the dump. If your databases include stored programs, use the
routines
In general, you should do the following when upgrading from MySQL 4.1 to 5.0:
• Read all the items in these sections to see whether any of them might affect your applications:
Section 2.19.1, "Upgrading
• The items in the change lists provided later in this section enable you to identify upgrade issues
that apply to your current MySQL installation. Some incompatibilities discussed there require your
attention before upgrading. Others should be dealt with after upgrading.
• The MySQL 5.0
Release Notes
from those found in MySQL 4.1. Some of these changes may result in incompatibilities.
Note particularly any changes that are marked Known issue or Incompatible change. These
incompatibilities with earlier versions of MySQL may require your attention before you upgrade.
Our aim is to avoid these changes, but occasionally they are necessary to correct problems that
would be worse than an incompatibility between releases. If any upgrade issue applicable to your
installation involves an incompatibility that requires special handling, follow the instructions given in
the incompatibility description. Sometimes this involves dumping and reloading tables, or use of a
statement such as
CHECK TABLE
For dump and reload instructions, see
Any procedure that involves
upgrading. Use of this statement with a version of MySQL different from the one used to create the
table (that is, using it after upgrading) may damage the table. See
Syntax".
• Before upgrading to a new version of MySQL,
Must Be
Rebuilt", to see whether changes to table formats or to character sets or collations were
made between your current version of MySQL and the version to which you are upgrading. If so and
these changes result in an incompatibility between MySQL versions, you will need to upgrade the
affected tables using the instructions in
• After upgrading to a new version of MySQL, run
"mysql_upgrade
— Check Tables for MySQL
attempts to repair them if necessary. It also updates your grant tables to make sure that they have
the current structure so that you can take advantage of any new capabilities. (Some releases of
MySQL introduce changes to the structure of the grant tables to add new privileges or features.)
does not upgrade the contents of the help tables. For upgrade instructions, see
mysql_upgrade
Section 5.1.8, "Server-Side
• If you run MySQL Server on Windows, see
• MySQL 5.0 adds support for stored procedures. This support requires the
To create this table, you should run the
"mysql_upgrade
— Check Tables for MySQL
• MySQL 5.0 adds support for views. This support requires extra privilege columns in the
and
mysql.user
mysql.db
program as described in
• If you use replication, see
upgrading your replication setup.
If your MySQL installation contains a large amount of data that might take a long time to convert after
an in-place upgrade, you might find it useful to create a "dummy" database instance for assessing what
Upgrading MySQL
--all-databases
[304]
and
--events
MySQL", has general update information.
describe significant new features you can use in 5.0 or that differ
or
REPAIR
TABLE.
Section 2.19.4, "Rebuilding or Repairing Tables or
with the
REPAIR TABLE
Section 2.19.3, "Checking Whether Tables or Indexes
Section 2.19.4, "Rebuilding or Repairing Tables or
Help".
Section 2.10.6, "Upgrading MySQL on
mysql_upgrade
tables. To create these columns, you should run the
Section 4.4.9,
"mysql_upgrade
Section 16.4.3, "Upgrading a Replication
144
[298]
options as well.
option must be done before
USE_FRM
Section 13.7.2.6,
(see
mysql_upgrade
Upgrade"). This program checks your tables, and
program as described in
Upgrade".
— Check Tables for MySQL
Setup", for information on
option to include all
--
Indexes".
"REPAIR TABLE
Indexes".
Section 4.4.9,
Windows".
table.
mysql.proc
Section 4.4.9,
mysql_upgrade
Upgrade".

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents