[mysqld_safe]
[mysqld]
[mysql]
[mysqldump]
[server]
[client]
The max_connections system variable was set from a server-specific mysqld-auto.cnf option file.
The max_connections system variable has not been configured in any startup file.
The max_connections system variable was set from the my.cnf file.
The max_connections system variable was changed at runtime.
Change the port option to dynamic in the my.cnf file.
Change the port option to dynamic at the command line.
Change the port number in the mysql-auto.cnf file.
Change the modifier from GLOBAL to SESSION in the command.
Change the default port number in the my.cnf file.
# mysqld –verbose –help
mysql> SHOW GLOBAL VARIABLES;
# mysqladmin -uroot -p variables
# systemctl status mysqld
# mysql –print-defaults
# cat /labs/slap-test-updates.sh
mysql> \! cat /var/lib/mysql/slow-query.log
# cat /labs/multi.cnf
mysql> \! cat /var/lib/mysql/mysqld-auto.cnf | python -m json.tool
error_count
max_connections
innodb_buffer_pool_size
max_join_size
sort_buffer_size
===
[mysqld_safe]
[mysqld]
[mysql]
[mysqldump]
[server]
[client]
答案:
[mysqld_safe]
[mysqld]
[server]
The max_connections system variable was set from a server-specific mysqld-auto.cnf option file.
The max_connections system variable has not been configured in any startup file.
The max_connections system variable was set from the my.cnf file.
The max_connections system variable was changed at runtime.
答案:
The max_connections system variable was changed at runtime.
Change the port option to dynamic in the my.cnf file.
Change the port option to dynamic at the command line.
Change the port number in the mysql-auto.cnf file.
Change the modifier from GLOBAL to SESSION in the command.
Change the default port number in the my.cnf file.
答案:
Change the port option to dynamic in the my.cnf file.
Change the port option to dynamic at the command line.
# mysqld –verbose –help
mysql> SHOW GLOBAL VARIABLES;
# mysqladmin -uroot -p variables
# systemctl status mysqld
# mysql –print-defaults
答案:
mysql> SHOW GLOBAL VARIABLES;
# mysqladmin -uroot -p variables
# cat /labs/slap-test-updates.sh
mysql> \! cat /var/lib/mysql/slow-query.log
# cat /labs/multi.cnf
mysql> \! cat /var/lib/mysql/mysqld-auto.cnf | python -m json.tool
答案:
mysql> \! cat mysql> \! cat /var/lib/mysql/mysqld-auto.cnf | python -m json.tool
error_count
max_connections
innodb_buffer_pool_size
max_join_size
sort_buffer_size
答案:
sort_buffer_size
max_join_size
The post MySQL 8.0 for Database Administrators OCP 课程习题4 first appeared on C1G军火库.