I am having issues trying to create a new MySQL database in php,
my code is:
<?php
   $dbhost = 'localhost:3036';
   $dbuser = 'root';
   $dbpass = ‘somepassword’;
   $conn = new mysqli($dbhost, $dbuser, $dbpass);
   if(!$conn->connect_error )
   {
     die('Could not connect: %s' . $conn->connect_error);
   }
   echo "Connected successfully\n";
   $sql = "CREATE DATABASE TUTORIALS2";
   if($conn->query($sql)===TRUE){
     echo "Created the database\n";
   }
   else {
     echo "Failed to create the database".$conn->error;
   }
   //Close the database
   $conn->close();
 ?>
MySQL connects fine but it won't allow me to create a new database. Not a clue what I'm doing wrong here. Any pointers would be greatly appreciated!
 
     
    