Install MYSQL using YUM on CentOS 6.2

Source: Internet
Author: User

On CentOS 6.2, MYSQL is installed using YUM because XAMPP does not support 64-bit, so I still install MYSQL myself. Use the default yum. Www.2cto.com [plain] yes | yum install mysql-server and then run [plain] service mysqld start. There will be the following important output: www.2cto.com [plain] Initializing MySQL database: 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 USE R! 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 xxxxxx 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. se E 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.pl cd/usr/mysql-test; perl mysql-test-run.pl Please report any problems with the/usr/bin/mysqlbug script! [OK] Starting mysqld: [OK] You can see that this command initializes MYSQL and installs the MYSQL System data table. If this process does not exist, it will fail to be forcibly started using the mysqld_safe start command.
 

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.