亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

How to configure mysql remote php external network link database
、‘()’
、‘()’ 2019-01-12 11:09:47
0
3
1362
$con = mysql_connect("47.107.159.50:3306","root","root");

After using phpstudy to configure the mysql database on the Alibaba Cloud host, the php code is linked to the database. How to fill in the database address

、‘()’
、‘()’

reply all(2)
崇拜

Oh oh oh oh oh oh

劉寧
$host?=?'47.107.159.50';

$port = 3306;

$user = 'root';

$password = 'root';

$db_name = '表名';

if(!$con = mysqli_connect($host,$user,$password,$db_name,$port)){

echo "can not connect to databases";

}else{

if($db_name != ''){

//選擇數(shù)據(jù)庫(kù)

if(!mysqli_select_db($con,$db_name)){

echo "can not select database" . $db_name;

return false;

}

}

}

//發(fā)送語(yǔ)句

mysqli_query($con,"SET NAMES 'UTF8'");


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template