????php???????mysql????????????£?
????1.????????????????????????棬??????????IP?????php????????????IP??
????2.php????е????????????????£?
$con = new mysqli($host?? $user?? $passwd?? $database);
????$host?????????????????IP????????????????е????????IP????????“3306”???????????????????????????????????????????????????????????????
????????php?????????????????$host = 'localhost'?????????????????
$user???????
$passwd??????
$database?????????
????3.???php???????????????????
????????????????????????mysql?????????????????
mysql -h $host -P 3306 -u $user -p
?????????????????????????