How to change a default MySQL directory /var/lib/mysql to another on Plesk for Linux server

Follow

Comments

2 comments

  • Avatar
    oraHow

    Great article. After changing data directory, is it necessary to check used MySQL ports before restart services? 

  • Avatar
    Pavel Mikhaylov

    Hi oraHow,

    Ports configuration does not depend on the data directory, moreover, if not specified otherwise, MySQL always uses the default one, 3306, so there is no need to check that.

Please sign in to leave a comment.

Have more questions? Submit a request