In case somebody else is trying to get the database from the 'client hosted' server to a dedicated one:
(Since I'm not familiar with MySQL I might have taken a more complicated way than necessary.
Also I wasn't able to test the result extensively yet. But at a quick glance everything seemed to be at it's place.)
First of all got to 'Life is Feudal Your Own\daemon\mariadb' open the 'my.ini' and change:
- Code: Select all
skip-networking=ON
into
skip-networking=OFF
Now go into the 'Life is Feudal Your Own\daemon\mariadb\bin' folder and create a batch file (e.g. pwrest.bat) with the following content:
- Code: Select all
start "" "YourPath\Life is Feudal Your Own\daemon\mariadb\bin\mysqld.exe" --defaults-file="YourPath\Life is Feudal Your Own\daemon\mariadb\my.ini" --init-file="C:\mysql-init.txt" --console
pause
(You'll have to change the YourPath part to match your Steam common folder e.g. 'D:\Games\Steam\SteamApps\common\'.)
As you may have noticed a 'mysql-init.txt' is mentioned - go to your C: drive, create it with the following content:
- Code: Select all
UPDATE mysql.user SET Password=PASSWORD('YourPassword') WHERE User='root';
FLUSH PRIVILEGES;
Run the batch file. It will use YourPassword as the new password this will be important in the next step.
Next create a new batch file (e.g. mysqld.bat), again in 'Life is Feudal Your Own\daemon\mariadb\bin',:
- Code: Select all
start "" "YourPath\Life is Feudal Your Own\daemon\mariadb\bin\mysqld.exe" --defaults-file="YourPath\Life is Feudal Your Own\daemon\mariadb\my.ini" --console
pause
And a second one (e.g. dump.bat) in the same location:
- Code: Select all
mysqldump.exe --user="root" --password="YourPassword" --databases lif_1 > lif_1.sql
pause
(If you used a different password change the YourPassword part. In case you want to dump a different world change the lif_1 part into the matching number.)
Now you'll need the 'mysqldump.exe', if you already have MariaDB installed for your dedicated server you'll find it in it's 'bin' folder.
Copy it to 'Life is Feudal Your Own\daemon\mariadb\bin'.
Run the mysqld.bat, wait until it's loaded, then run the dump.bat this will created a file called lif_1.sql.
Assuming you already have your dedicated server and MariaDB set up:
Run the server with the world you want to import, in this case world 1 and let it create a fresh database.
Once it's done shut it down and import the life_1.sql (via HeidiSQL for example) into the fresh lif_1 database the server created and you should be done.