mysql config files, global, commandline options and session variables

you seem to be able to set global and command line options variables in mysql config files but not session variables so you’ll need to create a .my.cnf file with your favorite global and command line options and a separate mysql.sql file with your favorite session variables and source it once logged in

ie

.my.cnf

[mysql]
user=user
password=password

mysql.sql

#
set sql_quote_show_create=OFF

mysql

mysql> source ~/mysql.sql

see also

https://dev.mysql.com/doc/refman/5.5/en/option-files.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s