
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
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.
- Related Articles
- Set the default character set in MySQL
- Set Optimal MySQL configuration in my.cnf?
- How do I find out the default server character set in MySQL?
- How to convert wrongly encoded data to UTF-8 in MySQL?
- Change tinyint default value to 1 in MySQL?
- How to convert an MySQL database characterset and collation to UTF-8?
- UTF-8 Validation in C++
- Convert Unicode to UTF-8 in Java
- Convert UTF-8 to Unicode in Java
- How to set default Field Value in MySQL?
- How to set default value to NULL in MySQL?
- How to set MySQL default value NONE?
- Convert String to UTF-8 bytes in Java
- Convert ASCII TO UTF-8 Encoding in PHP?
- Zip function in Python to change to a new character set.

Advertisements