你先在shell下用mysql -h 211.47.67.13 -u root -pyuchina databasename试了能进数据库,再把相应参数代进mysql_connect();里.