广告
返回顶部
首页 > 资讯 > 数据库 >linux下如何使用yum源安装mysql
  • 643
分享到

linux下如何使用yum源安装mysql

yum源安装mysqllinux下安装mysqllinux yum源安装mysql 2022-12-16 11:12:09 643人浏览 独家记忆
摘要

目录使用网络yum源安装Mysql(1)检查(2)查看(3)安装(4)启动服务(5)自启动(6)创建管理员(7)登录总结使用网络yum源安装mysql (1)检查   (2)查看   (3)安装 &

使用网络yum源安装mysql

(1)检查

 linux下如何使用yum源安装mysql

(2)查看

 linux下如何使用yum源安装mysql

(3)安装

linux下如何使用yum源安装mysql

 linux下如何使用yum源安装mysql

linux下如何使用yum源安装mysql

(4)启动服务

 linux下如何使用yum源安装mysql

(5)自启动

 linux下如何使用yum源安装mysql

(6)创建管理员

 linux下如何使用yum源安装mysql

(7)登录

linux下如何使用yum源安装mysql

[root@雨ゆこ ~]# yum -y install mysql-devel
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-devel.x86_64 0:5.1.73-8.el6_8 will be installed
--> Processing Dependency: openssl-devel for package: mysql-devel-5.1.73-8.el6_8.x86_64
--> Running transaction check
---> Package openssl-devel.x86_64 0:1.0.1e-57.el6 will be installed
--> Processing Dependency: zlib-devel for package: openssl-devel-1.0.1e-57.el6.x86_64
--> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-57.el6.x86_64
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.10.3-65.el6 will be installed
--> Processing Dependency: libkadm5(x86-64) = 1.10.3-65.el6 for package: krb5-devel-1.10.3-65.el6.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-65.el6.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-65.el6.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-65.el6.x86_64
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be installed
---> Package libcom_err-devel.x86_64 0:1.41.12-23.el6 will be installed
---> Package libkadm5.x86_64 0:1.10.3-65.el6 will be installed
---> Package libselinux-devel.x86_64 0:2.0.94-7.el6 will be installed
--> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-7.el6.x86_64
--> Processing Dependency: pkGConfig(libsepol) for package: libselinux-devel-2.0.94-7.el6.x86_64
--> Running transaction check
---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
 Package                           Arch                 Version                      Repository          Size
==============================================================================================================
Installing:
 mysql-devel                       x86_64               5.1.73-8.el6_8               base               130 k
Installing for dependencies:
 keyutils-libs-devel               x86_64               1.4-5.el6                    base                29 k
 krb5-devel                        x86_64               1.10.3-65.el6                base               504 k
 libcom_err-devel                  x86_64               1.41.12-23.el6               base                33 k
 libkadm5                          x86_64               1.10.3-65.el6                base               143 k
 libselinux-devel                  x86_64               2.0.94-7.el6                 base               137 k
 libsepol-devel                    x86_64               2.0.41-4.el6                 base                64 k
 openssl-devel                     x86_64               1.0.1e-57.el6                base               1.2 M
 zlib-devel                        x86_64               1.2.3-29.el6                 base                44 k

Transaction Summary
==============================================================================================================
Install       9 Package(s)

