Add resource to ensure mysql running.