Downgrading MySQL
153
This error occurs because the 4.1 client libraries do not support the new
MYSQL_TYPE_NEWDECIMAL
type value added in 5.0. There is no way to disable the new
DECIMAL
data type on the server side.
You can avoid the problem by relinking the application with the client libraries from MySQL 5.0.
• Incompatible change: The
ER_WARN_DATA_TRUNCATED
warning symbol was renamed to
WARN_DATA_TRUNCATED
[2927]
in MySQL 5.0.3.
• The
reconnect
flag in the
MYSQL
structure is set to 0 by
mysql_real_connect()
. Only those
client programs which did not explicitly set this flag to 0 or 1 after
mysql_real_connect()
experience a change. Having automatic reconnection enabled by default was considered too
dangerous (due to the fact that table locks, temporary tables, user variables, and session variables
are lost after reconnection).
2.19.2. Downgrading MySQL
This section describes what you should do to downgrade to an older MySQL version in the unlikely
case that the previous version worked better than the new one.
It is always a good idea to make a backup beforehand, in case a downgrade fails and leaves the
instance in an unusable state.
To downgrade between General Availability (GA) status versions within the same release series,
typically you just install the new binaries on top of the old ones and do not make any changes to the
databases.
Downgrades between pre-GA development releases (or from a GA release to a development release)
within the same release series are not supported and you may encounter issues.
The following items form a checklist of things you should do whenever you perform a downgrade:
• Read the upgrading section for the release series from which you are downgrading to be sure that it
does not have any features you really need. See
Section 2.19.1, “Upgrading MySQL”
.
• If there is a downgrading section for that version, you should read that as well.
• To see which new features were added between the version to which you are downgrading and your
current version, see the
Release Notes
.
• Check
Section 2.19.3, “Checking Whether Tables or Indexes 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 downgrading. If so and these changes result in an
incompatibility between MySQL versions, you will need to downgrade the affected tables using the
instructions in
Section 2.19.4, “Rebuilding or Repairing Tables or Indexes”
.
In most cases, you can move the MySQL format files and data files between different GA versions on
the same architecture as long as you stay within versions for the same release series of MySQL.
If you downgrade from one release series to another, there may be incompatibilities in table storage
formats. In this case, use
mysqldump
to dump your tables before downgrading. After downgrading,
reload the dump file using
mysql
or
mysqlimport
to re-create your tables. For examples, see
Section 2.19.5, “Copying MySQL Databases to Another Machine”
.
A typical symptom of a downward-incompatible table format change when you downgrade is that you
cannot open tables. In that case, use the following procedure:
1. Stop the older MySQL server that you are downgrading to.
2. Restart the newer MySQL server you are downgrading from.
3. Dump any tables that were inaccessible to the older server by using
mysqldump
to create a dump
file.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...