當前位置:首頁 » 操作系統 » mysqllinuxrpm安裝

mysqllinuxrpm安裝

發布時間: 2022-03-05 12:08:24

A. linux的mysql的rpm安裝包誰有,分享一下(官網版本太多,不知道哪個是rpm包)

官網沒有rpm包下載,官網現在下載的rpm包是mysql的倉庫文件,安裝以後會生成一個mysql.repo文件,然後就可以通過yum命令在線安裝了。但是默認版本是8.0版本的

B. 怎麼在linux系統上安裝已經下好的mysql rpm

rpm的話,那是紅帽系列的唄,安裝也簡單,就是包依賴關系要自己處理,不知道版本高了是不是可以……
rpm -i mysqlrpm

C. mysql5.6 for linux rpm 怎麼安裝

一般比較建議使用發行版的包管理器進行安裝
如果是rpm第的就用
yum install -y mysql包名
如果是deb系的就是
apt-get install mysql包名

如果下載了mysql的rpm包的話
而且自己是的發行版是rpm系的話就使用
rpm -i 下載的包
否則的話其它系是無法直接安裝rpm包的

D. Linux下rpm安裝的mysql資料庫的數據存放位置和其重要目錄的介紹。

rpm安裝默認目錄:
數據文件:/var/lib/mysql/
配置文件模板:/usr/share/mysql
mysql客戶端工具目錄:/usr/bin
日誌目錄:/var/log/
pid,sock文件目錄:/tmp/

一般配置文件會放置在/etc下

E. mysql的rpm安裝包怎麼安裝

1、首先下載rpm安裝包,要下載兩個安裝包一個client,一個server,
有個鏡像做的不錯,下載地址mirrors.sohu.com/mysql,進入後找到你想要的版本,我下的是mysql5.5版的
2、我的linux是32位的,載完後加壓,得到幾個壓縮文件,我們只要其中的server和client
3、將這兩個文件使用winscp工具傳輸到伺服器上,最好改一下名字,下邊使用命令執行時輸入比較方便。我這里改成了mysql-client-5.5.44.rpm和mysql-server-5.5.44.rpm,保留了版本號。關於winscp的使用方法,很簡單,下載一個winscp的安裝包, 安裝完之後打開根據提示輸入伺服器的IP和密碼,遠程連接就可以了。
4、文件傳輸完成後,找到傳輸的目錄,在xshell工具中開始進行安裝xshell是一個用腳本操作linux的工具,下載和安裝也很簡單。安裝完之後遠程連接就可以。連上之後,假設你傳的安裝文件在/usr/local目錄下,用xshell輸入命令先進入到local目錄,要先安裝server首先進入目錄安裝server,輸入文件名的過程中記住:大小寫區分安裝client,表示安裝成功

5、安裝完成後找到/usr/share/mysql/my-medium.cnf,復制到/etc目錄下,把名字改為my.cnf修改默認編碼在文件中加入如圖所示的編碼:這針對5.5以後的版本,因為mysqld在5.5版本後不識別default-character-set這個變數
6、修改完之後,使用service mysql start開啟服務啟動成功之後就安裝完成啦。

F. 誰有mysql for linux的rpm安裝包

1、准備對應的安裝文件
下載頁面:http://dev.mysql.com/downloads/mysql/
找到對應的版本及所需的文件進行下載,如果下載的為tar文件,請使用tar解壓
本人在Oracle Edelivery 下載,所以為V44331-01.zip
#安裝環境
[root@linux1 Mysql_src]# cat /etc/issue
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
Kernel \r on an \m
#源文件路徑
[root@linux1 Mysql_src]# pwd
/Mysql_src
[root@linux1 Mysql_src]# unzip V44331-01.zip
Archive: V44331-01.zip
extracting: MySQL-embedded-advanced-5.6.17-1.rhel5.i386.rpm
extracting: MySQL-test-advanced-5.6.17-1.rhel5.i386.rpm
extracting: MySQL-shared-advanced-5.6.17-1.rhel5.i386.rpm # MySQL的共享庫
extracting: MySQL-devel-advanced-5.6.17-1.rhel5.i386.rpm # MySQL的庫和頭文件
extracting: MySQL-client-advanced-5.6.17-1.rhel5.i386.rpm # MySQL客戶端程序
extracting: MySQL-server-advanced-5.6.17-1.rhel5.i386.rpm # MySQL服務端程序
extracting: MySQL-shared-compat-advanced-5.6.17-1.rhel5.i386.rpm # RHEL兼容包
extracting: README.txt

2、MySQL默認安裝路徑
Directory Contents of Directory
/usr/bin Client programs and scripts
/usr/sbin The mysqld server
/var/lib/mysql Log files, databases
/usr/share/info Manual in Info format
/usr/share/man Unix manual pages
/usr/include/mysql Include (header) files
/usr/lib/mysql Libraries
/usr/share/mysql Miscellaneous support files, including error messages,
character set files, sample configuration files, SQL for database installation
/usr/share/sql-bench Benchmarks

