Can I remove /etc/mysql/conf.d/my.cnf

I don’t feel comfortable to put plain text database password on a file.

Is it safe to remove the password in the following file and won’t affect other EasyEngine functions? /etc/mysql/conf.d/my.cnf

If not, what functions would be affected?

If this is not recommended way, how to change the path of my.conf file above to other customized path?

If you remove the password from this file it won’t be able to create and install WP sites automatically anymore.

No big deal, uh?

Can we change the path of this file?

No, AFAIK.

This might be a bit late but having a plaintext password is not really a security risk as long as you have the right file permisions on the file so as to prevent unauthorised access. If you have the right permisions on that file and a person gains access then the password in that file would be the least of your problems

1 Like