Create a database from php code

I have a free account on 000webhost

I would like to understand if it is possible to create a database through php $mysqli->query(“CREATE DATABASE dbexample”); or it can only be done through the 000webhost database manager.

it gives me back: Access denied for user ‘id13800077_nicola’@’%’ to database ‘biblioteca’ id13800077_nicola is the user of the first database I created through the 000webhost database manager

Hey there :slight_smile:
This is currently impossible - this can only be achieved by creating a database manually from the 000webhost panel.

This topic was automatically closed after 2 hours. New replies are no longer allowed.