So I was working on a plugin and I needed to cache some third party API access, and I needed to manually create a database upon plugin activation or upgrade.
The caching stuff needs a database host ( localhost I guess ), a username and a pass, as in the code:
mysql_connect($db_host, $db_username, $db_password) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error());
I have followed many tuts in terms of creating databases, but I couldn't end solving my issue.
Any thoughts ?
Thank you lots!