[MDEV-11014] cannot create table with DATA/INDEX DIRECTORY clause Created: 2016-10-10 Updated: 2016-10-11 Resolved: 2016-10-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.1.9, 10.1.12 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Karl | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 14.04.5 LTS (10.1.12), Windows 10 (10.1.9) |
||
| Attachments: |
|
| Description |
|
both target directories exist and have proper rights Ubuntu:
Windows:
|
| Comments |
| Comment by Karl [ 2016-10-11 ] | |||||||||||||||||||||||||||||||
|
I copied the above statement from stackoverflow and see that there might be a typo: no commas. But Ubuntu:
These are the same owner rights used for the database proper. Windows:
| |||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-10-11 ] | |||||||||||||||||||||||||||||||
|
There are several problems/questions described here, let's tackle them one by one. 1.
It is not supposed to work; there is no /tmp/datadir on WIndows, it's c:/tmp/datadir. 2.
This is a mystery #1. How did you achieve it? Are you sure it's not a copy-paste error? 3.
This is a mystery #2. Where does the server come from? Did you install a package, or did you build it from source?
| |||||||||||||||||||||||||||||||
| Comment by Karl [ 2016-10-11 ] | |||||||||||||||||||||||||||||||
|
I hope I understood formatting instructions by your example – I used the Style drop down menu (preformatted) earlier, to no avail. #1:
And the table has been created in the default database directory. #2: excerpt from my.ini:
The code resides on C:\xampp\MariaDB 10.1\bin, so tmpdir should point to c:\tmp and not d:\tmp where the datadase directory is. #3: I work with docker on AWS. I made sure the permissions are identical to those of the datadir - which should be mysql:mysql normally, and I don't know out off my head why it is different here. BUT: I made a mistake here... /tmp in my container does not point to /tmp on my host, so it is stupid to create a subdirectory there...
I was led to this false assumption as the actual datadir of the container is mapped to the host, of course. Actually I wanted to use symlinks both on ibd and myisam files. Now I see why this could not work. The datadir was mapped, but the destinations I chose were not, so they were not visible from within the container.... Thanks a lot to sort this out. I am so comfortable with docker these days I just forget about the assumptions and restrictions. | |||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-10-11 ] | |||||||||||||||||||||||||||||||
|
Okay, then I guess all mysteries are resolved for now. Good luck! |