redhat8 mysql安装具体过程
2007-11-11 15:31:05 来源:WEB开发网核心提示:redhat8 MySQL(和PHP搭配之最佳组合)安装具体过程安装顺序rpm -ivh MySQL(和PHP搭配之最佳组合)-3.23.41-1.i386.rpm rpm -ivh MySQL(和PHP搭配之最佳组合)-devel-3.23.41-1.i386.rpm rpm -ivh MySQL(和PHP搭配之最佳
redhat8 MySQL(和PHP搭配之最佳组合)安装具体过程
安装顺序
rpm -ivh MySQL(和PHP搭配之最佳组合)-3.23.41-1.i386.rpm
rpm -ivh MySQL(和PHP搭配之最佳组合)-devel-3.23.41-1.i386.rpm
rpm -ivh MySQL(和PHP搭配之最佳组合)-server-3.23.41-1.i386.rpm
[root@localhost perl]# rpm -ivh MySQL(和PHP搭配之最佳组合)-3.2*.rpm //第一个包就不顺
warning: MySQL(和PHP搭配之最佳组合)-3.23.52-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
perl-DBI is needed by MySQL(和PHP搭配之最佳组合)-3.23.52-3
perl-DBD-MySQL(和PHP搭配之最佳组合) is needed by MySQL(和PHP搭配之最佳组合)-3.23.52-3
perl(CGI) is needed by MySQL(和PHP搭配之最佳组合)-3.23.52-3
perl(DBI) is needed by MySQL(和PHP搭配之最佳组合)-3.23.52-3
down perl-DBD-MySQL(和PHP搭配之最佳组合)在disk3/redhat/RPMS下
perl-DBI在disk2/redhat/RPMS下
[root@localhost perl]# rpm -ivh perl-CGI*.rpm //以后会用到先装
warning: perl-CGI-2.81-55.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:perl-CGI ########################################### [100%]
[root@localhost perl]# rpm -ivh perl-DBI*
warning: perl-DBI-1.30-1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
[root@localhost perl]# rpm -ivh perl-DBD-MySQL(和PHP搭配之最佳组合)*
warning: perl-DBD-MySQL(和PHP搭配之最佳组合)-2.1017-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
libMySQL(和PHP搭配之最佳组合)client.so.10 is needed by perl-DBD-MySQL(和PHP搭配之最佳组合)-2.1017-3
google "libMySQL(和PHP搭配之最佳组合)client.so.10 MySQL(和PHP搭配之最佳组合)" //呵呵这个可是难倒了很多好汉
[root@localhost perl]# rpm -ivh libMySQL(和PHP搭配之最佳组合)*
warning: libMySQL(和PHP搭配之最佳组合)10-3.23.56-1.4mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 22458a98
Preparing... ########################################### [100%]
1:libMySQL(和PHP搭配之最佳组合)10 ########################################### [100%]
[root@localhost perl]# rpm -ivh perl-DBD-MySQL(和PHP搭配之最佳组合)*
warning: perl-DBD-MySQL(和PHP搭配之最佳组合)-2.1017-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:perl-DBD-MySQL(和PHP搭配之最佳组合) ########################################### [100%]
[root@localhost perl]# rpm -ivh MySQL(和PHP搭配之最佳组合)-3.23*
warning: MySQL(和PHP搭配之最佳组合)-3.23.52-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:MySQL(和PHP搭配之最佳组合) ########################################### [100%]
[root@localhost perl]# rpm -ivh MySQL(和PHP搭配之最佳组合)-devel*
warning: MySQL(和PHP搭配之最佳组合)-devel-3.23.52-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:MySQL(和PHP搭配之最佳组合)-devel ########################################### [100%]
[root@localhost perl]# rpm -ivh MySQL(和PHP搭配之最佳组合)-server*
warning: MySQL(和PHP搭配之最佳组合)-server-3.23.52-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:MySQL(和PHP搭配之最佳组合)-server ########################################### [100%]
安装测试
[root@localhost perl]# MySQL(和PHP搭配之最佳组合)
ERROR 2002: Can't connect to local MySQL(和PHP搭配之最佳组合) server through socket '/var/lib/MySQL(和PHP搭配之最佳组合)/MySQL(和PHP搭配之最佳组合).sock' (2)
在搜索里找不到MySQL(和PHP搭配之最佳组合)执行程序,只有rpm安装包
在“服务”-看到了新增的 MySQL(和PHP搭配之最佳组合)d 打勾,restart
[root@localhost perl]# MySQL(和PHP搭配之最佳组合)
Welcome to the MySQL(和PHP搭配之最佳组合) monitor. Commands end with ; or \g.
Your MySQL(和PHP搭配之最佳组合) connection id is 1 to server version: 3.23.52
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
MySQL(和PHP搭配之最佳组合)>
MySQL(和PHP搭配之最佳组合)成功安装并启动
因为缺省情况下MySQL(和PHP搭配之最佳组合)的root用户没有口令,使用下列
[root@localhost perl]# MySQL(和PHP搭配之最佳组合)admin -u root password 747858969
[root@localhost perl]# MySQL(和PHP搭配之最佳组合)
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
[root@localhost etc]# MySQL(和PHP搭配之最佳组合) -u root -p
Enter password:****
MySQL(和PHP搭配之最佳组合)>
小技巧:
系统监视器-系统监视器 可以看到硬盘的使用情况
赞助商链接