mysql允许外网访问 1.CREATE USER 'root'@'%' IDENTIFIED BY 'tengwen_2012'; 2.GRANT ALL ON *.* TO 'root'@'%'; 3.flush privileges;