Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Settings after mysql/mariadb database installation is complete

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report