Creating a Data Directory
Create a data directory to store MySQL data files.
- Create a data directory /data and related directories for processes.
1 2 3
mkdir -p /data/mysql cd /data/mysql mkdir data tmp run log relaylog
- Change the user group and user permission on the /data directory to mysql:mysql.
1chown -R mysql:mysql /data
Parent topic: Configuring the Compilation Environment