A
A
Adel Khalitov2017-04-14 15:34:01
MySQL
Adel Khalitov, 2017-04-14 15:34:01

How to change all encoding in mysqul phpmyadmin?

enter sql query

SELECT CONCAT('ALTER TABLE `', t.`TABLE_SCHEMA`, '`.`', t.`TABLE_NAME`, '` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;') as sqlcode
FROM `information_schema`.`TABLES` t
WHERE 1
AND t.`TABLE_SCHEMA` = 'rielt2'
ORDER BY 1

Encoding does not change, throws an error
spoiler
This table does not contain a unique column. Changing the grid, ticking, editing, copying and deleting is not available.
386423349b0d4476843b1e35df76f00e.png
Changed encoding manually.
0aac941fe3924669a3d5146dee9d1122.png
But internally it doesn't change
. How can I change the encoding recursively?
In MODX there are only kryakozyabry
e14565f06259481598dbd379141f5407.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
PrAw, 2017-04-14
@SaveLolliPoP

1. The request generated great commands for you to change the encoding.
RUN THEM.
2. Maybe it makes sense to explicitly indicate the connection encoding at the stage of connecting to the database? In the database connection code right after connect.
set names utf8;

Z
zooks, 2017-04-14
@zooks

You have confused encoding and db mapping.
In modern versions of MySQL, the encoding is always UTF-8.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question