Ubuntu 18.04 given MySQL 5.7

【walker process】

  • Install

~# sudo apt install mysql-server mysql-client
  • Modify or add in /etc/mysql/mysql.conf.d/mysqld.cnf file

# Modify the binding ip
bind-address            = 0.0.0.0
# set max memory
innodb_buffer_pool_size = 20G
  • Check whether the modification is successful (the unit of the value is Bytes)

# After entering mysql
mysql> show variables like  'innodb_buffer_pool_size';
+-------------------------+-------------+
| Variable_name           | Value       |
+-------------------------+-------------+
| innodb_buffer_pool_size | 21474836480 |
+-------------------------+-------------+
1 row in set (0.00 sec)


【Related commands】

  • Security check

sudo mysql_secure_installation
  • View authorization

show grants;
  • Password Policy Related

# View password policy
mysql> select @@validate_password_policy;

# Modify password policy
mysql> set global validate_password_policy=0;

# View password length limit
mysql> select @@validate_password_length;


【Related Reading】


*** walker ***


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326376338&siteId=291194637