我已经安装了卷,但我不知道如何从本地机器访问 EBS mysql 数据?非常感谢您的任何建议。
问问题
122 次
1 回答
0
When you start mysqld
, you need to tell it where data files are to be stored.
Assuming your EBS device is mounted at /mnt/data
, the following my.cfg(or my.ini) file entry would do the trick for
InnoDB files:
innodb_data_file_path=/mnt/data
http://dev.mysql.com/doc/refman/5.5/en/innodb-configuration.html
For MyISAM:
datadir=/mnt/data
http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_datadir
于 2012-07-16T17:38:23.250 回答