1
首先查看是否已经装有 mysql
命令: rpm –qa|grep –i mysql
如果有的话,用命令卸载(删除)
命令: rpm –e --nodeps 包名
2. 上传安装文件
MySQL-client-5.5.8-1.rhel5.i386.rpm
MySQL-server-5.5.8-1.rhel4.i386.rpm
运行命令安装:
rpm –ivh MySQL-server-5.5.8-1.rhel4.i386.rpm
成功界面:
[root@localhost liuhaisheng]# rpm -ivh
MySQL-server-5.5.8-1.rhel4.i386.rpm
Preparing...
########################################### [100%]
1:MySQL-server
########################################### [100%]
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 localhost.localdomain 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.
Please report any problems with the /usr/bin/mysqlbug script!
3. 安装客户端
[root@localhost liuhaisheng]# rpm -ivh
MySQL-client-5.5.8-1.rhel5.i386.rpm
Preparing...
########################################### [100%]
1:MySQL-client
评论0
最新资源