MySQL Forums
Forum List  »  Newbie

change datadir
Posted by: neehad toushif
Date: August 29, 2023 03:36AM

Hi, I tried to change the datadir in mysql configuration but mysql does not start after the change. New path is in a different disk mounted on /Data
here are the steps I did:
1. stop mysql.service
2. change datadir in /etc/mysql/mysql.conf.d/mysqld.cnf
3. changed permission and ownership to mysql for the new path

other info:
OS: ubuntu 20.04
mysql version: 8.0.2

Plz help.
I don't know if this is the right forum to seek, if not plz send the link to raise this issue.

Options: ReplyQuote

Written By
change datadir
August 29, 2023 03:36AM
August 29, 2023 10:06AM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.