Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sensui7's avatar

How to change the default settings of mysql in Homestead?

I want to change the default database collate of mysql in Homestead, but I don't know where the setting files when I use vagrant.

0 likes
3 replies
ohffs's avatar

Do you mean the location of the my.cnf file? It's probably in /etc/mysql/.

turganbay's avatar

How to change the default settings of mysql in Homestead?

mattsplat's avatar

The config file is located at /etc/mysql/mysql.conf.d/mysqld.cnf. After changing restart mysql with sudo service mysql restart

Please or to participate in this conversation.