MYSQL Service Installation Summary

Source: Internet
Author: User


MYSQL Service Installation Summary System Environment Information www.2cto.com CentOS release 6.3 (Final) VMware®Workstation 9.0.0 build- 812388rpm installation package preparation 1 copy the following installation package from the CD to the specified directory 2 You can also download from the RPM resource site to the local environment http://rpmfind.net/linux/perl-DBI-1.609-4.el6.i686.rpmmysql-libs-5.1.61-4.el6.i686.rpmmysql-5.1.61-4.el6.i686.rpmperl-DBD-MySQL-4.013-3.el6.i686.rpmmysql-server-5.1.61-4.el6.i686.rpm directory name/usr/dev/mysql unload the original MYSQL Service
See the MYSQL Service removal document.
Http://www.bkjia.com/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 meaning initialize MYSQL database this command is used to initialize mysql database, that is, create/var/lib/mysql directory command 8 meaning start MYSQL service command 9 meaning view MYSQL start The following information is displayed after the command is executed in the dynamic status: ====================================== Installing MySQL system tables... OKFilling help tables... OK To start mysqld at boot time you have to copysupport-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 testdatabases and anonymous user created by default. this isstronugly recommended for production s Ervers. see the manual for more instructions. you can start the MySQL daemon with: cd/usr;/usr/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.plcd/usr/mysql-test; perl mysql-test-run.pl Please report any problems with the/usr/bin/mysqlbug script! ========================================================== ========= The following information is displayed after the command 8 is executed ========================== ================================ mysqld_safe Logging to '/var/log/mysqld. log '. mysqld_safe Starting mysqld daemon with databases from/var/lib/mysql ==================== ================================== the following information is displayed after the command 9 is executed ============================================ mysqld (pid 4200) is running... ========================================================== ==========

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.