Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.5 - Fix for custom socket location on centos 7 (#1534825) #355

Merged
merged 1 commit into from
Feb 10, 2016

Conversation

tplavcic
Copy link
Member

BUG:
systemctl start mysqld fails with timeout if custom path for socket specified
https://bugs.launchpad.net/percona-server/+bug/1534825

TEST BUILD:
http://jenkins.percona.com/job/percona-server-5.5-redhat-binary/179/
http://jenkins.percona.com/job/percona-server-5.6-redhat-binary/64/

TEST:
DEFAULT SOCKET SPECIFIED

[vagrant@t-centos7-64 ~]$ cat /etc/my.cnf |grep socket
socket=/var/lib/mysql/mysql.sock

[vagrant@t-centos7-64 ~]$ sudo systemctl start mysql

[vagrant@t-centos7-64 ~]$ sudo systemctl status mysql
mysqld.service - MySQL Percona Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
   Active: active (running) since Sri 2016-02-10 08:38:07 CET; 6s ago
  Process: 3655 ExecStartPost=/usr/bin/mysql-systemd post (code=exited, status=0/SUCCESS)
  Process: 3623 ExecStartPre=/usr/bin/mysql-systemd pre (code=exited, status=0/SUCCESS)
 Main PID: 3653 (mysqld_safe)
   CGroup: /system.slice/mysqld.service
           ├─3653 /bin/sh /usr/bin/mysqld_safe
           └─3809 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.soc...

Vel 10 08:37:57 t-centos7-64 mysqld_safe[3653]: 160210 08:37:57 mysqld_safe Logging to '/var/log/mysqld.log'.
Vel 10 08:37:57 t-centos7-64 mysqld_safe[3653]: 160210 08:37:57 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Vel 10 08:38:07 t-centos7-64 systemd[1]: Started MySQL Percona Server.

CUSTOM SOCKET SPECIFIED

[vagrant@t-centos7-64 ~]$ sudo systemctl start mysql

[vagrant@t-centos7-64 ~]$ cat /etc/my.cnf |grep socket
socket=/tmp/mysql.sock

[vagrant@t-centos7-64 ~]$ sudo systemctl status mysql
mysqld.service - MySQL Percona Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
   Active: active (running) since Sri 2016-02-10 08:39:29 CET; 13s ago
  Process: 3889 ExecStartPost=/usr/bin/mysql-systemd post (code=exited, status=0/SUCCESS)
  Process: 3859 ExecStartPre=/usr/bin/mysql-systemd pre (code=exited, status=0/SUCCESS)
 Main PID: 3888 (mysqld_safe)
   CGroup: /system.slice/mysqld.service
           ├─3888 /bin/sh /usr/bin/mysqld_safe
           └─4044 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/tmp/mysql.sock

Vel 10 08:39:23 t-centos7-64 mysqld_safe[3888]: 160210 08:39:23 mysqld_safe Logging to '/var/log/mysqld.log'.
Vel 10 08:39:23 t-centos7-64 mysqld_safe[3888]: 160210 08:39:23 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Vel 10 08:39:29 t-centos7-64 systemd[1]: Started MySQL Percona Server.

NO SOCKET SPECIFIED

[vagrant@t-centos7-64 ~]$ cat /etc/my.cnf |grep socket

[vagrant@t-centos7-64 ~]$ sudo systemctl start mysql

[vagrant@t-centos7-64 ~]$ sudo systemctl status mysql
mysqld.service - MySQL Percona Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
   Active: active (running) since Sri 2016-02-10 08:41:12 CET; 6s ago
  Process: 4122 ExecStartPost=/usr/bin/mysql-systemd post (code=exited, status=0/SUCCESS)
  Process: 4092 ExecStartPre=/usr/bin/mysql-systemd pre (code=exited, status=0/SUCCESS)
 Main PID: 4121 (mysqld_safe)
   CGroup: /system.slice/mysqld.service
           ├─4121 /bin/sh /usr/bin/mysqld_safe
           └─4262 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid

Vel 10 08:41:07 t-centos7-64 mysqld_safe[4121]: 160210 08:41:07 mysqld_safe Logging to '/var/log/mysqld.log'.
Vel 10 08:41:07 t-centos7-64 mysqld_safe[4121]: 160210 08:41:07 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Vel 10 08:41:12 t-centos7-64 systemd[1]: Started MySQL Percona Server.

tplavcic added a commit that referenced this pull request Feb 10, 2016
5.5 - Fix for custom socket location on centos 7 (#1534825)
@tplavcic tplavcic merged commit 94575c6 into percona:5.5 Feb 10, 2016
@tplavcic tplavcic deleted the bug-1534825-5.5 branch April 7, 2016 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants