Uploading data to sql database using nodeMCU through php file

Our database servers are not accessible from the internet. We provide database servers for use by PHP code on our web hosting, so our database servers can only be accessed from within our network. Remote database access is only available with premium hosting.