connect select db:mag error