当前位置:首页 » 操作系统 » 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 23:01:48 浏览:7
php自动斜杠 发布:2024-09-23 23:01:45 浏览:95
用c语言判断一个数是不是素数 发布:2024-09-23 22:50:40 浏览:229
eclipse追加额外编译条件 发布:2024-09-23 21:59:51 浏览:695
sql增加表数据 发布:2024-09-23 21:58:57 浏览:319
苹果手机如何看保存的密码是多少 发布:2024-09-23 21:47:47 浏览:432
ftp年日均存款 发布:2024-09-23 21:47:36 浏览:840
最好用的云服务器 发布:2024-09-23 21:42:07 浏览:617
mac访问win7共享文件夹 发布:2024-09-23 21:30:02 浏览:714
双系统怎么查win的配置 发布:2024-09-23 21:25:48 浏览:815