fix units for redis. allow specifying socket for mysql