I
I
ILYA2016-07-01 13:13:33
linux
ILYA, 2016-07-01 13:13:33

Insert a record into a table from the console in Cyrillic?

How to set up a mysql client so that you can enter Cyrillic text in queries?
For example: insert into books (name) values('Русская книга');
Now, when switching the layout to Russian, no characters are entered.
Environment: Ubuntu Trusty, MySQL 5.7
In the console itself (bash), the text in Russian is entered, LANG="ru_RU.utf8"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MetaDone, 2016-07-01
@MetaDone

mysql --default-character-set=utf8

Y
Yuri Chudnovsky, 2016-07-01
@Frankenstine

Your problem is in the terminal emulator. Try another one or tweak this one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question