1. [root@localhost kemin]# dnf install mysql-server
  2. Fedora 23 - x86_64 - Updates                                                                                  1.4 MB/s |  15 MB     00:11
  3. Last metadata expiration check performed 0:00:04 ago on Fri Dec 25 18:36:32 2015.
  4. Dependencies resolved.
  5. ==============================================================================================================================================
  6. Package                               Arch                        Version                                 Repository                    Size
  7. ==============================================================================================================================================
  8. Installing:
  9. mariadb-errmsg                        x86_64                      1:10.0.21-1.fc23                        updates                      199 k
  10. mariadb-libs                          x86_64                      1:10.0.21-1.fc23                        updates                      637 k
  11. mariadb-server                        x86_64                      1:10.0.21-1.fc23                        updates                       18 M
  12. perl-DBD-MySQL                        x86_64                      4.033-1.fc23                            updates                      153 k
  13. perl-DBI                              x86_64                      1.633-6.fc23                            fedora                       727 k
  14. perl-Math-BigInt                      noarch                      1.9997-350.fc23                         updates                      188 k
  15. Transaction Summary
  16. ==============================================================================================================================================
  17. Install  6 Packages
  18. Total download size: 20 M
  19. Installed size: 94 M
  20. Is this ok [y/N]: y
  21. Downloading Packages:
  22. (1/6): mariadb-errmsg-10.0.21-1.fc23.x86_64.rpm                                                               134 kB/s | 199 kB     00:01
  23. (2/6): perl-DBD-MySQL-4.033-1.fc23.x86_64.rpm                                                                 145 kB/s | 153 kB     00:01
  24. (3/6): perl-DBI-1.633-6.fc23.x86_64.rpm                                                                       212 kB/s | 727 kB     00:03
  25. [MIRROR] perl-Math-BigInt-1.9997-350.fc23.noarch.rpm: Curl error (28): Timeout was reached for ftp://mirrors.ustc.edu.cn/fedora/linux/updates/23/x86_64/p/perl-Math-BigInt-1.9997-350.fc23.noarch.rpm []
  26. (4/6): mariadb-libs-10.0.21-1.fc23.x86_64.rpm                                                                 438 kB/s | 637 kB     00:01
  27. (5/6): perl-Math-BigInt-1.9997-350.fc23.noarch.rpm                                                            243 kB/s | 188 kB     00:00
  28. (6/6): mariadb-server-10.0.21-1.fc23.x86_64.rpm                                                               1.3 MB/s |  18 MB     00:14
  29. ----------------------------------------------------------------------------------------------------------------------------------------------
  30. Total                                                                                                         1.2 MB/s |  20 MB     00:17
  31. Running transaction check
  32. Transaction check succeeded.
  33. Running transaction test
  34. Transaction test succeeded.
  35. Running transaction
  36. Installing  : perl-Math-BigInt-1.9997-350.fc23.noarch                                                                                   1/6
  37. Installing  : perl-DBI-1.633-6.fc23.x86_64                                                                                              2/6
  38. Installing  : mariadb-libs-1:10.0.21-1.fc23.x86_64                                                                                      3/6
  39. Installing  : perl-DBD-MySQL-4.033-1.fc23.x86_64                                                                                        4/6
  40. Installing  : mariadb-errmsg-1:10.0.21-1.fc23.x86_64                                                                                    5/6
  41. Installing  : mariadb-server-1:10.0.21-1.fc23.x86_64                                                                                    6/6
  42. Verifying   : mariadb-server-1:10.0.21-1.fc23.x86_64                                                                                    1/6
  43. Verifying   : perl-DBI-1.633-6.fc23.x86_64                                                                                              2/6
  44. Verifying   : mariadb-errmsg-1:10.0.21-1.fc23.x86_64                                                                                    3/6
  45. Verifying   : perl-DBD-MySQL-4.033-1.fc23.x86_64                                                                                        4/6
  46. Verifying   : mariadb-libs-1:10.0.21-1.fc23.x86_64                                                                                      5/6
  47. Verifying   : perl-Math-BigInt-1.9997-350.fc23.noarch                                                                                   6/6
  48. Installed:
  49. mariadb-errmsg.x86_64 1:10.0.21-1.fc23         mariadb-libs.x86_64 1:10.0.21-1.fc23         mariadb-server.x86_64 1:10.0.21-1.fc23
  50. perl-DBD-MySQL.x86_64 4.033-1.fc23             perl-DBI.x86_64 1.633-6.fc23                 perl-Math-BigInt.noarch 1.9997-350.fc23
  51. Complete!
  52. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  53. [root@localhost kemin]# systemctl start mariadb.service
  54. [root@localhost kemin]# systemctl enable mariadb.service
  55. Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
  56. [root@localhost kemin]# mysql_secure_installation
  57. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  58. SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
  59. In order to log into MariaDB to secure it, we'll need the current
  60. password for the root user.  If you've just installed MariaDB, and
  61. you haven't set the root password yet, the password will be blank,
  62. so you should just press enter here.
  63. Enter current password for root (enter for none):
  64. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  65. Setting the root password ensures that nobody can log into the MariaDB
  66. root user without the proper authorisation.
  67. Set root password? [Y/n] Y
  68. New password:
  69. Re-enter new password:
  70. Password updated successfully!
  71. Reloading privilege tables..
  72. ... Success!
  73. By default, a MariaDB installation has an anonymous user, allowing anyone
  74. to log into MariaDB without having to have a user account created for
  75. them.  This is intended only for testing, and to make the installation
  76. go a bit smoother.  You should remove them before moving into a
  77. production environment.
  78. Remove anonymous users? [Y/n] y
  79. ... Success!
  80. Normally, root should only be allowed to connect from 'localhost'.  This
  81. ensures that someone cannot guess at the root password from the network.
  82. Disallow root login remotely? [Y/n] y
  83. ... Success!
  84. By default, MariaDB comes with a database named 'test' that anyone can
  85. access.  This is also intended only for testing, and should be removed
  86. before moving into a production environment.
  87. Remove test database and access to it? [Y/n] y
  88. - Dropping test database...
  89. ... Success!
  90. - Removing privileges on test database...
  91. ... Success!
  92. Reloading the privilege tables will ensure that all changes made so far
  93. will take effect immediately.
  94. Reload privilege tables now? [Y/n] y
  95. ... Success!
  96. Cleaning up...
  97. All done!  If you've completed all of the above steps, your MariaDB
  98. installation should now be secure.
  99. Thanks for using MariaDB!
  100. [root@localhost kemin]#

