程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> MYSQL數據庫 >> 關於MYSQL數據庫 >> redhat8 mysql安裝具體過程

redhat8 mysql安裝具體過程

編輯:關於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*
war


您正在看的MySQL教程是:redhat8 mysql安裝具體過程。ning: 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>

小技巧:
系統監視器-系統監視器 可以看到硬盤的使用情況
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved