mysql preparation