Inloggegevens onthouden (MySQL)

Uit De Vliegende Brigade
Ga naar: navigatie, zoeken

Werkt fantastisch, en dankzij aanpassen bestandspermissies, valt het beveiligingsprobleem mee:

Create a file named .my.cnf in your home directory that looks like this. 
Make sure the filesystem permissions are set such that only the owning user can read it (0600).

[client]
host     = localhost
user     = username
password = thepassword
socket   = /var/run/mysqld/mysqld.sock
#database = mysql

Bronnen