平台 :fc3(只安装开发工具,其他什么也不装)
内核版本:2.6.9-1.667
MySQL :MySQL-server-4.0.26-0.i386.rpm
第一步
安装MySQL 服务器
用PenguiNet上传MySQL-server-4.0.26-0.i386.rpm到/srv/下
安装MySQL,rpm -ivh MySQL-server-4.0.26-0.i386.rpm
提示出错,提示内容:[root@merlin srv]# rpm -ivh MySQL-server-4.0.26-0.i386.rpm
warning: MySQL-server-4.0.26-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f
5
error: Failed dependencies:
perl(DBI) is needed by MySQL-server-4.0.26-0.i386
[root@merlin srv]#
分析:以上提示是缺少perl(DBI),DBI是Perl数据库编程的主要接口。到www.rpmfind.net可以搜索到他,
我用的是perl-DBI-1.40-5.i386
上传perl-DBI-1.40-5.i386,执行rpm -ivh perl-DBI-1.40-5.i386
提示:[root@merlin srv]# rpm -ivh perl-DBI-1.40-5.i386.rpm
warning: perl-DBI-1.40-5.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
[root@merlin srv]#
再次安装Mysql-server
执行:rpm -ivh MySQL-server-4.0.26-0.i386.rpm
提示:[root@merlin srv]# rpm -ivh MySQL-server-4.0.26-0.i386.rpm
warning: MySQL-server-4.0.26-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
060429 2:48:15 /usr/sbin/mysqld: Shutdown Complete
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 merlin.linux.org 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
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
[root@merlin srv]#
MySQL-server安装成功!
第二步
安装MySQL-client MySQL客户端
下载MySQL-client-4.0.26-0.i386并rpm -ivh MySQL-client-4.0.26-0.i386
提示:[root@merlin srv]# rpm -ivh MySQL-client-4.0.26-0.i386.rpm
warning: MySQL-client-4.0.26-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
[root@merlin srv]#
安装MySQL-client成功!
第三步
安装MySQL-devel 开发工具
下载MySQL-devel-4.0.26-0.i386并安装..........
提示:[root@merlin srv]# rpm -ivh MySQL-devel-4.0.26-0.i386.rpm
warning: MySQL-devel-4.0.26-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing... ########################################### [100%]
1:MySQL-devel ########################################### [100%]
[root@merlin srv]#
安装MySQL-devel成功!
第四步
启动MySQL服务器 /ect/init.d/mysql/start
启动MySQL mysql
出现:[root@merlin srv]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.26-standard
Type ';help;'; or ';\h'; for help. Type ';\c'; to clear the buffer.
mysql>
表明你MySQL已经安装好了,你可以测试MySQL了.........
|