configuring mysql as DB