G
G
ganbatte2018-10-26 09:16:56
linux
ganbatte, 2018-10-26 09:16:56

Why can't I type Russian letters in mysql?

mysql is installed in ubuntu server. I connect to it via putty. When I open the terminal, Russian letters are written, and after opening, sudo mysql -u root -pthen Russian letters are not printed further. I want to make a request with Russian letters.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2018-10-26
@ganbatte

To make a request with Russian letters, you need to log in not as a root, but under a normal account.
Under root, the default encoding will be used in the console, and before version 8.0 it is Latin1, in which there are no Russian letters.
When logged in as a normal user, the mysql console will automatically pick up the current encoding of the command line client.

Y
Yuri, 2018-10-26
@modestguy

You need to look at the [mysqld] section in the my.cnf file.
Specifically, the parameters are:

character-set-server
collation-server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question