redhat8 mysql安装具体过程_MySQL数据库_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

redhat8 mysql安装具体过程

作者:黑客防线网安MYSQL维护基地 来源:黑客防线网安MYSQL维护基地 浏览次数:0

本篇关键词:过程具体安装
黑客防线网安网讯:redhat8 mysql安装具体过程 安装顺序     rpm -ivh mysql-3.23.41-1.i386.rpm    rpm -ivh mysql-devel-3.23.41-1.i386.rpm    rpm -ivh mysql-server-3.23.41-1.i386.rpm  [root@local...

redhat8 mysql安装具体过程

安装顺序
    rpm -ivh mysql-3.23.41-1.i386.rpm 
  rpm -ivh mysql-devel-3.23.41-1.i386.rpm 
  rpm -ivh mysql-server-3.23.41-1.i386.rpm 

[root@localhost perl]# rpm -ivh mysql-3.2*.rpm  //第一个包就不顺
warning: mysql-3.23.52-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        perl-DBI is needed by mysql-3.23.52-3
        perl-DBD-MySQL is needed by mysql-3.23.52-3
        perl(CGI) is needed by mysql-3.23.52-3
        perl(DBI) is needed by mysql-3.23.52-3

down perl-DBD-MySQL在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*
warning: perl-DBD-MySQL-2.1017-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        libmysqlclient.so.10 is needed by perl-DBD-MySQL-2.1017-3

google "libmysqlclient.so.10 mysql"   //呵呵这个可是难倒了很多好汉

[root@localhost perl]# rpm -ivh libmysql*
warning: libmysql10-3.23.56-1.4mdk.i586.rpm: V3 DSA signature: NOKEY, key ID 22458a98
Preparing...                ########################################### [100%]
   1:libmysql10             ########################################### [100%]

[root@localhost perl]# rpm -ivh perl-DBD-MySQL*
warning: perl-DBD-MySQL-2.1017-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
   1:perl-DBD-MySQL         ########################################### [100%]

[root@localhost perl]# rpm -ivh mysql-3.23*
warning: mysql-3.23.52-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
   1:mysql                  ########################################### [100%]
[root@localhost perl]# rpm -ivh mysql-devel*
warning: mysql-devel-3.23.52-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
   1:mysql-devel            ########################################### [100%]
[root@localhost perl]# rpm -ivh mysql-server*
warning: mysql-server-3.23.52-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
   1:mysql-server           ########################################### [100%]

安装测试
    [root@localhost perl]# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    在搜索里找不到mysql执行程序只有rpm安装包
    在“服务”-看到了新增的 mysqld 打勾restart
    [root@localhost perl]# mysql
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 1 to server version: 3.23.52

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
mysql>

mysql成功安装并启动

因为缺省情况下mysql的root用户没有口令,使用下列
[root@localhost perl]# mysqladmin -u root password 747858969
[root@localhost perl]# mysql
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

[root@localhost etc]# mysql -u root -p
Enter password:****
mysql>

小技巧:
系统监视器-系统监视器 可以看到硬盘的使用情况

    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-8274-1.html
网站维护教程更新时间:2012-03-20 04:51:01  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer