UP | HOME

MySQL开启远程登录

$ mysql -uroot -p123456
    > use mysql;
    > GRANT ALL PRIVILEGES ON *.* TO "root"@"%" IDENTIFIED BY "123456" WITH GRANT OPTION;
    > FLUSH PRIVILEGES;
    > select host,password,user from user;
    > quit
$ /etc/init.d/mysql restart

Date: 2019-02-08 Fri 13:49

Author: shixiongfei

Created: 2020-09-05 Sat 14:40

Emacs 27.1 (Org mode 9.3)