Su – MySQL switch user, display error: resource temporarily unavailable

The problem
Mysql> su -mysql -mysql>

su: failed to execute /bin/bash: Resource temporarily unavailable

To solve
/etc/securitymits. D ,
, <>> mysq. conf> code>, mysq.>f>

mysql soft nofile 131072
mysql hard nofile 131072
mysql soft nproc 65535
mysql hard nproc 65535

Limits. D overwrites the Limits.
oblem solved.
Information about the description file limits. Conf can look at this article:
https://blog.csdn.net/fanren224/article/details/79971359

Read More: