Wait the mariadb startup

Change-Id: Ibd1fcfb31d9393838ff1c533a3f4a61b0ece3774
Signed-off-by: Zhiguang Li <muzili@gmail.com>