Defaults for the mysql client

Uno Engborg uno at webworks.se
Wed Mar 21 21:12:18 UTC 2007


Is it possible to set a user's default database for MySQL database?

Instead of having an additional line of command, i.e:

mysql> use database <database_name>

the user should just type mysql and directly end up in the right database.
the configuration should include database and password



The reason I want this is that I want tobe able to create a login that 
uses mysql
as shell to allow for easy access to  a certain database.

Regards
Uno Engborg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3309 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070321/1d8efd83/attachment-0001.bin>


More information about the fedora-list mailing list