MySQL Forums
Forum List  »  InnoDB clusters

Re: Mysql datafile location
Posted by: Yoav Ben Moha
Date: April 15, 2018 10:31AM

Hi Jon,

Thank you for your replay.

I see what you mean .
Yet , As you can see bellow data has been writen into the /mysql_data mount,
which mean that initialization done to /mysql_data.


# mysqld --initialize -u mysql --datadir /mysql_data
# cd /mysql_data
# ls -l

-rw-r----- 1 mysql mysql 56 Apr 12 16:37 auto.cnf
-rw-r----- 1 mysql mysql 420 Apr 12 16:37 ib_buffer_pool
-rw-r----- 1 mysql mysql 12582912 Apr 12 16:37 ibdata1
-rw-r----- 1 mysql mysql 50331648 Apr 12 16:37 ib_logfile0
-rw-r----- 1 mysql mysql 50331648 Apr 12 16:37 ib_logfile1
drwxr-x--- 2 mysql mysql 4096 Apr 12 16:37 mysql
drwxr-x--- 2 mysql mysql 8192 Apr 12 16:37 performance_schema
drwxr-x--- 2 mysql mysql 8192 Apr 12 16:37 sys

Yet , Why datadir point to the default location .... ?
mysql> select @@datadir;
+-----------------+
| @@datadir |
+-----------------+
| /var/lib/mysql/ |
+-----------------+
1 row in set (0.00 sec)

Best Regards
Yoav

Options: ReplyQuote


Subject
Views
Written By
Posted
385
April 12, 2018 10:26AM
155
April 12, 2018 09:06PM
Re: Mysql datafile location
191
April 15, 2018 10:31AM


Sorry, you can't reply to this topic. It has been closed.

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.