change to local mysql

This commit is contained in:
2018-07-14 22:16:53 +08:00
parent 40af937d4c
commit 3ef62ff028
3 changed files with 5 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
$m = floor($sec/60);
$s = floor($sec%60);
//link to mysql
$con=mysqli_connect("172.27.16.2:3306","root","lxo329123456","buptStudent");
$con=mysqli_connect("127.0.0.1:3306","buptStudent","buptStudentlx","buptStudentdb");
if (!$con){die('Could not connect: '.mysql_error());}
//mysql_select_db("my_db_test", $con);
//name & student_id