In Linux I've also installed MariaDB. By editing the contents of `my.cnf` I've been able to change the `datadir` to another one inside the Linux partition, using these instructions.
Now I'm trying to get my Linux (Mint Cinnamon 18.1) OS to use the files in the W10 partition, so that I can use the same databases in both OSs.
I made a few changes as a result of problems followed by googling...
- I have checked that the file permissions for the file in the W10 drive/partition have completely "open" permissions.
- I have upgraded my Linux MariaDB to the latest version (to match the W10 one, i.e. 10.2).
- I have added the following lines to the end of my my.cnf file in /etc/mysql/
[mysqld]:
datadir=/media/mike/W10\ D\ drive/My\ Documents/dbases/w10_data_dir
socket=/media/mike/W10\ D\ drive/My\ Documents/dbases/w10_data_dir/mysql.sock
[client]:
port=3306
socket=/media/mike/W10\ D\ drive/My\ Documents/dbases/w10_data_dir/mysql.sock
This is the output I get when I try to start the service (as root):
Code: Select all
M17A ~ # service mysql start
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
M17A ~ # journalctl -xe
...
-- Subject: Unit mariadb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mariadb.service has begun starting up.
May 19 15:00:59 M17A mysqld[3239]: 2018-05-19 15:00:59 140579940546752 [Note] /usr/sbin/mysqld (mysqld 10.2.14-MariaDB-10.2.14+maria~xenial) starting as process 3239 ...
May 19 15:00:59 M17A mysqld[3239]: 2018-05-19 15:00:59 140579940546752 [Warning] Can't create test file /media/mike/W10\ D\ drive/My\ Documents/dbases/w10_data_dir/M17A.lower-test
May 19 15:00:59 M17A mysqld[3239]: [136B blob data]
May 19 15:00:59 M17A mysqld[3239]: 2018-05-19 15:00:59 140579940546752 [ERROR] Aborting
May 19 15:00:59 M17A systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
May 19 15:00:59 M17A systemd[1]: Failed to start MariaDB 10.2.14 database server.
-- Subject: Unit mariadb.service has failed
Any idea what I should do next? More generally, what are the prospects for getting this to work at all?
It was suggested that I should provide the output of `mount`... so these are what seem to be the relevant lines.
Code: Select all
M17A ~ # mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
...
/dev/sdc2 on /media/mike/W10 D drive type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/dev/sda4 on /media/mike/W10 C drive type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)