fedora23上安装和运行MySQL server (MySQL 已经被MariaDB取代)的更多相关文章

  1. 在 Linux 实例上自动安装并运行 VNC Server

    原文网址:https://help.aliyun.com/knowledge_detail/41181.html?spm=5176.8208715.110.11.4c184ae8mlC7Yy 您可以使 ...

  2. centos6.5上安装5.7版本的mysql

    centos6.5上安装5.7版本的mysql https://www.cnblogs.com/lzj0218/p/5724446.html 设置root可以在本机以外的机器访问 mysql -uro ...

  3. (转载)WindowsXP上安装和运行神器SqlMap的步骤

    在Windows XP上安装和运行SqlMap的步骤…… 1.首先下载SqlMap 点击下载. https://codeload.github.com/sqlmapproject/sqlmap/leg ...

  4. DB 查询分析器 6.03 在Windows 8 上安装与运行演示

           DB 查询分析器 6.03 在Windows 8 上安装与运行演示 马根峰                ( 广东联合电子服务股份有限公司, 广州 510300) 摘要          ...

  5. Mac上安装PHP、Apache、MySQL

    Mac自带php5.6版本,要升级到php7.3 步骤如下 1,brew 安装php ,如果没有安装,访问https://brew.sh/index_zh-cn安装在终端输入以下内容,不用指定安装ph ...

  6. 解决Navicat 出错:1130-host . is not allowed to connect to this MySql server,MySQL

    1. 改表法. 可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入MySQL后,更改 "mysql" 数据库里的 " ...

  7. HOSt ip is not allowed to connect to this MySql server, MYSQL添加远程用户或允许远程访问三种方法

    HOSt ip is not allowed to connect to this MySql server 报错:1130-host ... is not allowed to connect to ...

  8. 解决Navicat 报错:1130-host ... is not allowed to connect to this MySql server,MySQL不允许从远程访问的方法

    1. 改表法. 可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 " ...

  9. Android 手机上安装并运行 Ubuntu 12.04

    ubuntu.sh脚本的原地址变动了,导致下载不了,现在更新了网盘地址.小技巧:遇到一些下载失效的时候可以试一试p2p下载工具(如 easyMule.迅雷等)试一试,说不定有人分享过~* —————— ...

随机推荐

  1. How To Use PostgreSQL with Your Ruby on Rails Application on Ubuntu 14.04

    How To Use PostgreSQL with Your Ruby on Rails Application on Ubuntu 14.04 链接来自于:https://www.digitalo ...

  2. PHP导出excel word的代码

    php导出为word原理 一般,有2种方法可以导出doc文档,一种是使用com,并且作为php的一个扩展库安装到服务器上,然后创建一个com,调用它的方法.安装过office的服务器可以调用一个叫wo ...

  3. mysql笔试题大餐---2、exists加一些查询

    mysql笔试题大餐---2.exists加一些查询 一.总结 一句话总结: 实践:我之前的mysql真的学的太浅了,这种情况下,依据实践(做题)才是唯一能把它学好的方式 1.MySQL中EXISTS ...

  4. Dubbo入门到精通学习笔记(三):持续集成管理平台之SVN版本管理系统的安装和使用

    文章目录 持续集成管理平台介绍 持续集成介绍 持续集成管理平台的组成 持续集成实践介绍 即将学习 SVN版本管理系统的安装 安装 Subversion + Apache 安装 jsvnadmin 简单 ...

  5. 内存Zone中的pageset成员分析

    1: struct per_cpu_pageset __percpu *pageset; 首先,分析一个函数,__free_pages,这个函数是Buddy System提供的API接口函数,用于翻译 ...

  6. PXE装机

    支持 centOS 6 支持 PXE 装机的网卡必须自带 ROM(非意识性存储器)存储内容包括:DHCP 客户端,TFTP 客户端,PXE 协议客户端,将网卡设置第一启动项. DHCP:自动分配 IP ...

  7. ajax中的onload和readychange区别

    先补个知识点: readyState 状态码: 0:请求未初始化 1:服务器连接已建立 2:请求已接受 3:请求处理中 4:请求已完成,且响应已就绪 HTTP 状态码: 200 - 服务器成功返回网页 ...

  8. k小子串 SPOJ - SUBLEX 2

    题意: 求字典序第K大的子串 题解: 先求出后缀自动机对应节点 // 该节点后面所形成的自字符串的总数 然后直接模拟即可 #include <set> #include <map&g ...

  9. 监控数据库SqlServer

    监控数据库的连接数select COUNT( * ) from master.dbo.sysprocesses select COUNT( * ) from master.dbo.sysprocess ...

  10. Linux 进程间通信 有名管道(fifo)

    有名管道特点: 1)无名管道只能用于具有亲缘关系的进程之间,这就限制了无名管道的使用范围 2)有名管道可以使互不相关的两个进程互相通信. 3)有名管道可以通过路径名来指出,并且在文件系统中可见,但内容 ...