How did I fix «[Warning] [MY-010140] [Server] Could not increase number of max_open_files to more than 10000 (request: 65535)» for MySQL in Ubuntu 20?

I solved it by analogy with How to fix the «Could not increase number of max_open_files to more than 1024» MySQL issue?

Step 1

Step 2

reboot

Step 3

Step 4

systemctl daemon-reload

Step 5

service mysql restart