New mysql privilege, fixed path for init.d check(#3757), create sockets dir(#3639)
Merge pull request #3760 from axilleas/5-1-stable

Updated docs in 5-1-stable. Fixes #3757 and #3639.