Consider a MySQL server configured with max_connections=100. If 105 clients try to connect simultaneously, what will happen to the last 5 connection attempts?
Think about the maximum allowed simultaneous connections setting.
The max_connections setting limits how many clients can connect at the same time. If more clients try to connect, the server refuses the extra connections with an error.
Given a MySQL InnoDB table of size 10GB, if innodb_buffer_pool_size is set to 1GB, what is the expected impact on query performance compared to setting it to 12GB?
Consider how caching data in memory affects disk access.
The buffer pool caches data pages in memory. A larger buffer pool reduces disk I/O, improving query speed. A smaller buffer pool causes more disk reads, slowing queries.
Which of the following commands correctly changes the max_allowed_packet size to 64MB for the current MySQL session?
Remember the unit for max_allowed_packet is bytes and how to set session variables.
The max_allowed_packet variable expects a value in bytes. To set it for the current session, use SET SESSION max_allowed_packet = 67108864;. Using '64MB' is invalid syntax.
A MySQL server has query_cache_size set to 256MB but query cache hit ratio remains very low. Which change is most likely to improve query cache effectiveness?
Think about how large query cache sizes can cause fragmentation and reduce efficiency.
Very large query cache sizes can cause fragmentation and overhead, reducing hit ratio. Reducing the size can improve cache efficiency and hit ratio.
What is the main benefit of increasing thread_cache_size in MySQL server configuration?
Consider what happens when a client disconnects and a new client connects.
Increasing thread_cache_size allows MySQL to reuse threads for new connections instead of creating new ones, reducing thread creation overhead and improving connection performance.