basedir cannot be a symlink
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Fix Released
|
Medium
|
EvgeniyPatlan | |||
5.6 |
Fix Released
|
Medium
|
EvgeniyPatlan | |||
5.7 |
Fix Released
|
Medium
|
EvgeniyPatlan |
Bug Description
From version 5.7.14-8 it is not possible to configure basedir to a simlink. The changelog mentions:
Implemented restrictions on symlinked files (error_log, pid_file) that can’t be used with mysqld_safe. Bug fixed #1624449.
but there is no mention to the basedir parameter in general. It this behaviour expected? If the whole basedir is a simlink, it won't start because some of those restricted files are there?
localhost> cat /etc/my.cnf | grep basedir
basedir=
localhost> cd /usr/local/
localhost> sudo unlink mysql
localhost> sudo ln -s /mysql/
localhost> /usr/local/
Starting MySQL (Percona Server). SUCCESS!
localhost> /usr/local/
Shutting down MySQL (Percona Server).. SUCCESS!
localhost> sudo ln -s /mysql/
localhost> /usr/local/
Starting MySQL (Percona Server). ERROR! The server quit without updating PID file (/usr/local/
localhost> cat /etc/my.cnf | grep basedir
basedir=
localhost> /usr/local/
Starting MySQL (Percona Server). SUCCESS!
localhost> /usr/local/
Shutting down MySQL (Percona Server).. SUCCESS!
localhost> sudo unlink mysql
localhost> sudo ln -s /mysql/
localhost> /usr/local/
Starting MySQL (Percona Server). SUCCESS!
localhost> /usr/local/
Shutting down MySQL (Percona Server).. SUCCESS!
localhost> cat /etc/my.cnf | grep basedir
basedir=
localhost> /usr/local/
Starting MySQL (Percona Server). mysqld_safe ld_preload libraries can only be loaded from system directories (/usr/lib64, /usr/lib, /usr/local/
ERROR! The server quit without updating PID file (/usr/local/
Changed in percona-server: | |
status: | New → Confirmed |
tags: | added: pkg |
tags: | added: regression |
Changed in percona-server: | |
status: | Triaged → New |
Percona-specific, not repeatable with upstream