Install mysql in linux6.2

Source: Internet
Author: User
Tags mysql commands

I installed mysql in linux6.2 for one day. I didn't expect it to take so long and it is related to my poor foundation. Now let's talk about the installation process. First, let's talk about the environment: rhel6.2 mysql5.1 in linux, a mysql-lib may have been installed by default, so we should first judge: rpm-qa | grep mysql if the command above cannot be found, you don't need to uninstall it. If it exists, You Need To uninstall it first, because this is not the rpm installation package, so I uninstalled it using yum: yum-y remove mysql * then you will see the uninstall process. After uninstalling, put the installation package you downloaded into the linux system, the installation package requires two, server and client, such as my MySQL-client-5.1.7-0.i386.rpm, MySQL-server-5.1.7-0.i386.rpm now start installation: rpm-ivh MySQL-server-5.1.7-0.i386.rpm if two 100% appears, the installation is successful. The rest is the start, but suddenly starting mysql error (which caused me to crash) I first thought of finding logs, but the log file was not created, crashed, and I kept searching online, after executing a command, everything is OK: mysqld_safe, after executing this command, it will be stuck there, and it will be done when a window is closed. Then in the execution:/etc/init. d/mysl start magic found success, and then in the installation of client rpm-ivh MySQL-client-5.1.7-0.i386.rpm if two 100% appears, it means the installation is successful. Run mysql. If you enter mysql, the installation is successful. The rest is to learn frequently used mysql commands.

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.