zoukankan      html  css  js  c++  java
  • fedora23上安装和运行MySQL server (MySQL 已经被MariaDB取代)

    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.   
    16. Transaction Summary  
    17. ==============================================================================================================================================  
    18. Install  6 Packages  
    19.   
    20. Total download size: 20 M  
    21. Installed size: 94 M  
    22. Is this ok [y/N]: y  
    23. Downloading Packages:  
    24. (1/6): mariadb-errmsg-10.0.21-1.fc23.x86_64.rpm                                                               134 kB/s | 199 kB     00:01      
    25. (2/6): perl-DBD-MySQL-4.033-1.fc23.x86_64.rpm                                                                 145 kB/s | 153 kB     00:01      
    26. (3/6): perl-DBI-1.633-6.fc23.x86_64.rpm                                                                       212 kB/s | 727 kB     00:03      
    27. [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 []  
    28. (4/6): mariadb-libs-10.0.21-1.fc23.x86_64.rpm                                                                 438 kB/s | 637 kB     00:01      
    29. (5/6): perl-Math-BigInt-1.9997-350.fc23.noarch.rpm                                                            243 kB/s | 188 kB     00:00      
    30. (6/6): mariadb-server-10.0.21-1.fc23.x86_64.rpm                                                               1.3 MB/s |  18 MB     00:14      
    31. ----------------------------------------------------------------------------------------------------------------------------------------------  
    32. Total                                                                                                         1.2 MB/s |  20 MB     00:17       
    33. Running transaction check  
    34. Transaction check succeeded.  
    35. Running transaction test  
    36. Transaction test succeeded.  
    37. Running transaction  
    38.   Installing  : perl-Math-BigInt-1.9997-350.fc23.noarch                                                                                   1/6   
    39.   Installing  : perl-DBI-1.633-6.fc23.x86_64                                                                                              2/6   
    40.   Installing  : mariadb-libs-1:10.0.21-1.fc23.x86_64                                                                                      3/6   
    41.   Installing  : perl-DBD-MySQL-4.033-1.fc23.x86_64                                                                                        4/6   
    42.   Installing  : mariadb-errmsg-1:10.0.21-1.fc23.x86_64                                                                                    5/6   
    43.   Installing  : mariadb-server-1:10.0.21-1.fc23.x86_64                                                                                    6/6   
    44.   Verifying   : mariadb-server-1:10.0.21-1.fc23.x86_64                                                                                    1/6   
    45.   Verifying   : perl-DBI-1.633-6.fc23.x86_64                                                                                              2/6   
    46.   Verifying   : mariadb-errmsg-1:10.0.21-1.fc23.x86_64                                                                                    3/6   
    47.   Verifying   : perl-DBD-MySQL-4.033-1.fc23.x86_64                                                                                        4/6   
    48.   Verifying   : mariadb-libs-1:10.0.21-1.fc23.x86_64                                                                                      5/6   
    49.   Verifying   : perl-Math-BigInt-1.9997-350.fc23.noarch                                                                                   6/6   
    50.   
    51. Installed:  
    52.   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           
    53.   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          
    54.   
    55. Complete!  
    56.   
    57. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
    58.   
    59. [root@localhost kemin]# systemctl start mariadb.service  
    60. [root@localhost kemin]# systemctl enable mariadb.service  
    61. Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.  
    62.               
    63. [root@localhost kemin]# mysql_secure_installation   
    64.   
    65. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB  
    66.       SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!  
    67.   
    68. In order to log into MariaDB to secure it, we'll need the current  
    69. password for the root user.  If you've just installed MariaDB, and  
    70. you haven't set the root password yet, the password will be blank,  
    71. so you should just press enter here.  
    72.   
    73. Enter current password for root (enter for none):   
    74. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)  
    75.   
    76. Setting the root password ensures that nobody can log into the MariaDB  
    77. root user without the proper authorisation.  
    78.   
    79. Set root password? [Y/n] Y  
    80. New password:   
    81. Re-enter new password:   
    82. Password updated successfully!  
    83. Reloading privilege tables..  
    84.  ... Success!  
    85.   
    86.   
    87. By default, a MariaDB installation has an anonymous user, allowing anyone  
    88. to log into MariaDB without having to have a user account created for  
    89. them.  This is intended only for testing, and to make the installation  
    90. go a bit smoother.  You should remove them before moving into a  
    91. production environment.  
    92.   
    93. Remove anonymous users? [Y/n] y  
    94.  ... Success!  
    95.   
    96. Normally, root should only be allowed to connect from 'localhost'.  This  
    97. ensures that someone cannot guess at the root password from the network.  
    98.   
    99. Disallow root login remotely? [Y/n] y  
    100.  ... Success!  
    101.   
    102. By default, MariaDB comes with a database named 'test' that anyone can  
    103. access.  This is also intended only for testing, and should be removed  
    104. before moving into a production environment.  
    105.   
    106. Remove test database and access to it? [Y/n] y  
    107.  - Dropping test database...  
    108.  ... Success!  
    109.  - Removing privileges on test database...  
    110.  ... Success!  
    111.   
    112. Reloading the privilege tables will ensure that all changes made so far  
    113. will take effect immediately.  
    114.   
    115. Reload privilege tables now? [Y/n] y  
    116.  ... Success!  
    117.   
    118. Cleaning up...  
    119.   
    120. All done!  If you've completed all of the above steps, your MariaDB  
    121. installation should now be secure.  
    122.   
    123. Thanks for using MariaDB!  
    124. [root@localhost kemin]#  
  • 相关阅读:
    input.file上传图片| FileReader h5新特性
    lua的luasocket程序
    nginx的proxy_set_header
    lua的table.sort
    lua的深拷贝和浅拷贝
    nginx的location匹配
    kong后台接口
    一些程序和工具
    lua的模式匹配
    php的一些语法
  • 原文地址:https://www.cnblogs.com/lvdongjie/p/6292760.html
Copyright © 2011-2022 走看看