MySQL in linux7 under SYSTEMD's related configuration

Source: Internet
Author: User
Tags mysql in

----

#Copyright (c), Oracle and/or its affiliates. All rights reserved.##This are free software, you can redistribute it and/or modify#it under the terms of the GNU general public License as published by#The free software Foundation; version 2 of the License.##distributed in the hope that it'll be useful,#But without any WARRANTY; without even the implied WARRANTY of#merchantability or FITNESS for A particular PURPOSE. See the#GNU general public License for more details.##You should has received a copy of the GNU general public License#along with the-program;#Foundation, Inc., Wuyi Franklin St, Fifth Floor, Boston, MA 02110-1301 USA##systemd service file for MySQL forking server#[Unit]description=MySQL serverdocumentation=man:mysqld (8) Documentation=http://dev.mysql.com/doc/refman/en/using-Systemd.htmlafter=Network.targetafter=Syslog.target[install]wantedby=multi-User.target[service]user=Mysqlgroup=Mysqltype=Forkingpidfile=/var/run/mysqld/Mysqld.pid#Disable service start and stop timeout logic of SYSTEMD for mysqld service.Timeoutsec=0#Execute pre and post scripts as rootpermissionsstartonly=true#Needed to create system tablesexecstartpre=/usr/bin/mysqld_pre_systemd#Start Main serviceExecstart=/usr/sbin/mysqld--daemonize--pid-file=/var/run/mysqld/mysqld.pid $MYSQLD _opts#Use this to switch malloc implementationenvironmentfile=-/etc/sysconfig/MySQL#sets Open_files_limitLimitnofile = 5000Restart=on-Failurerestartpreventexitstatus=1privatetmp=false

-----

MySQL in linux7 under SYSTEMD's related configuration

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.