<?PHP
	$mysql_user = "apache";
	$mysql_pass = "n4der";
	$mysql_host = "localhost";
	$mysql_db = "kontiki";

	$db_link = mysql_connect($mysql_host, $mysql_user, $mysql_pass);
	if($db_link)
	{
		// Does the database exist?
		if(!mysql_select_db($mysql_db))
		{
			// There was no database so try to creaet it
			$query = "create database $mysql_db";
			mysql_query($query);

			// try to connect again and if we cant do it this time either, kill the script.
			if(!mysql_select_db($mysql_db))
				die("No database to work with!!!");
		}
		else
		{
			// The database exists and we are now connected to it, let the plugins handle the rest...
		}
	}
	else
		die("Could not connect to database server!!!");
PHP?>
