The specific situation is that when I try to use the database named"maskorder", I find that I can't connect to the database. I can guarantee that I have completed the establishment of the database and named it maskorder, and there is no problem using the database through CMD. However, when when I need to use the database, the error message displays "unknown database 'maskorder'", After repeatedly consulting the data and trying, I found that this error occurs in all databases except the test database, and no similar situation is found in the Q & A that can be found. My codes as belows:
$link = mysqli_connect("127.0.0.1","root","root","maskorder");
$link or die('error:'.mysqli_connect_error());
mysqli_select_db($link, "maskorder")
or die('error:'.mysqli_error($link));
mysqli_query($link, "set names utf8");
and the next is my MySql database:
then is screenshot of CMD