MySQL-5.1
From openSUSE
| Revision as of 09:13, 6 November 2009 -miska- (Talk | contribs) Adding other notes � Previous diff |
Revision as of 12:05, 7 November 2009 Rajko m (Talk | contribs) added wiki formatting instead of <pre> tags Next diff → |
||
| Line 1: | Line 1: | ||
| - | <pre> | + | {{Intro-frame| |
| - | Notes about MySQL 5.1 package: | + | With MySQL 5.1 package we introduced some changes you may like to know. Most of them will affect you only if you are upgrading from previous version and you did some changes to your configuration.}} |
| - | ============================== | + | |
| - | With MySQL 5.1 package we introduced some changes you may like to know. Most of | ||
| - | them will affect you only if you are upgrading from previous version and you | ||
| - | did some changes to your configuration. | ||
| - | 1) Plugins: | + | == Plugins == |
| - | =========== | + | ---- |
| + | One of the new features in MySQL 5.1 is support for plugins. So some of the storage engines are now shipped like that. You can use following plugins: | ||
| - | One of the new features in MySQL 5.1 is support for plugins. So some of the | + | * archive |
| - | storage engines are now shipped like that. You can use following plugins: | + | * blackhole |
| + | * federated | ||
| + | * example | ||
| - | - archive | + | InnoDB is still compiled as internal part of MySQL. If you are upgrading from version 5.0 or if this is your first installation of MySQL 5.1, all plugins will be enabled by default and you can disable them manually later (see http://dev.mysql.com/doc/refman/5.1/en/uninstall-plugin.html). |
| - | - blackhole | + | |
| - | - federated | + | |
| - | - example | + | |
| - | InnoDB is still compiled as internal part of MySQL. If you are upgrading from | + | With this change you need to remove skip-federated option from your <code>/etc/my.cnf</code> file if you have changed it manually. This option was there by default in previous versions of MySQL. |
| - | version 5.0 or if this is your first installation of MySQL 5.1, all plugins | + | |
| - | will be enabled by default and you can disable them manually later (see | + | |
| - | http://dev.mysql.com/doc/refman/5.1/en/uninstall-plugin.html). | + | |
| - | With this change you need to remove skip-federated option from your my.cnf file | ||
| - | if you have changed it manually. This option was there by default in previous | ||
| - | versions of MySQL. | ||
| - | 2) File locations: | + | == File locations == |
| - | ================== | + | ---- |
| - | + | There were some changes in files locations. Most of them were made in the default configuration file so if you are experiencing problems and you have | |
| - | There were some changes in files locations. Most of them were made in the | + | made some manual adjustments to your <code>/etc/my.cnf</code>, try to merge this file with <code>/etc/my.cnf.rpmnew</code>. |
| - | default configuration file so if you are experiencing problems and you have | + | |
| - | made some manual adjustments to your /etc/my.cnf, try to merge this file with | + | |
| - | /etc/my.cnf.rpmnew. | + | |
| File locations changes: | File locations changes: | ||
| - | - MySQL socket file and pid file were moved from /var/lib/mysql to more | + | * MySQL socket file and pid file were moved from <code>/var/lib/mysql</code> to more reasonable location <code>/var/run/mysql</code> by default. |
| - | reasonable location ( /var/run/mysql ) by default. | + | * MySQL log files are in /var/log/mysql. |
| - | - MySQL log files are in /var/log/mysql. | + | |
| - | 3) BerkeleyDB: | + | == BerkeleyDB == |
| - | ============== | + | ---- |
| + | MySQL no longer contains BerkeleyDB as storage engine. There is no fix for that and if you used it before, you have to migrate your data to different storage engine '''before''' updating. This can be done for example using following command: | ||
| - | MySQL no longer contains BerkeleyDB as storage engine. There is no fix for that | + | ALTER TABLE foo ENGINE = INNODB; |
| - | and if you used it before, you have to migrate your data to different storage | + | |
| - | engine BEFORE updating. This can be done for example using following command: | + | |
| - | ALTER TABLE foo ENGINE = INNODB; | ||
| - | 4) MySQL Upgrade Log | + | == MySQL Upgrade Log == |
| - | ==================== | + | ---- |
| - | If you missed messages displayed during automatic MySQL database upgrade, you | + | If you missed messages displayed during automatic MySQL database upgrade, you can find them from now on in |
| - | can find them from now on in | + | |
| - | /var/log/mysql/mysqld-upgrade.log | + | /var/log/mysql/mysqld-upgrade.log |
| - | </pre> | + | |
| For list of runtime incompatibilities see [http://dev.mysql.com/doc/refman/5.1/en/upgrading-from-previous-series.html MySQL upgrading documentation] | For list of runtime incompatibilities see [http://dev.mysql.com/doc/refman/5.1/en/upgrading-from-previous-series.html MySQL upgrading documentation] | ||
Revision as of 12:05, 7 November 2009
| With MySQL 5.1 package we introduced some changes you may like to know. Most of them will affect you only if you are upgrading from previous version and you did some changes to your configuration. |
Contents |
Plugins
One of the new features in MySQL 5.1 is support for plugins. So some of the storage engines are now shipped like that. You can use following plugins:
- archive
- blackhole
- federated
- example
InnoDB is still compiled as internal part of MySQL. If you are upgrading from version 5.0 or if this is your first installation of MySQL 5.1, all plugins will be enabled by default and you can disable them manually later (see http://dev.mysql.com/doc/refman/5.1/en/uninstall-plugin.html).
With this change you need to remove skip-federated option from your /etc/my.cnf file if you have changed it manually. This option was there by default in previous versions of MySQL.
File locations
There were some changes in files locations. Most of them were made in the default configuration file so if you are experiencing problems and you have
made some manual adjustments to your /etc/my.cnf, try to merge this file with /etc/my.cnf.rpmnew.
File locations changes:
- MySQL socket file and pid file were moved from
/var/lib/mysqlto more reasonable location/var/run/mysqlby default. - MySQL log files are in /var/log/mysql.
BerkeleyDB
MySQL no longer contains BerkeleyDB as storage engine. There is no fix for that and if you used it before, you have to migrate your data to different storage engine before updating. This can be done for example using following command:
ALTER TABLE foo ENGINE = INNODB;
MySQL Upgrade Log
If you missed messages displayed during automatic MySQL database upgrade, you can find them from now on in
/var/log/mysql/mysqld-upgrade.log
For list of runtime incompatibilities see MySQL upgrading documentation

