mirror of
https://bitbucket.org/anguist/ntpa
synced 2025-10-05 02:20:57 +00:00
Update database help
This commit is contained in:
17
DATABASE
17
DATABASE
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user