如:$sql = "select * from db1.tb_user ta inner join db2.tb_userinfo tb on ta.uid=tb.uid";
怎么让php成功执行这条查询语句,从连接数据库开始写起。