mysql 创建远程用户

  1. 进入mysql:
    mysql -u root -p

  2. 使用mysql数据库
    use mysql;

  3. 创建远程用户
    grant all privileges on . to '用户名'@'%' identified by '密码' with grant option;

  4. 重启mysql
    service mysqld restart

原文地址:https://www.cnblogs.com/daxiaohaha/p/13038962.html