mySQL – Grant Access – Remote Rechner Zugriff auf Datenbank geben

5. Mai 2013 at 18:40
Print Friendly, PDF & Email

>mysql -uroot -p

mysql > connect avrio;
mysql > GRANT ALL ON avrio.* TO root@’192.168.178.62′; IDENTIFIED BY ‘PASSWORD’;
mysql > FLUSH PRIVILEGES;

> sudo nano /etc/mysql/my.cnf

bind-address = 127.0.0.1

#bind-address = 127.0.0.1

sudo service mysql restart

Wenn man mittlerweile sql installiert, wird MariaDB verwendet. Damit muss man eine andere Datei ändern:

sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf

# bind-address          = 127.0.0.1

bind-address   = 0.0.0.0