There is no mysqld problem after mysql is installed with yum

Source: Internet
Author: User

Run the yum install mysql command in Centos to install the database. After installation, the system prompts that the database cannot be found when running mysqld to start mysql. The directory of mysqld cannot be found through find/| grep mysqld, then I searched on Google to find out that mysql had three parameters during yum installation.

Yum install mysql, only the mysql client is installed. If you only install this step, you will find that mysqld cannot be found.

Yum install mysql-server to install the mysql service background program. Of course, there is also a MySQL-devel.

After installation, mysqld will exist.

The procedure is as follows:

yum install mysqlyum install mysql-serveryum install mysql-develchgrp -R mysql /var/lib/mysqlchmod -R 770 /var/lib/mysqlservice mysqld start 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 LAMP.ORG 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 isstrongly recommended for production servers. 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 mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available on the web athttp://www.mysql.comSupport MySQL by buying support/licenses at http://shop.mysql.comz

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.