我正在运行一个mysqli 教程中的示例。
$mysqli = new mysqli("localhost", "user", "password", "database");
if($mysqli->connect_errno)
{
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ) "
. $mysqli->connect_error;} echo $mysqli->host_info . "\n";
}
我收到了错误:
警告:mysqli::mysqli(): (42000/1049): /home/中的未知数据库“世界”...
我应该怎么做才能创建数据库?