参数的更改:
skip-locking 在5.5里已经不识别了,改成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 &第二步:执行更新程序
[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)至此,升级过程完毕。Oracle存储过程开发实例查看MySQL show processlist最多的几个ip相关资讯 MySQL基础教程
- MySQL基础教程:关于varchar(N) (01月22日)
- MySQL SELECT同时UPDATE同一张表 (02/19/2013 07:20:18)
- Linux修改MySQL最大并发连接数 (02/15/2013 15:37:21)
| - 高性能MySQL(第3版) 中文PDF带目 (10/26/2014 10:03:50)
- 如何在MySQL中的获取IP地址的网段 (02/18/2013 12:23:33)
- C++和C#访问MySQL的简单代码示例 (12/21/2012 09:04:10)
|
本文评论 查看全部评论 (0)