There is no mysqld problem after installing MySQL with Yum

Source: Internet
Author: User

Install MySQL installation database with command Yum in CentOS, but run mysqld to start MySQL when you are finished, you can not find it, through Find/| grep Mysqld also did not find the directory of Mysqld, later on Google search under, just know with Yum installation time MySQL also has three parameters.

Yum installs MySQL, only the MySQL client is installed, and if you install only this step, you will find that mysqld is not found.

Yum installs mysql-server to install the MySQL daemon and, of course, a mysql-devel.

After loading, there is a mysqld.

The steps are as follows:

[Plain]View PlainCopy
  1. Yum install MySQL
  2. Yum Install Mysql-server
  3. Yum Install Mysql-devel
  4. Chgrp-r Mysql/var/lib/mysql
  5. Chmod-r 770/var/lib/mysql
  6. Service mysqld Start
  7. To start mysqld at boot time with to copy
  8. Support-files/mysql.server to the right place for your system
  9. REMEMBER to SET A PASSWORD for the MySQL root USER!
  10. To does so, start the server, then issue the following commands:
  11. /usr/bin/mysqladmin-u root password ' new-password '
  12. /usr/bin/mysqladmin-u root-h lamp.org password ' new-password '
  13. Alternatively you can run:
  14. /usr/bin/mysql_secure_installation
  15. Which would also give you the option of removing the test
  16. Databases and anonymous user created by default. This is
  17. Strongly recommended for production servers.
  18. See the Manual for more instructions.
  19. You can start the MySQL daemon with:
  20. CD/USR; /usr/bin/mysqld_safe &
  21. You can test the MySQL daemon with mysql-test-run.pl
  22. CD mysql-test; Perl mysql-test-run.pl
  23. Problems with The/usr/bin/mysqlbug script!
  24. The latest information about MySQL was available on the Web at
  25. Http://www.mysql.com
  26. Support for MySQL by buying support/licenses at Http://shop.mysql.comz


Transferred from: http://www.magentonotes.com/centos-yum-install-mysql-and-mysqld.html

There is no mysqld problem after installing MySQL with Yum

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.