Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Log In
Found the internet!

MariaDB

r/mariadb

1
Posted by5 days ago

I have a server running centos 7. It is running Mariadb 10.2.39.

I would like to change the data directory from the root partition to the home partition.

I have tried a couple of tutorials like:

https://www.digitalocean.com/community/tutorials/how-to-change-a-mariadb-data-directory-to-a-new-location-on-centos-7


but have been unsuccessful finding existing variable described in the tutorial. My /etc/my.cnf file doesn't have an existing data directory entry. I see

## This group is read both by the client and the server

# use it for options that affect everything

#

[client-server]

1
7 comments
1
Posted by5 days ago
1
1 comment
1
Posted by17 days ago

I have been able to successfully enable TDE using the File Key Management plugin by following this guide https://mariadb.com/resources/blog/mariadb-encryption-tde-using-mariadbs-file-key-management-encryption-plugin/

I would like to store my key on a mounted drive. When I copy the key and change the paths in my.cnf the server fails to start. I can change the file paths back and it will start. I've ruled out mounting and permissions by using a different local folder.

my.cnf encryption section
plugin_load_add = file_key_management
file_key_management_filename = /home/testuser/mysql/encryption/keyfile.enc
file_key_management_filekey = FILE:/home/testuser/mysql/encryption/keyfile.key
file_key_management_encryption_algorithm = AES_CTR

innodb_encrypt_tables = FORCE
innodb_encrypt_log = ON
innodb_encrypt_temporary_tables = ON

encrypt_tmp_disk_tables = ON
encrypt_tmp_files = ON
encrypt_binlog = ON
aria_encrypt_tables = ON

innodb_encryption_threads = 4
1
2 comments
4

About Community

MariaDB Server is an open source relational database
Created Mar 17, 2013

1.9k

Members

6

Online

Moderators

Moderator list hidden. Learn More