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
- Yum install MySQL
- Yum Install Mysql-server
- Yum Install Mysql-devel
- Chgrp-r Mysql/var/lib/mysql
- Chmod-r 770/var/lib/mysql
- Service mysqld Start
- To start mysqld at boot time with to copy
- Support-files/mysql.server to the right place for your system
- REMEMBER to SET A PASSWORD for the MySQL root USER!
- To does 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 would also give you the option of removing the test
- Databases and anonymous user created by default. This is
- Strongly 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.pl
- CD mysql-test; Perl mysql-test-run.pl
- Problems with The/usr/bin/mysqlbug script!
- The latest information about MySQL was available on the Web at
- Http://www.mysql.com
- 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