3、安裝MySQL
[root@linux1 Mysql_src]# rpm -ivh MySQL-server-advanced-5.6.17-1.rhel5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-server-advanced ########################################### [100%]
2014-04-15 17:26:59 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated.
Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-04-15 17:26:59 6524 [Note] InnoDB: Using mutexes to ref count buffer pool pages
...........................
2014-04-15 17:27:06 6558 [Note] InnoDB: FTS optimize thread exiting.
2014-04-15 17:27:06 6558 [Note] InnoDB: Starting shutdown...
2014-04-15 17:27:08 6558 [Note] InnoDB: Shutdown completed; log sequence number 1625987
A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in '/root/.mysql_secret'.
You must change that password on your first connect,
no other statement but 'SET PASSWORD' will be accepted.
See the manual for the semantics of the 'password expired' flag.
Also, the account for the anonymous user has been removed.
In addition, you can run:
/usr/bin/mysql_secure_installation
# Author : Leshami
# Blog : http://blog.csdn.net/leshami
which will also give you the option of removing the test database.
This is strongly recommended for proction servers.
...........中間省略................
New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings
[root@linux1 Mysql_src]# rpm -ivh MySQL-client-advanced-5.6.17-1.rhel5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-client-advanced ########################################### [100%]
[root@linux1 Mysql_src]# rpm -ivh MySQL-devel-advanced-5.6.17-1.rhel5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-devel-advanced ########################################### [100%]

4、初始化MySQL及密碼
[root@linux1 Mysql_src]# service mysql start
Starting MySQL.. [ OK ]
[root@linux1 Mysql_src]# more /root/.mysql_secret
# The random password set for the root user at Tue Apr 15 17:27:05 2014 (local time): lyHfNb87EBXhJDe2
[root@linux1 Mysql_src]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.17-enterprise-commercial-advanced
mysql> set PASSWORD=PASSWORD('mysql');
Query OK, 0 rows affected (0.01 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.03 sec)

5、允許遠程登陸
mysql> use mysql;
Database changed
mysql> select host,user,password from user;
+-------------------+------+-------------------------------------------+
| host | user | password |
+-------------------+------+-------------------------------------------+
| localhost | root | * |
| linux1.orasrv.com | root | * |
| 127.0.0.1 | root | * |
| ::1 | root | * |
+-------------------+------+-------------------------------------------+
4 rows in set (0.02 sec)
mysql> update user set password=password('mysql') where user='root';
mysql> update user set host='%' where user='root' and host='localhost';
mysql> flush privileges;
mysql> exit

6、配置開機自啟動
[root@linux1 Mysql_src]# chkconfig --list mysql
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
如果沒有的話使用chkconfig mysql on 設置自啟動

G. 求linux虛擬機下安裝mysql步驟。是使用rpm安裝的……希望是原創的!!!

rpm-ivh 路徑/xx.rpm

H. linux怎麼安裝mysql.rpm格式

首先下載rpm安裝包,要下載兩個安裝包一個client,一個server,
有個鏡像做的不錯,下載地址,進入後找到你想要的版本,我下的是mysql5.5版的
1我的linux是32位的,我下的如下圖所示

2下載完後加壓,得到幾個壓縮文件,我們只要其中的server和client

3將這兩個文件使用winscp工具傳輸到伺服器上,最好改一下名字,下邊使用命令執行時輸入比較方便。
我這里改成了mysql-client-5.5.44.rpm和mysql-server-5.5.44.rpm,保留了版本號。
關於winscp的使用方法,很簡單,下載一個winscp的安裝包, 安裝完之後打開根據提示輸入伺服器的IP和密碼,遠程連接就可以了。

4文件傳輸完成後,找到傳輸的目錄,在xshell工具中開始進行安裝。
xshell是一個用腳本操作linux的工具,下載和安裝也很簡單。安裝完之後遠程連接就可以。
連上之後,假設你傳的安裝文件在/usr/local目錄下,用xshell輸入命令先進入到local目錄,要先安裝server;
首先進入目錄

5安裝server,輸入文件名的過程中記住:大小寫區分

6安裝client,如下圖所示表示安裝成功

7安裝成後找到/usr/share/mysql/my-medium.cnf,復制到/etc目錄下,把名字改為my.cnf
修改默認編碼
在文件中加入如圖所示的編碼:這針對5.5以後的版本,因為mysqld在5.5版本後不識別default-character-set這個變數

8修改完之後,使用service mysql start開啟服務。

9啟動成功之後就安裝完成啦。

I. linux rpm 將mysql安裝到什麼路徑下

rpm安裝默認目錄: 數據文件:/var/lib/mysql/ 配置文件模板:/usr/share/mysql mysql客戶端工具目錄:/usr/bin 日誌目錄:/var/log/ pid,sock文件目錄:/tmp/ 一般配置文件會放置在/etc下

J. linux怎麼安裝mysql rpm包

http://jingyan..com/article/4665065825c740f549e5f830.html

熱點內容
在同一路由器下如何訪問伺服器 發布:2024-09-23 20:55:41 瀏覽:556
天逸哪個配置帶電子擋桿 發布:2024-09-23 19:51:22 瀏覽:547
sqrt在c語言中什麼意思 發布:2024-09-23 19:50:04 瀏覽:507
京東羊毛伺服器搭建 發布:2024-09-23 19:33:39 瀏覽:9
伺服器的遠程埠被關了如何打開 發布:2024-09-23 18:33:22 瀏覽:229
phpjs注入 發布:2024-09-23 18:31:51 瀏覽:596
高性能php應用開發 發布:2024-09-23 18:23:56 瀏覽:209
廣東雲存儲空間開發 發布:2024-09-23 18:21:47 瀏覽:384
易語言怎麼架伺服器 發布:2024-09-23 18:21:46 瀏覽:790
hibernate緩存清除緩存 發布:2024-09-23 18:11:01 瀏覽:365