I need to create a database from MySQL query. I have used the following, but it is not working.
$sql2 = "CREATE DATABASE DATABAE_NAME";
$query2=mysqli_query($connect_dude,$sql2);
This query is not creating any database. Probably,I have to use database username and password, but I'm not quite sure how to apply or use database username, password and host in this case.
mysqli_query()succeeds nor retrieving the error message if any.