Heim >Datenbank >MySQL-Tutorial >linux下启动MYSQL服务器以及配置自启动命令_MySQL

linux下启动MYSQL服务器以及配置自启动命令_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:36:221276Durchsuche

bitsCN.com

linux下启动MYSQL服务器以及配置自启动命令

 

/usr/local/mysql/bin/mysqld_safe --user=mysql& 

 

注意MYSQL安装目录 

配置自启动 

 

通过vi /etc/rc.local 

 

常见命令 

 

#!/bin/sh 

# This script will be executed *after* all the other init scripts. 

# You can put your own initialization stuff in here if you don't 

# want to do the full Sys V style init stuff. 

 

touch /var/lock/subsys/local 

/usr/local/apache/bin/apachectl start 

/usr/local/mysql/bin/mysqld_safe --user=mysql & 

mount -t nfs 192.168.0.85:/var/www/html/cache /var/www/html/cache 

 

bitsCN.com
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn