Step _ MySQL installation in Linux

Source: Internet
Author: User
Install MySQL in Linux

1. download the installation package (32-bit ):

MySQL-client-5.6.13-1.rhel5.i386.rpm

MySQL-server-5.6.13-1.rhel5.i386.rpm

2. Installation

Rpm-ivh MySQL-server-5.6.13-1.rhel5. I 386rpm-ivh MySQL-client-5.6.13-1.rhel5.i386

3. restart

4. run netstate-ntl to check whether Port 3306 is enabled.

5.

Mysqladmin-u root password '200'; mysql-u root-p123456

If mysql> is displayed, the installation and logon are successful!

But in step 5, there will always be errors. the error message is

ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: NO)

Solution:

/Etc/init. d/mysql stopmysqld_safe -- user = mysql -- skip-grant-tables -- skip-networking & mysql-u root mysqlmysql> UPDATE user SET Password = PASSWORD ('newpassword ') where USER = 'root'; mysql> flush privileges; mysql> quit/etc/init. d/mysql restartmysql-u root-pnewpassword

 

BitsCN.com

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.