RPM Installation MySQL parsing

Source: Internet
Author: User
Tags mysql client

1. Check whether the installation of Mysql,grep-i indicates that the case is ignored when matching

#rpm-qa |grep-i MySQL

Mysql-libs-xxxx indicates that a MySQL library file has been installed

#rpm-E mysql-libs.xxx--nodeps to uninstall first, or overwrite error will occur. --nodeps ignores dependencies.

2. Install Mysql-server server side, pay attention to switch to root user

#rpm-IVH mysql-server.xxx

Once the installation is complete, the installation process automatically adds a MySQL group to Linux and MySQL users who belong to the MySQL group, which can be viewed by ID:

#id MySQL


After the MySQL server installation is complete, although the relevant files are configured, but do not automatically start the MYSQLD service, you need to start it yourself:

#service MySQL Start

#netstat-ANP |grep 3306


3. Install the MySQL client mysql-client

#rpm-IVH mysql-client.xxx

If the installation is successful, you should be able to run the MySQL command, note that the MYSQLD service must be turned on (mysql-server)


4.RPM installation mode file distribution

Directory

Contents of Directory

/usr/bin

Client Programs and Scripts

/usr/sbin

The MYSQLD server

/var/lib/mysql

Log files, databases

/usr/share/info

Manual in Info format

/usr/share/man

Unix manual Pages

/usr/include/mysql

Include (header) files

/usr/lib/mysql

Libraries

/usr/share/mysql

Miscellaneous support files, including error messages, character set files, sample configuration files, SQL for database I Nstallation

/usr/share/sql-bench

Benchmarks


RPM installation MySQL parsing

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.