MySQL的启动方式

MySQL的启动方式

方式一:
[root@vast1 ~]# service mysql start
[root@vast1 ~]# ps -ef|grep mysql
root 41187 1 0 15:00 pts/3 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe –datadir=/data/mysql/mysql3306/data –pid-file=/data/mysql/mysql3306/data/mysql.pid
mysql 42119 41187 1 15:00 pts/3 00:00:00 /usr/local/mysql/bin/mysqld –basedir=/usr/local/mysql –datadir=/data/mysql/mysql3306/data –plugin-dir=/usr/local/mysql/lib/plugin –user=mysql –log-error=/data/mysql/mysql3306/data/error.log –open-files-limit=65535 –pid-file=/data/mysql/mysql3306/data/mysql.pid –socket=/tmp/mysql3306.sock –port=3306

方式二:
[root@vast1 ~]# mysqld –defaults-file=/data/mysql/mysql3306/my3306.cnf &
[root@vast1 ~]# ps -ef |grep mysql
mysql 42238 40968 4 15:03 pts/3 00:00:00 mysqld –defaults-file=/data/mysql/mysql3306/my3306.cnf

方式三:
[root@vast1 ~]# mysqld_safe –defaults-file=/data/mysql/mysql3306/my3306.cnf &
[root@vast1 data]# ps -ef|grep mysql
root 43298 40968 0 15:11 pts/3 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe
mysql 44204 43298 0 15:11 pts/3 00:00:00 /usr/local/mysql/bin/mysqld –basedir=/usr/local/mysql –datadir=/data/mysql/mysql3306/data –plugin-dir=/usr/local/mysql/lib/plugin –user=mysql –log-error=/data/mysql/mysql3306/data/error.log –open-files-limit=65535 –pid-file=/data/mysql/mysql3306/data/mysql.pid –socket=/tmp/mysql3306.sock –port=3306

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值