Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MariaDB change datadir

Featured Replies

Hello everybody,

 

I´m appareantly not capable of changing the datadir of the mariadb installation.

I googled it and followed several tutorial, yet I cant make it work.

 

Example

https://www.tecmint.com/change-default-mysql-mariadb-data-directory-in-linux/

 

I change the settings in this file /etc/mysql/mariadb.conf.d/50-server.cnf and i added under following sections the new datadirs/sockets

 

[mysqld]

datadir=/srv/dev-disk-by-id-ata-SanDisk_SDSSDH3_2T00_210837801141-part2/Medien/Programme/MariaDB

socket=/srv/dev-disk-by-id-ata-SanDisk_SDSSDH3_2T00_210837801141-part2/Medien/Programme/MariaDB/mysql.sock

 

[client]

port=3306

socket=/srv/dev-disk-by-id-ata-SanDisk_SDSSDH3_2T00_210837801141-part2/Medien/Programme/MariaDB/mysql.sock

 

Also i change the owner of the folder

chown -R mysql:mysql /srv/dev-disk-by-id-ata-SanDisk_SDSSDH3_2T00_210837801141-part2/Medien/Programme/MariaDB

 

and changed the path of the socket in those files under /etc/mysql/conf.d/ and /etc/mysql/mariadb.conf.d/

 

After i get those error messages

Warning: skipping '!includedir /etc/mysql/conf.d/' directive as maximum includerecursion level was reached in file /etc/mysql/mariadb.cnf at line 22
Warning: skipping '!includedir /etc/mysql/mariadb.conf.d/' directive as maximum includerecursion level was reached in file /etc/mysql/mariadb.cnf at line 23

 

Did anybody make it work with armbian?

 

Best Regards

 

Vin

There should not be any difference since this is userspace and Armbian does not touch/modify mariadb packages in any way. Armbian puts a userspace environment (Debian Bullseye, Ubuntu Focal) with minimal adjustments for performance on top of a working kernel for the specific hardware.

 

Besides all of that it would be interesting to know on which hardware you are actually working on and

  

Providing logs with 

armbianmonitor -u

 helps with troubleshooting and significantly raises chances that issue gets addressed.

  • Author

Hi Werner,

 

thanks for your reply, and sorry for not directly adding logs.

 

I´m on a Helios64 Buster Image

 

http://ix.io/3Fh9

 

  • Author

Nobody any idea how to move the datadir correclty?

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.