Bug #77773 DATA DIRECTORY and INDEX DIRECTORY ignored for MyISAM partitions on Linux
| Submitted: | 17 Jul 2015 23:50 | Modified: | 20 Jul 2015 12:43 |
|---|---|---|---|
| Reporter: | Geoff Montee | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Partitions | Severity: | S3 (Non-critical) |
| Version: | 5.6.23, 5.6.25 | OS: | CentOS |
| Assigned to: | CPU Architecture: | Any |
[17 Jul 2015 23:50]
Geoff Montee
[20 Jul 2015 12:43]
MySQL Verification Team
Hello Geoff, Thank you for the report. Observed this with 5.6.25 on Fedora22. Thanks, Umesh
[20 Jul 2015 12:44]
MySQL Verification Team
//
create table test_partitioned (
id int not null
) PARTITION BY HASH ( id )
( partition p0 engine=MyISAM data directory = '/tmp/' index directory = '/tmp/',
partition p1 engine=MyISAM data directory = '/tmp/' index directory = '/tmp/') ;
mysql> create table test_partitioned (
-> id int not null
-> ) PARTITION BY HASH ( id )
-> ( partition p0 engine=MyISAM data directory = '/tmp/' index directory = '/tmp/',
-> partition p1 engine=MyISAM data directory = '/tmp/' index directory = '/tmp/') ;
Query OK, 0 rows affected, 4 warnings (0.04 sec)
mysql> show warnings;
+---------+------+----------------------------------+
| Level | Code | Message |
+---------+------+----------------------------------+
| Warning | 1618 | <DATA DIRECTORY> option ignored |
| Warning | 1618 | <INDEX DIRECTORY> option ignored |
| Warning | 1618 | <DATA DIRECTORY> option ignored |
| Warning | 1618 | <INDEX DIRECTORY> option ignored |
+---------+------+----------------------------------+
4 rows in set (0.00 sec)
mysql> show variables like '%version%';
+-------------------------+------------------------------+
| Variable_name | Value |
+-------------------------+------------------------------+
| innodb_version | 5.6.25 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.6.25 |
| version_comment | MySQL Community Server (GPL) |
| version_compile_machine | x86_64 |
| version_compile_os | Linux |
+-------------------------+------------------------------+
7 rows in set (0.00 sec)
mysql> \! mkdir -p /tmp/test
mysql> drop table test_partitioned;
Query OK, 0 rows affected (0.00 sec)
mysql> create table test_partitioned ( id int not null ) PARTITION BY HASH ( id ) ( partition p0 engine=MyISAM data directory = '/tmp/test' index directory = '/tmp/test', partition p1 engine=MyISAM data directory = '/tmp/test' index directory = '/tmp/test');
Query OK, 0 rows affected, 4 warnings (0.00 sec)
mysql> show warnings;
+---------+------+----------------------------------+
| Level | Code | Message |
+---------+------+----------------------------------+
| Warning | 1618 | <DATA DIRECTORY> option ignored |
| Warning | 1618 | <INDEX DIRECTORY> option ignored |
| Warning | 1618 | <DATA DIRECTORY> option ignored |
| Warning | 1618 | <INDEX DIRECTORY> option ignored |
+---------+------+----------------------------------+
4 rows in set (0.00 sec)
mysql> \! ls -l /tmp/test
total 0
mysql> \! cat /etc/*release
Fedora release 22 (Twenty Two)
NAME=Fedora
VERSION="22 (Twenty Two)"
ID=fedora
VERSION_ID=22
PRETTY_NAME="Fedora 22 (Twenty Two)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:22"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=22
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=22
PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Fedora release 22 (Twenty Two)
Fedora release 22 (Twenty Two)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.