mirror of
https://bitbucket.org/anguist/ntpa
synced 2025-10-05 10:30:56 +00:00
26 lines
655 B
Plaintext
26 lines
655 B
Plaintext
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;
|
|
|