1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-11-23 20:09:20 +00:00
Files
ntpa/DATABASE

26 lines
655 B
Plaintext
Raw Normal View History

2016-12-10 12:25:20 +01:00
Manually setup a MySQL user on localhost
----------------------------------------
Log in as root:
# mysql -uroot -p
Create database and grant privileges:
# CREATE DATABASE ntpa;
# CREATE USER 'ntpau'@'localhost' IDENTIFIED BY 'password';
# GRANT ALL PRIVILEGES ON ntpa . * TO 'ntpau'@'localhost';
# FLUSH PRIVILEGES;
Manually setup a MySQL user on a foreign host
---------------------------------------------
Log in as root:
# mysql -uroot -p
Create database and grant privileges:
# CREATE DATABASE ntpa;
# CREATE USER 'ntpau'@'192.168.1.1' IDENTIFIED BY 'password';
# GRANT ALL PRIVILEGES ON ntpa . * TO 'ntpau'@'192.168.1.1';
# FLUSH PRIVILEGES;