[MDEV-29417] Unable to create table with data directory Created: 2022-08-30 Updated: 2022-09-01 Resolved: 2022-09-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Create Table |
| Affects Version/s: | 10.5.16 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | David Cary Hart | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux via Fedora 36 |
||
| Description |
|
This is right out of the MySQL documentation:
The external directory is owned my mysql. I am working on a project and I really need this to work. In the interim, my project is halted. |
| Comments |
| Comment by Daniel Black [ 2022-08-30 ] |
|
The systemd start of MariaDB, (and most system services) by default protects writing to /home directories. This can be changed per: |
| Comment by David Cary Hart [ 2022-09-01 ] |
|
Many thanks. Indeed, it does work providing that the data directory is owned by mysql. What's particularly helpful is that a subdirectory is automatically created with the name of the database. I have a limited life project with 112 database dumps in .sql. Not sure how to close this. |
| Comment by Daniel Black [ 2022-09-01 ] |
|
Glad that worked for you. |