- 论坛徽章:
- 45
|
When you run a client program to connect to the MySQL server, it is inadvisable to specify your password in a way that exposes it to discovery by other users. The methods you can use to specify your password when you run client programs are listed here, along with an assessment of the risks of each method. In short, the safest methods are to have the client program prompt for the password or to specify the password in a properly protected option file.
Store your password in an option file. For example, on Unix, you can list your password in the [client] section of the .my.cnf file in your home directory: |
|