Get the App
SLTechnology News&Howtos  ›  Database  › 

Settings after mysql/mariadb database installation is complete

Shulou Source: shulou.com Published: 2022-06-01 11:38:00 11月12日 Update

Specify the innodb_file_per_table=1 parameter, which mainly prevents the ibdata file from being too large, in which all databases are stored. The above problem does not occur after you specify this parameter.

Specify the default character set: add the parameter: character_set_server=utf8 in the [mysqld] section.

Specify the default sort: collation-server=utf8_unicode_ci

Use the tab key to complete-the completion is the table name, column name, and database name. Not commands, variables in the database

On the mysql command line, use\ # to temporarily enable tab completion.

Add no-auto-rehash to the [mysql] section of mysql's configuration file my.cnf to achieve completion. You need to restart the mysql database.

You can use a mycli tool.

Use the tab key to complete-complete the mysql command

Add auto-rehash to the [mysql] section of mysql's configuration file my.cnf

Use the-- auto-rehash parameter when connecting using the mysql command

Tags: Parameters data databases commands files sections configurations variables fields characters character sets tools times questions sorting Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Linux Shulou Information Shulou Technology macOS