Change MySQL default character set to UTF-8 in my.cnf?


To change MySQL default character set to UTF-8 in my.cnf, firstly reach the location of my.cnf file.

The following is the screenshot of “my.cnf” file. Firstly, open the C: directory and the “Program Data” folder −

Now, click on “MySQL” folder −

Now, click the MySQL Server 8.0 folder and open it −

After opening MySQL Server 8.0, you will get “my.cnf” file location.

After opening my.cnf file, you will get the character-set. Open the file and the following contens are visible −

Now you can change the character-set to utf8.

Updated on: 30-Jul-2019

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements