Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10724540
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:27:37

用FC7安装MySQL
#rpm -qa | grep mysql

先下载下面三个文件:
1:MySQL-client-community-5.1.22-0.rhel5.i386.rpm
2:MySQL-server-community-5.1.22-0.rhel5.i386.rpm
3:perl-DBI-1.53-2.fc7.i386.rpm         
(附件里面有)

进入/mnt/cdrom目录下面:
[root@fc7linux test]# cd /mnt/cdrom/
[root@fc7linux cdrom]# ls
MySQL-client-community-5.1.22-0.rhel5.i386.rpm  perl-DBI-1.53-2.fc7.i386.rpm
MySQL-server-community-5.1.22-0.rhel5.i386.rpm
[root@fc7linux cdrom]# ll -h
�计 27M
-r-xr-xr-x 1 root root 6.5M 2007-12-23 MySQL-client-community-5.1.22-0.rhel5.i386.rpm
-r-xr-xr-x 1 root root  20M 2007-12-23 MySQL-server-community-5.1.22-0.rhel5.i386.rpm
-r-xr-xr-x 1 root root 612K 2007-12-23 perl-DBI-1.53-2.fc7.i386.rpm
卸载一些无用软件:
[root@fc7linux cdrom]# rpm -qa | grep mysql
mysql-libs-5.0.37-2.fc7
php-mysql-5.2.2-3
[root@fc7linux cdrom]# rpm -e mysql-libs-5.0.37-2.fc7
error: Failed dependencies:
        libmysqlclient.so.15 is needed by (installed) php-mysql-5.2.2-3.i386
        libmysqlclient.so.15(libmysqlclient_15) is needed by (installed) php-mysql-5.2.2-3.i386
[root@fc7linux cdrom]# rpm -e php-mysql-5.2.2-3
[root@fc7linux cdrom]# rpm -e mysql-libs-5.0.37-2.fc7
[root@fc7linux cdrom]#
[root@fc7linux cdrom]#

安装MySQL:
REDHAT系列的LINUX安装MySQL需要perl的支持。
[root@fc7linux cdrom]# rpm -ivh perl-DBI-1.53-2.fc7.i386.rpm
Preparing...                ########################################### [100%]
   1:perl-DBI               ########################################### [100%]

安装MySQL服务器软件:
[root@fc7linux cdrom]# rpm -ivh MySQL-server-community-5.1.22-0.rhel5.i386.rpm
Preparing...                ########################################### [100%]
   1:MySQL-server-community ########################################### [100%]
rpm -ivh M      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 fc7linux password 'new-password'
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
阅读(1682) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~