MYSQL service installation summary _ MySQL

Source: Internet
Author: User
MYSQL service installation summary bitsCN.com


MYSQL service installation summary

System Environment Information

CentOS release 6.3 (Final)

VMware®Workstation 9.0.0 build-812388

Rpm installation package preparation

1. Copy the following installation package from the CD to the specified directory.

2. you can also download the file from the RPM resource website to your local environment.

Http://rpmfind.net/linux/

Perl-DBI-1.609-4.el6.i686.rpm

Mysql-libs-5.1.61-4.el6.i686.rpm

Mysql-5.1.61-4.el6.i686.rpm

Perl-DBD-MySQL-4.013-3.el6.i686.rpm

Mysql-server-5.1.61-4.el6.i686.rpm

Directory name

/Usr/dev/mysql

Remove the original MYSQL service

See the MYSQL service removal document.
Http: // database/201211/165448 .html

Procedure

# Cd/usr/dev

# Rpm-ivh perl-DBI-1.609-4.el6.i686.rpm

# Rpm-ivh mysql-libs-5.1.61-4.el6.i686.rpm

# Rpm-ivh mysql-5.1.61-4.el6.i686.rpm

# Rpm-ivh perl-DBD-MySQL-4.013-3.el6.i686.rpm

# Rpm-ivh mysql-server-5.1.61-4.el6.i686.rpm

#/Usr/bin/mysql_install_db -- user = mysql

#/Usr/bin/mysqld_safe &

#/Etc/init. d/mysqld status

Remarks

Command 7: initialize the MYSQL database. This command is used to initialize the mysql database, that is, to create the/var/lib/mysql directory.

Command 8: Start the MYSQL service

Command 9 View MYSQL startup status

After the command is executed 7, the following information is displayed:

========================================================== ======================

Installing MySQL system tables...

OK

Filling help tables...

OK

To start mysqld at boot time you have to copy

Support-files/mysql. server to the right place for your system

Please remember to set a password for the MySQL root USER!

To do so, start the server, then issue the following commands:

/Usr/bin/mysqladmin-u root password 'new-password'

/Usr/bin/mysqladmin-u root-h localhost. localdomain password 'new-password'

Alternatively you can run:

/Usr/bin/mysql_secure_installation

Which will also give you the option of removing the test

Databases and anonymous user created by default. This is

Stronugly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon:

Cd/usr;/usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

Mysql-test-run.pl for cd/usr/mysql-test; perl

Please report any problems with the/usr/bin/mysqlbug script!

========================================================== ==========

After the command 8 is executed, the following information is displayed:

========================================================== ==========

Mysqld_safe Logging to '/var/log/mysqld. log '.

Mysqld_safe Starting mysqld daemon with databases from/var/lib/mysql

========================================================== ==========

After the command 9 is executed, the following information is displayed:

========================================================== ==========

Mysqld (pid 4200) is running...

========================================================== ==========

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.