Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1851992
  • 博文数量: 524
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 2483
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-25 18:36
个人简介

打杂

文章分类

全部博文(524)

文章存档

2022年(3)

2021年(9)

2019年(1)

2018年(32)

2017年(11)

2016年(152)

2015年(198)

2014年(118)

分类: Mysql/postgreSQL

2016-02-04 12:47:32

操作系统:redhat6.5
yum install mysql*

mysql-devel-5.1.71-1.el6.x86_64
mysql-connector-java-5.1.17-6.el6.noarch
mysql-libs-5.1.71-1.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
mysql-5.1.71-1.el6.x86_64
mysql-server-5.1.71-1.el6.x86_64
mysql-bench-5.1.71-1.el6.x86_64
mysql-test-5.1.71-1.el6.x86_64

使用mysql5.1.71的时候,必须使用 service mysql start
理由是:看下面的日志就明白了。
Initializing MySQL database:  WARNING: The host 'iptables' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
OK
Filling help tables...
OK


To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system


PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:


/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h iptables password 'new-password'


Alternatively you can run:
/usr/bin/mysql_secure_installation


which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.


See the manual for more instructions.


You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &


You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl


Please report any problems with the /usr/bin/mysqlbug script!


[  OK  ]
Starting mysqld:  [  OK  ]

坑真的,只有自己添过了,影响非常深。但是了,就是太费时间。   上午3个小时。 理由是我原来的linux上安装过mysql 的集群cluseterwar。mysql5.6.25版本,卸载完后,安装老版本。问题各种。

阅读(1689) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~