There is a file in the utf-8 encoding, it describes the structure of the database. Utf-8 database encoding. For table field there is the following definition

title VARCHAR(255) NOT NULL DEFAULT 'Нет заголовка' 

I create the structure through the console by request

 source "путь к файлу" 

As a result, when creating a record without specifying the title field, we get scribbles. I look at scribbles through phpmyadmin, so the console encoding has nothing to do with it.

    1 answer 1

    Found a solution. To do this, I added to the beginning of my database structure file.

     SET NAMES 'utf8'; 

    The scribble is due to the fact that when connecting to the mysql server by default, it sets the latin1 encoding, so the specified DEFAULT value is distorted and may later get into the database. Another possible solution is to change the settings of the mysql server, in particular the default encoding when connected.