Install mysql in CentOs Rpm (hands-on instruction) and centosrpm

Source: Internet
Author: User

Install mysql in CentOs Rpm (hands-on instruction) and centosrpm


First, upload the mysql-rpm package flashFXP required for rpm installation to/usr/local/

: Link: http://pan.baidu.com/s/1i3rb2Gt password: 5pk8


1: # file/sbin/init // check that the system is 32-bit or 64-bit. My 32-bit download of the 32-bit mysql-rpm package


2: # rpm-I MySQL-server-5.5.31-2.el6.i686.rpm // install Server 3: # mysqld_safe // start server 4: # netstat-nat | grep 3306 // check whether mysql is started through the port
5: # rpm-I MySQL-client-5.5.31-2.el6.i686.rpm // install client 6: # mysql_secure_installation set the root user password // press enter first, the default password is empty, set the password to 123456. There are a series of Y/N options. Note that this must be N. enable remote access.

7: # mysql-u root-p // press enter and enter the password to log on.

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.