CentOS 6.4 mysql rpm offline Install "Memo"

Source: Internet
Author: User
Tags iptables mysql command line

Use RPM's installation package for MySQL installation in offline mode, only as a memo

    • Preparatory work:

 Download MySQL offline RPM installation package (not shown here, get ready to do Demo)

  

    • Uninstall and clean up the remnants of MySQL installation and uninstallation before

1, detect the native installation of MySQL and uninstall

rpm-qa| grep -I. mysql

One of the Noarch is the source address package, not the same as the installation

2, as shown, the system has been installed in MySQL, uninstall it:

Yum Remove MySQL

Then perform the first step again to see if there is an installed MySQL presence, and if so, you can directly add Yum remove plus the package name you just found to uninstall

3, check whether the/var/lib/mysql folder exists, if there is, please delete, which contains MySQL residue database, if not deleted, the new installation of MySQL will not create a new database

If there is, delete

RM -rf/var/lib/mysql
    • Install MySQL

1. Download the RPM package to CentOS before uploading and install the server first.

RPM-IVH mysql-community-server-5.6. -2. el6.i686.rpm

is normal installation, please ignore the following problems

1.1 There may be problems , such as the situation, I was very tangled up a good while, and finally the Yum install add the package name is not installed, it is very strange how much traffic is installed ... The original package said 215M, the actual I this show less than 5M ... It's weird.

2, then should install client side, but I this reported the dependence is missing, let me first load other. On my installation method:

RPM-IVH mysql-community-common-5.6. 2-ivh mysql-community-libs-5.6. 2. el6.i686.rpm  -ivh mysql-community-client-5.6.  -2. el6.i686.rpm

3. After the installation is complete, start the MySQL service:

#别问我为什么加d, it may be a different version service mysqld restart

4. Modify the default password:

#-u behind is the user name, behind the root is the password, as appropriate, modify the 'root'

5. Open the MySQL command line:

#其中--uroot-p

6, Remote connection authorization (only local use can not be set):

' Root '@'%'root' with GRANT OPTION;

7. Use Navicat to connect to the MySQL experiment in the virtual machine:

8, if the 7th step appeared

Please turn off the firewall in CentOS and temporarily close the code:

Shutdown Firewall command: Service iptables stop permanently shuts down the firewall: chkconfig iptables off

The tutorial ends.

CentOS 6.4 mysql rpm offline Install "Memo"

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.