在linux下安装mysql一直没成功过。网上的教程一个比一个坑爹,不过还有一个比较不坑的。按他的完成了
下面是原谅链接
http://www.centos.bz/2011/07/centos5-rpm-install-mysql5-5-14/
自己的总结,在linux上安装MYSQL5.5
需要下载的包有:
1、MySQL-server-5.5.34-1.rhel5.i386.rpm(http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-server-5.6.16-1.el6.x86_64.rpm)
2、MySQL-client-5.5.34-1.rhel5.i386.rpm(http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-client-5.6.16-1.el6.x86_64.rpm)
3、MySQL-devel-5.5.34-1.rhel5.i386.rpm(http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-devel-5.6.16-1.el6.x86_64.rpm)
4、MySQL-shared-5.5.34-1.rhel5.i386.rpm(http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-shared-5.6.16-1.el6.x86_64.rpm)
5、libaio-0.3.93-4.i386.rpm(如果系统已经存在了,就不用安装了,如果系统没有,则下载地址是:
ftp://ftp.sunet.se/pub/Linux/distributions/redhat/redhat-archive/redhat/linux/9/en/os/i386/RedHat/RPMS/libaio-0.3.93-4.i386.rpm)
依次安装:
rpm -ivh libaio-0.3.93-4.i386.rpm (如果存在就不用安装了)
rpm -ivh MySQL-server-5.5.14-1.rhel5.i386.rpm
rpm -ivh MySQL-client-5.5.14-1.rhel5.i386.rpm
rpm -ivh MySQL-shared-5.5.14-1.rhel5.i386.rpm
rpm -ivh MySQL-devel-5.5.14-1.rhel5.i386.rpm
安装完之后启动并设置mysql
service mysql start (启动)
mysql_secure_installation (设置)
授权任何机器都可以远程登陆
grant all privileges on *.* to root@"%" identified by "password" with grant option;
centos 安装mysql冲突解决方法:
Preparing... ########################################### [100%]
file /usr/share/mysql/charsets/README from install of MySQL-server-community-5.1.44-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-community-5.1.44-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-community-5.1.44-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-community-5.1.44-1.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
解决办法:
卸载mysql:rpm -e --nodeps mysql-libs-5.1.*