/[gentoo]/xml/htdocs/doc/en/mysql-upgrading.xml
Gentoo

Diff of /xml/htdocs/doc/en/mysql-upgrading.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/mysql-upgrading.xml,v 1.6 2005/12/21 11:03:31 neysx Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/mysql-upgrading.xml,v 1.7 2006/01/04 11:26:16 neysx Exp $ -->
4 4
5<guide link="/doc/en/mysql-upgrading.xml"> 5<guide link="/doc/en/mysql-upgrading.xml">
6<title>Upgrade guide to MySQL 4.1.x</title> 6<title>Upgrade guide to MySQL 4.1.x</title>
7 7
8<author title="Author"> 8<author title="Author">
20 20
21<!-- The content of this document is licensed under the CC-BY-SA license --> 21<!-- The content of this document is licensed under the CC-BY-SA license -->
22<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 22<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
23<license/> 23<license/>
24 24
25<version>1.5</version> 25<version>1.6</version>
26<date>2005-12-21</date> 26<date>2006-01-04</date>
27 27
28<chapter> 28<chapter>
29<title>Upgrading from old versions of MySQL</title> 29<title>Upgrading from old versions of MySQL</title>
30<section> 30<section>
31<body> 31<body>
55</p> 55</p>
56 56
57<pre caption="Dump of all databases"> 57<pre caption="Dump of all databases">
58# <i>mysqldump \</i> 58# <i>mysqldump \</i>
59 <i>-uroot \</i> 59 <i>-uroot \</i>
60 <i>--password=</i><comment>your_password</comment><i> \</i> 60 <i>--password=</i><comment>'your_password'</comment><i> \</i>
61 <i>-hlocalhost \</i> 61 <i>-hlocalhost \</i>
62 <i>--all-databases \</i> 62 <i>--all-databases \</i>
63 <i>--opt \</i> 63 <i>--opt \</i>
64 <i>--allow-keywords \</i> 64 <i>--allow-keywords \</i>
65 <i>--flush-logs \</i> 65 <i>--flush-logs \</i>
143 143
144<pre caption="Importing the SQL backup"> 144<pre caption="Importing the SQL backup">
145# <i>cat BACKUP_MYSQL_4.0.SQL \</i> 145# <i>cat BACKUP_MYSQL_4.0.SQL \</i>
146 <i>| mysql \</i> 146 <i>| mysql \</i>
147 <i>-uroot \</i> 147 <i>-uroot \</i>
148 <i>--password=</i><comment>your_password</comment><i> \</i> 148 <i>--password=</i><comment>'your_password'</comment><i> \</i>
149 <i>-hlocalhost \</i> 149 <i>-hlocalhost \</i>
150 <i>--max_allowed_packet=16M</i> 150 <i>--max_allowed_packet=16M</i>
151 151
152# <i>mysql_fix_privilege_tables \</i> 152# <i>mysql_fix_privilege_tables \</i>
153 <i>--defaults-file=/etc/mysql/my.cnf \</i> 153 <i>--defaults-file=/etc/mysql/my.cnf \</i>
154 <i>--user=root \</i> 154 <i>--user=root \</i>
155 <i>--password=</i><comment>your_password</comment><i></i> 155 <i>--password=</i><comment>'your_password'</comment><i></i>
156</pre> 156</pre>
157 157
158<p> 158<p>
159If you now restart your MySQL daemon and everything went as expected, you will 159If you now restart your MySQL daemon and everything went as expected, you will
160have a fully working version of 4.1.x! :-) 160have a fully working version of 4.1.x! :-)
217# <i>unset MYSQL_STRAIGHT_UPGRADE</i> 217# <i>unset MYSQL_STRAIGHT_UPGRADE</i>
218# <i>dispatch-conf</i> 218# <i>dispatch-conf</i>
219# <i>revdep-rebuild</i> 219# <i>revdep-rebuild</i>
220# <i>/etc/init.d/mysql start</i> 220# <i>/etc/init.d/mysql start</i>
221# <i>mysql_fix_privilege_tables --defaults-file=/etc/mysql/my.cnf \</i> 221# <i>mysql_fix_privilege_tables --defaults-file=/etc/mysql/my.cnf \</i>
222 <i>-uroot --password=</i><comment>your_password</comment><i></i> 222 <i>-uroot --password=</i><comment>'your_password'</comment><i></i>
223# <i>mysql --database=mysql -uroot --password=</i><comment>your_password</comment><i> &lt; /tmp/new_pieces.sql</i> 223# <i>mysql --database=mysql -uroot --password=</i><comment>'your_password'</comment><i> &lt; /tmp/new_pieces.sql</i>
224# <i>/etc/init.d/mysql restart</i> # just to be sure 224# <i>/etc/init.d/mysql restart</i> # just to be sure
225</pre> 225</pre>
226 226
227<p> 227<p>
228Good luck and if something fails, don't say we didn't warn you! ;-) 228Good luck and if something fails, don't say we didn't warn you! ;-)

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20