參數(shù)的更改:
skip-locking 在5.5里已經(jīng)不識別了,改成skip-external-locking
basedir = /usr/local/mysql5.5
datadir =/usr/local/mysql5.5/data
innodb_data_home_dir = /usr/local/mysql5.5/data
innodb_log_group_home_dir = /usr/local/mysql5.5/data
-
user = mysql
innodb_read_io_threads = 8
innodb_write_io_threads = 8
innodb_io_capacity = 2000
innodb_file_format = Barracuda
第一步:
/usr/local/mysql5.5/bin/mysqld --defaults-file=/etc/my.cnf --skip-grant-tables &
第二步:執(zhí)行更新程序
[root@ www.linuxidc.com mysql5.5]# bin/mysql_upgrade
Looking for 'mysql' as: bin/mysql
Looking for 'mysqlcheck' as: bin/mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/tmp/mysql.sock'
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/tmp/mysql.sock'
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.general_log OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.ndb_binlog_index OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.servers OK
mysql.slow_log OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
test.heartbeat OK
test.log20111127 OK
test.log20111128 OK
test.log20111129 OK
test.log20111130 OK
test.log20111201 OK
test.log20111202 OK
test.log20111203 OK
test.log20111204 OK
test.log20111205 OK
test.log20111206 OK
test.log20111207 OK
test.t1 OK
test.t2 OK
Running 'mysql_fix_privilege_tables'...
OK
第三步:
/usr/local/mysql5.5/bin/mysqladmin -uroot -p123456 shutdown
第四步:
/usr/local/mysql5.5/bin/mysqld_safe --defaults-file=/etc/my.cnf --user=mysql &
mysql> select version();
+------------+
| version() |
+------------+
| 5.5.19-log |
+------------+
1 row in set (0.00 sec)
mysql> select @@innodb_version;
+------------------+
| @@innodb_version |
+------------------+
| 1.1.8 |
+------------------+
1 row in set (0.00 sec)
至此,升級過程完畢。 本文出自:億恩科技【1tcdy.com】
服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|