Total download size: 2.2 M
Installed size: 5.5 M
Downloading Packages:
(1/9): keyutils-libs-devel-1.4-5.el6.x86_64.rpm                                        |  29 kB     00:00     
(2/9): krb5-devel-1.10.3-65.el6.x86_64.rpm                                             | 504 kB     00:00     
(3/9): libcom_err-devel-1.41.12-23.el6.x86_64.rpm                                      |  33 kB     00:00     
(4/9): libkadm5-1.10.3-65.el6.x86_64.rpm                                               | 143 kB     00:00     
(5/9): libselinux-devel-2.0.94-7.el6.x86_64.rpm                                        | 137 kB     00:00     
(6/9): libsepol-devel-2.0.41-4.el6.x86_64.rpm                                          |  64 kB     00:00     
(7/9): mysql-devel-5.1.73-8.el6_8.x86_64.rpm                                           | 130 kB     00:00     
(8/9): openssl-devel-1.0.1e-57.el6.x86_64.rpm                                          | 1.2 MB     00:00     
(9/9): zlib-devel-1.2.3-29.el6.x86_64.rpm                                              |  44 kB     00:00     
--------------------------------------------------------------------------------------------------------------
Total                                                                          17 MB/s | 2.2 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : zlib-devel-1.2.3-29.el6.x86_64                                                             1/9 
  Installing : libcom_err-devel-1.41.12-23.el6.x86_64                                                     2/9 
  Installing : libkadm5-1.10.3-65.el6.x86_64                                                              3/9 
  Installing : libsepol-devel-2.0.41-4.el6.x86_64                                                         4/9 
  Installing : libselinux-devel-2.0.94-7.el6.x86_64                                                       5/9 
  Installing : keyutils-libs-devel-1.4-5.el6.x86_64                                                       6/9 
  Installing : krb5-devel-1.10.3-65.el6.x86_64                                                            7/9 
  Installing : openssl-devel-1.0.1e-57.el6.x86_64                                                         8/9 
  Installing : mysql-devel-5.1.73-8.el6_8.x86_64                                                          9/9 
  Verifying  : keyutils-libs-devel-1.4-5.el6.x86_64                                                       1/9 
  Verifying  : libsepol-devel-2.0.41-4.el6.x86_64                                                         2/9 
  Verifying  : openssl-devel-1.0.1e-57.el6.x86_64                                                         3/9 
  Verifying  : krb5-devel-1.10.3-65.el6.x86_64                                                            4/9 
  Verifying  : libkadm5-1.10.3-65.el6.x86_64                                                              5/9 
  Verifying  : libcom_err-devel-1.41.12-23.el6.x86_64                                                     6/9 
  Verifying  : libselinux-devel-2.0.94-7.el6.x86_64                                                       7/9 
  Verifying  : mysql-devel-5.1.73-8.el6_8.x86_64                                                          8/9 
  Verifying  : zlib-devel-1.2.3-29.el6.x86_64                                                             9/9 

Installed:
  mysql-devel.x86_64 0:5.1.73-8.el6_8                                                                         

Dependency Installed:
  keyutils-libs-devel.x86_64 0:1.4-5.el6                  krb5-devel.x86_64 0:1.10.3-65.el6                  
  libcom_err-devel.x86_64 0:1.41.12-23.el6                libkadm5.x86_64 0:1.10.3-65.el6                    
  libselinux-devel.x86_64 0:2.0.94-7.el6                  libsepol-devel.x86_64 0:2.0.41-4.el6               
  openssl-devel.x86_64 0:1.0.1e-57.el6                    zlib-devel.x86_64 0:1.2.3-29.el6                   

Complete!
[root@雨ゆこ ~]# service mysqle start
mysqle: unrecognized service
[root@雨ゆこ ~]# service mysqld start
Initializing MySQL database:  WARNING: The host '雨ゆこ' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
nORMally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWord FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h 雨ゆこ password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

                                                           [  OK  ]
Starting mysqld:                                           [  OK  ]
[root@雨ゆこ ~]# chkconfig --level 2345 mysqld on
[root@雨ゆこ ~]# chkconfig --list|grep mysql*
mysqld         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
[root@雨ゆこ ~]# mysqladmin -u root password 289178199
[root@雨ゆこ ~]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, oracle and/or its affiliates. All rights reserved.

Oracle is a reGIStered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
+--------------------+
3 rows in set (0.00 sec)

mysql> 

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持我们。

您可能感兴趣的文档:

--结束END--

本文标题: linux下如何使用yum源安装mysql

