1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-10-05 18:41:13 +00:00

Update database help

This commit is contained in:
Carsten Larsen
2017-07-13 23:16:48 +02:00
parent ada24c4b75
commit b8231374b7
2 changed files with 18 additions and 5 deletions

View File

@ -1,5 +1,13 @@
Manually setup a MySQL user on localhost
----------------------------------------
Setup MariaDB or MySQL in one line
----------------------------------
Create a database on localhost named "ntpa" and a user named "ntpau" with password "password".
# mysql -u root -p -e "CREATE DATABASE ntpa; CREATE USER 'ntpau'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON ntpa.* TO 'ntpau'@'localhost'; FLUSH PRIVILEGES;"
Setup a MySQL user on localhost
-------------------------------
Log in as root:
# mysql -uroot -p
@ -11,8 +19,8 @@ Create database and grant privileges:
# FLUSH PRIVILEGES;
Manually setup a MySQL user on a foreign host
---------------------------------------------
Setup a MySQL user on a foreign host
------------------------------------
Log in as root:
# mysql -uroot -p
@ -22,4 +30,3 @@ Create database and grant privileges:
# CREATE USER 'ntpau'@'192.168.1.1' IDENTIFIED BY 'password';
# GRANT ALL PRIVILEGES ON ntpa . * TO 'ntpau'@'192.168.1.1';
# FLUSH PRIVILEGES;

View File

@ -1,3 +1,9 @@
# NTP Analyzer sample configuration file
# --------------------------------------
# Use the following command in shell to create a database on localhost named "ntpa" and a user named "ntpau" with password "password":
# mysql -u root -p -e "CREATE DATABASE ntpa; CREATE USER 'ntpau'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON ntpa.* TO 'ntpau'@'localhost'; FLUSH PRIVILEGES;"
Database {
# Uncomment if you want to use PostgreSQL
# Provider PostgreSQL