rpm method to install MySQL in Centos7

Source: Internet
Author: User
Tags mysql in

1install MySQL server first download good mysql RPM installation package using RPM command installation: RPM-IVH mysql-server-5.1. the-1. glibc23.i386.rpm command Explanation: I:install V: Show Details H: Show progress bar issue: Display software Installation vs. native preinstalled MySQL conflicts: File/usr/share/mysql/romanian/errmsg.sys fromInstall of mysql-server-5.1. the-1. glibc23.i386 conflicts with File fromPackage mysql-libs-5.1. in-1. el6.i686 Solution:1first find out the package rpm-qa |grep MySQL (q:query a:all)2. Using RPM-e erases this package, but prompts the following dependency error to indicate that the other software relies on the package but can use brute force, remove dependency Delete: Use command: rpm-e mysql-libs-5.1.66-2.el6_3.i686--nodepsre-execute the install MySQL command: Install server successfully! Show that the server has been successfully started2. Install client Side Use command: RPM-IVH mysql-client-5.1. the-1. glibc23.i386.rpm3. Use the command to initialize the MySQL database (user name and password settings) to see the information that was alerted during the installation, mainly to tell us how to initialize the database: REMEMBER to SET A PASSWORD for the MySQL root USER! to DoSo, start the server and then issue the following commands:/usr/bin/mysqladmin-u root password 'New-Password '/usr/bin/mysqladmin-u root-h itcast01 Password 'New-Password ' Alternatively you can run:/usr/bin/Mysql_secure_installation Enter the following command to initialize MySQL:/usr/bin/mysql_secure_installation Follow the prompts to install: Enter Current password forRoot (enter forNone): Enter Set root password? [y/N] Input Y new password: Enter a new password Re-enterNewPassword: Lose the password again. Remove Anonymous Users? [y/N] Y Disallow root login remotely? [y/N] n Remove test database and access to it? [y/N] Y Reload privilege Tables now? [y/N] y4. Log in to MySQL using a client-uroot-p Enter password to login successfully!

Transferred from: http://blog.csdn.net/u014726937/article/details/52142048

rpm method to install MySQL in Centos7

Related Article

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.