Specifying Connection Parameters by Using Option Files : my.cnf « Command MySQL « SQL / MySQL






Specifying Connection Parameters by Using Option Files

      

The following example illustrates the format used to write MySQL option files:

# general client program connection options
[client]
host=localhost
user=cbuser
password=cbpass
# options specific to the mysql program
[mysql]
no-auto-rehash
# specify pager for interactive mode
pager=/usr/bin/less

   
    
    
    
    
    
  








Related examples in the same category

1.Logging Errors (error log) setting for # in /etc/my.cnf or my.ini (Windows)
2.Logging Logins and Operations (general query log) setting for # in /etc/my.cnf or my.ini (Windows)