RedHatLinux6.1 install MySQL

Source: Internet
Author: User
Environment RedHatLinux6.1MySQL5.1.7 problems RedHatLinux6.1 prepare for installing MySQL before installation 1. Download resources: MySQL-server-5.1.7-0.i386.rpm, click here to download. MySQL-client-5.1.7-0.i386.rpm, click here to download. 2. log on to the system and check if MySQL3. copy the two installation files to yourself.

Environment RedHat Linux 6.1 MySQL 5.1.7 problem RedHat Linux 6.1 prepare before installing MySQL 1. Download resources: MySQL-server-5.1.7-0.i386.rpm, click here to download. MySQL-client-5.1.7-0.i386.rpm, click here to download. 2. log on to the system and check whether MySQL has been installed. 3. Copy the two installation files to yourself.

Environment

RedHat Linux 6.1 + MySQL 5.1.7

Problem

Install MySQL in RedHat Linux 6.1

Preparations before installation

1. Download resources:

MySQL-server-5.1.7-0.i386.rpm, click here to download.

MySQL-client-5.1.7-0.i386.rpm, click here to download.

2. log on to the system and check whether MySQL is installed.

3. Copy the two installation files to your own directory.

Formal Installation

1. Installation server, rpm-ivh MySQL-server-5.1.7-0.i386.rpm

The following information is displayed.

warning: MySQL-server-5.1.7-0.i386.rpmsignature: NOKEY, key ID 5072e1f5 Preparing...       ########################################### [100%] 1:MySQL-server       ########################################### [100%]


Check whether the installation is successful: ps-aux | grep "mysql"

2. Install the client, rpm-ivh MySQL-client-5.1.7-0.i386.rpm

The following information is displayed.

warning: MySQL-client-5.1.7-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 Preparing...    ########################################### [100%] 1:MySQL-client     ########################################### [100%]


3. log on to MySQL, mysql-uroot-p, and press Enter,

Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.1.7-standard Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>


4. Change the password, mysqladmin-u root password 'new-password'

Format: mysqladmin-u username-p old password new password such as mysqladmin-u root-p root (because there is no initial password, the old password is blank)


 

5. start, stop, and restart MySQL

Start: service mysqld start stop: service mysqld stop restart: service mysqld restart


References

Http://rq2-79.iteye.com/blog/175869

Http://www.jz123.cn/text/3035482.html

Http://www.jb51.net/ OS /RedHat/1262.html

@ Wentasy
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.