Use RPM to install MySQL

Source: Internet
Author: User

Yum install ncurses-libs.i686 libstdc ++. i686 libgcc. i686

Http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libaio.so.1%28LIBAIO_0.1%29

Libaio library required

 

First, check whether MySQL has been installed in the system:
Rpm-Qa | grep MySQL

Mysql-server-Version. Rpm
MySQL service package (if you connect to the remote server, you do not need to install this package)
Mysql-client-Version. Rpm
Mysql client
Generally, you only need to install these two packages.

View the installation package information:

Shell>Rpm-qpl mysql-server-Version. Glibc23.i386. rpm

Install two packages:

 
Shell>Rpm-I mysql-server-Version. Glibc23.i386. rpmShell>Rpm-I mysql-client-Version. Glibc23.i386. rpm

To install only the client programs, install just the client RPM:

 
Shell>Rpm-I mysql-client-Version. Glibc23.i386. rpm
 
After installation, restart the computer and enter MySQL to start MySQL.
If the error "can't connect to local MySQL server through socket '/tmp/MySQL. Sock" is prompted, restart the computer.
 
After the installation is complete, you can use the mysqladmin command to change the initial password:



Mysqladmin-u Root Password 'new-passwd'
/Usr/bin/mysqladmin-u Root Password 'new-password'
/Usr/bin/mysqladmin-u root-H bogon password 'new-password'

Directory structure:

/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 installation
/usr/share/SQL-example

benchmarks

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.