I encountered the following error when installing the tokudb engine: ERROR: Percona Server is not running with jemalloc

created at 10-27-2021 views: 2

error

The following error is encountered when installing the tokudb engine:

Checking SELinux status...
FO: SELinux is disabled.

Checking if Percona Server is running with jemalloc enabled...

grep: /proc//environ: No such file or directory
ERROR: Percona Server is not running with jemalloc, please restart mysql service to enable it and then run this script...

Check the ps-admin script, and finally found that it is related to pid

318 PID_LOCATION=$(echo "${PID_LIST}"|grep pid_file|awk '{print $2}')
319 if [ $? -ne 0 ] || [ "${PID_LOCATION}" == "" ]; then
320 printf "ERROR: Pid file location unknown!\n";
321 exit 1
322 fi
323 PID_NUM=$(cat ${PID_LOCATION})

solution

After specifying pid-file in my.cnf and restarting mysql, ps-admin can run normally.

pid-file = /data/mysql/3306/mysqld.pid
created at:10-27-2021
edited at: 10-27-2021: