Redhat9 install its own mysql_MySQL

Source: Internet
Author: User
Install mysql Redhat in redhat9

BitsCN.com


Redhat9 install its own mysql

1. put the required CD into the system, and put the mysql rpm package in the second CD, and then mount it.

Java code

Monut/mnt/cdrom

2. enter the RPMS location of the disc

Java code

Cd/mnt/cdrom/RedHat/RPMS

3. install the required rpm Package

Java code

Rpm-ivh perl-CGI-2.81-88.i386.rpm

Rpm-ivh perl-DBI-1.32-5.i386.rpm

Rpm-ivh mysql-3.23.54a-11.i386.rpm perl-DBD-MySQL-2.1021-3.i386.rpm

Rpm-ivh mysql-server-3.23.54a-11.i386.rpm

4. start the corresponding mysql service and check the corresponding process

Note: You can use either of the following methods to start a service:

(1) use service mysqld start // mysqld as the mysql daemon. you can use it to start the corresponding service.

(2)/etc/init. d/mysqld start // use the script to start the Mysqld service

How can I check whether the corresponding Mysqld service is successfully started?

Java code

Service mysqld status // view the status command

5. check the location of the installation directory of Mysql and the location of log files.

Java code

Cat/etc/my. cnf // location where the RPM Package is installed

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.