mysql:login_without_a_password
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mysql:login_without_a_password [2016/10/13 23:06] – created peter | mysql:login_without_a_password [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== MySQL - Login without a password ====== | ====== MySQL - Login without a password ====== | ||
+ | If you wish to setup " | ||
+ | |||
+ | **NOTE**: ~ represents your HOME directory path in Linux. | ||
+ | |||
+ | <file mysql .my.cnf> | ||
+ | [client] | ||
+ | user=root | ||
+ | password=root-password | ||
+ | host=127.0.0.1 | ||
+ | |||
+ | [mysql] | ||
+ | database = database-name | ||
+ | </ | ||
+ | |||
+ | Be sure to modify the permission of the file to limit access to yourself, so that other users on the system cannot view this file. | ||
+ | |||
+ | <code bash> | ||
+ | chmod 600 ~/.my.cnf | ||
+ | </ | ||
+ | |||
+ | <color red> | ||
mysql/login_without_a_password.1476400013.txt.gz · Last modified: 2020/07/15 09:30 (external edit)