MySQL/MariaDB: Option to opt out user data location

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
Nhawr
Posts: 8
Joined: Mon Jan 16, 2017 12:34 am

MySQL/MariaDB: Option to opt out user data location

Post by Nhawr »

v142
DietPi-Software | MySQL/MariaDB: Data store is now located in the DietPi User data location (eg: /mnt/dietpi_userdata/mysql). Should offer improved performance for USB drive users: https://github.com/Fourdee/DietPi/issues/672
How can i undo these change?

Because i use an Odroid C2 with eMMC and SD card.
The SD card is used as backup storage and for the user data.

Why not make it optional (dietpi.txt)?

Thanks.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: v142 MySQL/MariaDB: Data store is now located .....

Post by Fourdee »

Nhawr wrote: How can i undo these change?

Because i use an Odroid C2 with eMMC and SD card.
The SD card is used as backup storage and for the user data.

Why not make it optional (dietpi.txt)?

Thanks.
Hi,

To move MySQL outside the userdata location, for now, you'd have to move it manually, and remove the symlink from /var/lib/mysql.

From /mnt/dietpi_userdata/mysql to /var/lib/mysql .
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Nhawr
Posts: 8
Joined: Mon Jan 16, 2017 12:34 am

Re: MySQL/MariaDB: Option to opt out user data location

Post by Nhawr »

That makes me sad but please think about a switch because on Odroid the eMMC card or even the SD card will be faster than an external drive at USB 2.0.

Thanks for your patience.
Post Reply