Change access settings?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

In order to access mysql I must type at the command prompt

mysql --user='username' --password='password'

How can I change it so that all I have to type is


at the command prompt?


Re: Change access settings?

Quoted text here. Click to load it

If Linux - create a hidden file in your home directory named [.my.cnf] with
the contents thus:


Then when you issue the "mysql" command, it will draw the user name and
password from the my.cnf file and bounce you (or anyone else logged in as
you!) right in.

I'm sure the Windows version supports a nearly identical setup but you will
have to look it up.

The details vary.
Thomas Bartkus

Site Timeline