Fedora16 mysql server startup

Source: Internet
Author: User
Fedora16 mysql
ServerStart

16:32:50 | category:

Linux/Unix | font size
Subscription

From Fedora16, ntsysv, chkconfig, and service are no longer recommended for Redhat, but new service management tools are recommended.Systemctl (seemingly powerful)

The comparison table uses apache/httpd as an example.
Task Old commands New command
Enable a service automatically Chkconfig -- level 3 httpd on
systemctl enable httpd.service
Disable Automatic startup of a service Chkconfig -- level 3 httpd off
systemctl disable httpd.service
Check service status Service httpd status
systemctl status httpd. Service (service details)
Systemctl is-active httpd. service (only show whether it is Active)
Show all started services (Who knows ?)
systemctl list-units --type=service
Start a service Service httpd start
systemctl start httpd.service

Stop a service Service httpd stop
systemctl stop httpd.service
Restart a service Service httpd restart
systemctl restart httpd.service

















Mysql installation:

Yum install mysql-server # install mysql and mysqlServerSystemctl start mysqld. service # start mysqlServerSystemctl enable mysqld. service # enable mysqlServerAutomatic Running
Mysqladmin-u root password ''# Set the root password to null

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.