mysql
// given any permission to access host data
. GRANT ALL PRIVILEGES ON * * TO 'root' @ '%' IDENTIFIED BY 'custom password' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '123456' WITH GRANT OPTION;
// Specify ip address access
Such as:
Configuration 192.168.16.130 by root: 123456 to access the database
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.16.130'IDENTIFIED BY '123456' WITH GRANT OPTION;
A look at a capital headache,
grant all privileges on *.* to 'root' @'%' identified by '123456' with grant option;
Refresh rights
flush privileges;
vocabulary:
grant :( legally) grant, allow; (grudgingly) acknowledge, consent
privileges: privileges;
identified: identified; identified; a recognized person