Use RPM to install mysql5.6 (simple installation experiment use)

Source: Internet
Author: User
Tags sha1

  1. [Email protected] mysql]# CD/USR
  2. [[email protected] mysql]# mkdir MySQL
  3. [[Email protected] mysql]# CD MySQL
  4. [Email protected] mysql]# wget https://cdn.mysql.com//downloads/mysql-5.6/mysql-5.6.36-1.el7.x86_64. Rpm-bundle.tar
  5. [Email protected] mysql]# TAR-XF Mysql-5.6.36-1.el7.x86_64.rpm-bundle.tar
  6. [[email protected] mysql]# ls
  7. Mysql-5.6.36-1.el7.x86_64.rpm-bundle.tar mysql-devel-5.6.36-1.el7.x86_64.rpm MySQL-server-5.6.36-1.el7.x86_64. RPM mysql-shared-compat-5.6.36-1.el7.x86_64.rpm
  8. mysql-client-5.6.36-1.el7.x86_64.rpm mysql-embedded-5.6.36-1.el7.x86_64.rpm mysql-shared-5.6.36-1.el7.x86_64.rpm mysql-test-5.6.36-1.el7.x86_64.rpm
  9. [Email protected] mysql]# rmp-i mysql-devel-5.6.36-1.el7.x86_64.rpm
  10. [Email protected] mysql]# rmp-i mysql-client-5.6.36-1.el7.x86_64.rpm
  11. [Email protected] mysql]# RPM-IVH mysql-server-5.6.36-1.el7.x86_64.rpm
  12. Warning: mysql-server-5.6.36-1.el7.x86_64.rpm: Head V3 dsa/sha1 Signature, key ID 5072e1f5:nokey
  13. In preparation ... ################################# [100%]
  14. File/usr/share/mysql/charsets/readme from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from package m Ariadb-libs-1:5.5.35-3.el7.x86_64
  15. File/usr/share/mysql/czech/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from package Mariadb-libs-1:5.5.35-3.el7.x86_64
  16. File/usr/share/mysql/danish/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  17. File/usr/share/mysql/dutch/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from package Mariadb-libs-1:5.5.35-3.el7.x86_64
  18. File/usr/share/mysql/english/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  19. File/usr/share/mysql/estonian/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  20. File/usr/share/mysql/french/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  21. File/usr/share/mysql/german/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  22. File/usr/share/mysql/greek/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from package Mariadb-libs-1:5.5.35-3.el7.x86_64
  23. File/usr/share/mysql/hungarian/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  24. File/usr/share/mysql/italian/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  25. File/usr/share/mysql/japanese/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  26. File/usr/share/mysql/korean/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  27. File/usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  28. File/usr/share/mysql/norwegian/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  29. File/usr/share/mysql/polish/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  30. File/usr/share/mysql/portuguese/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  31. File/usr/share/mysql/romanian/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  32. File/usr/share/mysql/russian/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  33. File/usr/share/mysql/serbian/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  34. File/usr/share/mysql/slovak/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  35. File/usr/share/mysql/spanish/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  36. File/usr/share/mysql/swedish/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  37. File/usr/share/mysql/ukrainian/errmsg.sys from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  38. File/usr/share/mysql/charsets/index.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  39. File/usr/share/mysql/charsets/armscii8.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  40. File/usr/share/mysql/charsets/ascii.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  41. File/usr/share/mysql/charsets/cp1250.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  42. File/usr/share/mysql/charsets/cp1251.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  43. File/usr/share/mysql/charsets/cp1256.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  44. File/usr/share/mysql/charsets/cp1257.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  45. File/usr/share/mysql/charsets/cp850.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  46. File/usr/share/mysql/charsets/cp852.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  47. File/usr/share/mysql/charsets/cp866.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  48. File/usr/share/mysql/charsets/dec8.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  49. File/usr/share/mysql/charsets/geostd8.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  50. File/usr/share/mysql/charsets/greek.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  51. File/usr/share/mysql/charsets/hebrew.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  52. File/usr/share/mysql/charsets/hp8.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from package Mariadb-libs-1:5.5.35-3.el7.x86_64
  53. File/usr/share/mysql/charsets/keybcs2.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  54. File/usr/share/mysql/charsets/koi8r.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  55. File/usr/share/mysql/charsets/koi8u.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  56. File/usr/share/mysql/charsets/latin1.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  57. File/usr/share/mysql/charsets/latin2.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  58. File/usr/share/mysql/charsets/latin5.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  59. File/usr/share/mysql/charsets/latin7.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  60. File/usr/share/mysql/charsets/macce.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  61. File/usr/share/mysql/charsets/macroman.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  62. File/usr/share/mysql/charsets/swe7.xml from install of mysql-server-5.6.36-1.el7.x86_64 conflicts with file from Package mariadb-libs-1:5.5.35-3.el7.x86_64
  63. The conflict removed mariadb-libs-1:5.5.35-3.el7.x86_64
  64. [Email protected] mysql]# rpm-e mariadb-libs-1:5.5.35-3.el7.x86_64
  65. Error: Dependency detection failed:
  66. libmysqlclient.so.18 () (64bit) was (installed) postfix-2:2.10.1-6.el7.x86_64 required
  67. libmysqlclient.so.18 (libmysqlclient_18) (64bit) was (installed) postfix-2:2.10.1-6.el7.x86_64 needed
  68. [Email protected] mysql]# rpm-e--nodeps mariadb-libs-1:5.5.35-3.el7.x86_64
  69. [Email protected] mysql]# RPM-IVH mysql-server-5.6.36-1.el7.x86_64.rpm
  70. Warning: mysql-server-5.6.36-1.el7.x86_64.rpm: Head V3 dsa/sha1 Signature, key ID 5072e1f5:nokey
  71. In preparation ... ################################# [100%]
  72. Upgrading/installing ...
  73. 1:mysql-server-5.6.36-1.el7 ################################# [100%]
  74. Warning: User MySQL does not exist-use root
  75. Warning: Group MySQL does not exist-use root
  76. Warning: User MySQL does not exist-use root
  77. Warning: Group MySQL does not exist-use root
  78. FATAL Error:please Install the following Perl modules before executing/usr/bin/mysql_install_db:
  79. Data::D umper
  80. Resolve the error above
  81. [email protected] mysql]# Yum install-y perl perl-devel
  82. Unloading load
  83. [Email protected] mysql]# rpm-e mysql-server-5.6.36-1.el7.x86_64
  84. No error.
  85. [Email protected] mysql]# RPM-IVH mysql-client-5.6.36-1.el7.x86_64.rpm
  86. Warning: mysql-client-5.6.36-1.el7.x86_64.rpm: Head V3 dsa/sha1 Signature, key ID 5072e1f5:nokey
  87. In preparation ... ################################# [100%]
  88. Upgrading/installing ...
  89. 1:mysql-client-5.6.36-1.el7 ################################# [100%]
  90. Start error
  91. [[Email protected] mysql]# service MySQL start
  92. Starting MySQL. error! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
  93. Online to see why this is needed.
  94. [email protected] mysql]# Yum install-y perl-data-dumper
  95. or an error.
  96. [[Email protected] mysql]# service MySQL start
  97. Starting MySQL. error! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
  98. After you do this, you don't get an error. This is a step that must be installed after installing the system table don't know why not take this step in rpm
  99. [Email protected] mysql]# mysql_install_db--user=mysql--basedir=/usr/--ldata=/var/lib/mysql/
  100. Startup success
  101. [[Email protected] mysql]# service MySQL start
  102. Starting MySQL. success!
  103. Client connections
  104. [[email protected] mysql]# MySQL
  105. Welcome to the MySQL Monitor. Commands End With; or \g.
  106. Your MySQL Connection ID is 1
  107. Server version:5.6.36 MySQL Community Server (GPL)
  108. Copyright (c), Oracle and/or its affiliates. All rights reserved.
  109. Oracle is a registered trademark of the Oracle Corporation and/or its
  110. Affiliates. Other names trademarks of their respective
  111. Owners.
  112. Type ' help ', ' or ' \h ' for help . Type ' \c ' to clear the current input statement.
  113. Mysql> Show databases
  114. ;
  115. +--------------------+
  116. | Database |
  117. +--------------------+
  118. | Information_schema |
  119. | MySQL |
  120. | Performance_schema |
  121. | Test |
  122. +--------------------+
  123. 4 rows in Set (0.01 sec)
  124. Mysql> quit
  125. Bye

Use RPM to install mysql5.6 (simple installation experiment use)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.