登录MySQL [plain] view plain copy mysql -u root -p 添加新用户 允许本地 IP 访问 localhost, 127.0.0.1 [plain] view plain copy create user 'test'@'localhost' identified by '123456'; 允许外网 IP 访问 [plain] view plain