Hey everyone!
I had a major failure doing things incorrectly. My woes are documented in detail here: https://forums.freebsd.org/threads/..._packet_size-variable-help.85015/#post-565507
I took the great advice of richardtoohey2 (Who I consider a friend here on FreeBSD Forums) and created a New Maria DB 10.5 Jail.
I installed everything. I then copied all /var/db/mysql (from Crashed MariaDB 10.5 Server Jail) to the brand new Maria DB 10.5 Jail that's working and currently running.
This is how things are setup now:
datadir paths:
/var/db/mysql (Contains the new Fresh installation of Maria DB 10.5 that works)
/var/db/mysql0 (Contains the Old Maria DB 10.5 with all my databases and files; which contains all my tables inside each folder perfectly *.ibd's, *.frm's, etc.)
I updated /usr/local/etc/mysql/conf.d/server.cnf and changed the following line:
to:
then issued the following to restart MariaDB:
All works fine regarding the server, still. With this output:
I have over 100+ databases that I need on this new installation. What are the steps for restoring them properly?
Do I have to re-create each database on the new one and then manually copy over the contents of each folder?
Is there anyway to preserve all Permissions, and Previous Schema and load it into the new one?
Update - 05/02/2022 @ Approx. 17:23:
1) I edited /usr/local/etc/mysql/conf.d/server.cnf and changed the datadir = /var/db/mysql0 back to datadir = /var/db/mysql
2) mv /var/db/mysql /var/db/mysql_disabled
3) mv /var/db/mysql0 /var/db/mysql
4) chown -R mysql:mysql /var/db/mysql
5) service mysql-server restart
Then attempted a mysql -u root -p and received a password error, hopefully indicating that I restored my old MariaDB 10.5 Server and it truly wants my Credentials from the Crashed MariaDB 10.5 Server.
I will report my findings once I login with other Credentials! Thank you all!
Best Regards,
Brandon!
I had a major failure doing things incorrectly. My woes are documented in detail here: https://forums.freebsd.org/threads/..._packet_size-variable-help.85015/#post-565507
I took the great advice of richardtoohey2 (Who I consider a friend here on FreeBSD Forums) and created a New Maria DB 10.5 Jail.
I installed everything. I then copied all /var/db/mysql (from Crashed MariaDB 10.5 Server Jail) to the brand new Maria DB 10.5 Jail that's working and currently running.
This is how things are setup now:
datadir paths:
/var/db/mysql (Contains the new Fresh installation of Maria DB 10.5 that works)
/var/db/mysql0 (Contains the Old Maria DB 10.5 with all my databases and files; which contains all my tables inside each folder perfectly *.ibd's, *.frm's, etc.)
I updated /usr/local/etc/mysql/conf.d/server.cnf and changed the following line:
Code:
datadir = /var/db/mysql
to:
Code:
datadir = /var/db/mysql0
then issued the following to restart MariaDB:
Code:
# service mysql-server restart
All works fine regarding the server, still. With this output:
Code:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.5.15-MariaDB FreeBSD Ports
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
root@localhost [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
3 rows in set (0.003 sec)
root@localhost [(none)]>
I have over 100+ databases that I need on this new installation. What are the steps for restoring them properly?
Do I have to re-create each database on the new one and then manually copy over the contents of each folder?
Is there anyway to preserve all Permissions, and Previous Schema and load it into the new one?
Update - 05/02/2022 @ Approx. 17:23:
1) I edited /usr/local/etc/mysql/conf.d/server.cnf and changed the datadir = /var/db/mysql0 back to datadir = /var/db/mysql
2) mv /var/db/mysql /var/db/mysql_disabled
3) mv /var/db/mysql0 /var/db/mysql
4) chown -R mysql:mysql /var/db/mysql
5) service mysql-server restart
Then attempted a mysql -u root -p and received a password error, hopefully indicating that I restored my old MariaDB 10.5 Server and it truly wants my Credentials from the Crashed MariaDB 10.5 Server.
I will report my findings once I login with other Credentials! Thank you all!
Best Regards,
Brandon!