本文链接: https://www.lsjlt.com/news/175011.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • linux下如何使用yum源安装mysql
    目录使用网络yum源安装mysql(1)检查(2)查看(3)安装(4)启动服务(5)自启动(6)创建管理员(7)登录总结使用网络yum源安装mysql (1)检查   (2)查看   (3)安装 &...
    99+
    2022-12-16
    yum源安装mysql linux下安装mysql linux yum源安装mysql
  • Linux下如何使用yum安装MySQL
    这篇文章主要介绍了Linux下如何使用yum安装MySQL,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。Linux下yum安装MySQL具体步骤 1、先检查系统是否...
    99+
    2023-06-28
  • linux下使用yum安装mysql
    这篇文章主要介绍了linux下使用yum安装mysql,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。 linu...
    99+
    2022-10-18
  • linux下如何用yum安装mysql
    这篇文章主要介绍了linux下如何用yum安装mysql的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇linux下如何用yum安装mysql文章都会有所收获,下面我们一起来看看吧。方法:1、利用“yum -y ...
    99+
    2023-06-30
  • Linux下如何使用yum的方式安装mysql
    这篇文章将为大家详细讲解有关Linux下如何使用yum的方式安装mysql,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。\1. 先检查系统是否装有mysql[root@localhost ~]#...
    99+
    2023-06-27
  • Linux下如何使用YUM安装JDK
    这篇文章主要介绍了Linux下如何使用YUM安装JDK,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。JDK 是Java开发工具包 (Java Development Kit ...
    99+
    2023-06-28
  • Linux安装MySQL(使用yum)
    这是参照msyql官方文档写的(网上的教程五花八门,各有各的特色和技巧,不过还是以官方文档为主要参考最靠谱) 注意 : 适用于第一次安装的情况,系统上已经有之前安装过的版本的话,官方文档同一章也有升级、替换该怎么操作,我这里不侧重。 ①ms...
    99+
    2023-08-17
    mysql linux
  • linux下使用yum安装 mencached
    1. 安装   yum -y install memcached 2. 启动memcached  ./usr/bin/memcached -d -m 256 -u root ...
    99+
    2022-06-03
    linux
  • 如何使用yum源安装mongodb
    本篇文章给大家分享的是有关如何使用yum源安装mongodb,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。1、建立yum仓库,配置yum源。2...
    99+
    2022-10-18
  • Linux系统中如何使用yum安装MySQL
    本篇内容介绍了“Linux系统中如何使用yum安装MySQL”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!环境:Centos 6.5Linu...
    99+
    2023-06-28
  • linux如何使用yum安装php
    这篇文章主要讲解了“linux如何使用yum安装php”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“linux如何使用yum安装php”吧!linux使用yum安装php的方法:1、执行“m...
    99+
    2023-07-05
  • 如何在centos7.4系统中使用yum源安装mysql 5.6
    如何在centos7.4系统中使用yum源安装mysql 5.6?相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。系统环境:centos7.4一,...
    99+
    2022-10-18
  • linux如何安装及配置本地yum源
    要安装和配置本地yum源,您可以按照以下步骤进行操作:1. 安装Apache服务器:```sudo apt-get updatesu...
    99+
    2023-10-09
    Linux
  • CentOS7下使用源安装MySQL
    参考文章:https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/ 由于一些原因,CentOS7的默认yum源中取消...
    99+
    2022-10-18
  • Linux下如何配置本地yum源和外网yum源
    这篇文章主要介绍Linux下如何配置本地yum源和外网yum源,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!YUM 它是一个 C/S 架构的软件,能够对基于 RPM 格式的软件包进行管理,它提供了包括自动解决依赖关系...
    99+
    2023-06-28
  • Linux如何安装yum
    本篇内容介绍了“Linux如何安装yum”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!yum是一个在 Fedora 和 RedHat 以及 ...
    99+
    2023-06-28
  • linux如何使用yum安装php-fpm
    本文小编为大家详细介绍“linux如何使用yum安装php-fpm”,内容详细,步骤清晰,细节处理妥当,希望这篇“linux如何使用yum安装php-fpm”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。什么是PH...
    99+
    2023-07-05
  • 如何使用Yum安装MongoDB Linux版
    本篇内容介绍了“如何使用Yum安装MongoDB Linux版”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成...
    99+
    2022-10-18
  • Linux下的 Mysql 8.0 yum 安装 并修改密码
      1.MySQL版本: mysql> select @@version;+-----------+| @@version |+-----------+| 8.0.18 |+-----------+1 row in set...
    99+
    2019-10-15
    Linux下的 Mysql 8.0 yum 安装 并修改密码
  • Centos6.5使用yum安装mysql
    yum 安装MYSQL1  yum -y install mysql-server2 设置开机自启管理chkconfig mysqld on3启动MYSQL 服务service mysqld st...
    99+
    2022-10-18
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作