MySQL Global Variables,Session Variables and default MySQL databases

Here we will first go through the different types of variables, i.e. , Global and Session variables, and then look at the default databases of the mysql server. Global Variables Global variables are parameters that define how the server behaves. Each global variable has a default value which is initialised when the server starts. Global variable is identified by @@variable_name (@@ sign) To see the default values of these global variables you can either execute: show global variables like 'variable_name'; or select @@varible_name; To get the names of all the global variables: show global variables; You can also change the default value of any global variable according to your needs. For example: set global max_connections = 300; More examples of global variables are: wait_timeout server_id max_connections etc. Session Variables Session variables are al...