How to modify my.cnf file

Hi, i hope your all well, i want to modify my.cnf file for increasing memory, but i cant find via puty
Screenshot_3

Try something like find / -iname my.cnf

Or, sorry, i thought you needed to find the file. Try using nano to edit it.

use any edit like

nano /etc/my.cnf

sorry @shoaibkk
but @iamrizwan already post the “empty” my.cnf

the question is
whhy /etc/my.cnf now empty ?
not like 2.1.2 several month ago…
( actually i find this 1 month ago and i fix it with cloud optimizer, but why must go cloud? )

You might actually be looking for /etc/mysql/my.cnf. Or the files in /etc/mysql/mariadb.conf.d.

Either way, use nano to edit them

HI, thanks for reply, but when i use nano, my files empty, showing like this…

nano 1
nano 2

i have want like this setting (these screen shorts is aapanel)


You could use this command to find your cnf files find /etc -iname *.cnf Then use nano on each of the files to see what is inside of them, and edit whichever one is appropriate.

But it seems like your files are not where they should be. I suggest you run the CyberPanel Upgrade script to fix whatever problems there might be in your installation. 02 - Upgrading CyberPanel - 01 - Install/Upgrade - Docs - CyberPanel Community