博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
(转)percona的安装、启动、停止
阅读量:4559 次
发布时间:2019-06-08

本文共 1460 字,大约阅读时间需要 4 分钟。

原文:https://blog.csdn.net/tanliqing2010/article/details/78758878

socket=/percona/3307/data/mysql.sock
[root@localhost ~]#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2. 定义一个`mysqld3307.service`文件
1
[root@localhost ~]# cat /usr/lib/systemd/system/mysqld3307.service
#
# Systemd service file for Percona Server
#
# # This service file is to start PS just with mysqld_safe
#
[Unit]
Description=MySQL Percona Server
After=network.target
After=syslog.target
[Install]
WantedBy=multi-user.target
Alias=mysql.service
[Service]
# Needed to create system tables etc.
ExecStartPre=/usr/bin/mysql_install_db --defaults-file=/root/my.cnf --user=mysql
# Start main service
ExecStart=/usr/bin/mysqld_safe --defaults-file=/root/my.cnf --user=mysql
# Don't signal startup success before a ping works
ExecStartPost=/usr/bin/mysqladmin --defaults-file=/root/my.cnf
# Give up if ping don't get an answer
TimeoutSec=600
Restart=always
PrivateTmp=false
[root@localhost ~]#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
3. 我们需要创建这些文件夹和文件
[root@localhost ~]# mkdir -p /percona/3307/{data,log,run}
[root@localhost ~]# touch /percona/3307/log/mysqld.log
[root@localhost ~]# chown -R mysql:mysql /percona/3307
[root@localhost ~]#
1
2
3
4
4. 使用systemctl启动percona服务
---------------------
作者:tanliqing2010
来源:CSDN
原文:https://blog.csdn.net/tanliqing2010/article/details/78758878
版权声明:本文为博主原创文章,转载请附上博文链接!

转载于:https://www.cnblogs.com/liujiacai/p/10332501.html

你可能感兴趣的文章
旋转图像
查看>>
字符串中的数字(字符串、循环)
查看>>
15.select into
查看>>
缓存-->Java中缓存的原理
查看>>
运行web项目端口占用问题
查看>>
Java Spring-IOC和DI
查看>>
【NOIP1999】【Luogu1015】回文数(高精度,模拟)
查看>>
Linux上安装Python3.5
查看>>
crt安装
查看>>
git切换分支报错:error: pathspec 'origin/XXX' did not match any file(s) known to git
查看>>
c++中static的用法详解
查看>>
转 我修改的注册表,但是程序运行起来,还是记着以前的
查看>>
图片轮播功能
查看>>
第六周小组作业:软件测试和评估
查看>>
linux Cacti监控服务器搭建
查看>>
debian(kali Linux) 安装net Core
查看>>
centos 7防火墙设置
查看>>
自定义进度条(圆形、横向进度条)
查看>>
spark-streaming-kafka采坑
查看>>
9.Mongodb与python交互
查看>>