微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

linux – 更改MySQL的启动参数

我需要从 MySQL启动参数中删除skip-networking

我在VPS上在Centos上的Linux上运行MysqL

有人可以告诉新手如何做到这一点?

我想要启动和停止MysqL服务器,我必须做这样的事情
/etc/init.d/MysqLd停止
/etc/init.d/MysqLd start

# ps -ef|grep 'MysqL'  
root     11331 20220  0 10:53 pts/0    00:00:00 grep MysqL  
root     32452     1  0 Apr02 ?        00:00:00 /bin/sh /usr/bin/MysqLd_safe --skip-grant-tables --skip-networking  
MysqL    32504 32452  0 Apr02 ?        00:00:18 /usr/libexec/MysqLd --basedir=/usr --datadir=/var/lib/MysqL --user=MysqL --pid-file=/var/run/MysqLd/MysqLd.pid --skip-external-locking --socket=/var/lib/MysqL/MysqL.sock --skip-grant-tables --skip-networking

解决方法

打开/etc/init.d/MysqLd脚本,找到–skip-networking参数并将其删除.

原文地址:https://www.jb51.cc/linux/398661.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