Welcome 微信登录

首页 / 数据库 / MySQL / CentOS下升级MySQL 5.0.19到5.5

系统环境:CentOS 5.5 CentOS 5.5的源mysql目前还停留在5.0.19上,要做数据库主从的时候,必须升级到5.1以上。 索性,直接到5.5吧1、安装MySQL 5.5.x的yum源: rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm2、安装MySQL客户端的支持包: yum install libmysqlclient15 --enablerepo=webtatic3、卸载MySQL老版本的软件包: yum remove mysql mysql-*4、安装MySQL 5.5的客户端和服务端: yum install mysql55 mysql55-server --enablerepo=webtatic5、启动MySQL系统服务,更新数据库:/etc/init.d/mysqld restart mysql_upgrade升级完毕
  1. /etc/init.d/mysqld restart   
  2. 停止 mysqld:                                              [确定]   
  3. 初始化 MySQL 数据库: Installing MySQL system tables...   
  4. OK   
  5. Filling help tables...   
  6. OK   
  7.   
  8. To start mysqld at boot time you have to copy   
  9. support-files/mysql.server to the right place for your system   
  10.   
  11. PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !   
  12. To do so, start the server, then issue the following commands:   
  13.   
  14. /usr/bin/mysqladmin -u root password "new-password"  
  15. /usr/bin/mysqladmin -u root -h client4.360zan.cn password "new-password"  
  16.   
  17. Alternatively you can run:   
  18. /usr/bin/mysql_secure_installation   
  19.   
  20. which will also give you the option of removing the test   
  21. databases and anonymous user created by default.  This is   
  22. strongly recommended for production servers.   
  23.   
  24. See the manual for more instructions.   
  25.   
  26. You can start the MySQL daemon with:   
  27. cd /usr ; /usr/bin/mysqld_safe &   
  28.   
  29. You can test the MySQL daemon with mysql-test-run.pl   
  30. cd /usr/mysql-test ; perl mysql-test-run.pl   
  31.   
  32. Please report any problems with the /usr/bin/mysqlbug script!   
  33.   
  34.                                                            [确定]   
  35. 启动 mysqld:                                              [确定]  
源是国外的,特慢。 文件下载下载在Linux公社的1号FTP服务器里,下载地址:FTP地址:ftp://www.linuxidc.com用户名:www.linuxidc.com密码:www.muu.cc在 2012年LinuxIDC.com8月CentOS下升级MySQL 5.0.19到5.5下载方法见 http://www.linuxidc.net/thread-1187-1-1.htmlUbuntu下MySQL的安装及远程连接配置等配置在Linux上使用MySQL的心得整理相关资讯      MySQL升级 
  • MySQL5.x升级至MySQL5.7后导入之前  (今 20:32)
  • MySQL 5.6.23升级到MySQL 5.7.9  (11/22/2015 20:56:25)
  • MySQL版本升级实录  (10/10/2014 16:54:56)
  • MySQL升级 参考分享  (08月17日)
  • CentOS下MySQL 5.1升级到5.7  (12/06/2014 15:13:07)
  • MySQL 升级的最佳实践  (09/28/2014 08:11:09)
本文评论 查看全部评论 (0)
表情: 姓名: 字数