Jump to content
  • 0

Issue with database mismatch structure


KillRIde

Question

Hi guys,

I'm new here and I tried to run my first server.

Here is the issue I have.

The table `db_version` indicates that your [Character] database does not match the expected structure!

  [A] You have database Version: 22
                      Structure: 2
                        Content: 1
                    Description: Add_field_comments

  [B] The core needs database Version: 22
                            Structure: 4
                              Content: 1
                          Description: Add_Quest_Tracker_Table

You must apply all updates after [A] to [B] to use MaNGOS with this database.
These updates are included in the database/Character/Updates folder.
 

Thanks for the help

Link to comment
Share on other sites

23 answers to this question

Recommended Posts

  • 0
1 hour ago, KillRIde said:

Hi guys,

I'm new here and I tried to run my first server.

Here is the issue I have.

The table `db_version` indicates that your [Character] database does not match the expected structure!

  [A] You have database Version: 22
                      Structure: 2
                        Content: 1
                    Description: Add_field_comments

  [B] The core needs database Version: 22
                            Structure: 4
                              Content: 1
                          Description: Add_Quest_Tracker_Table

You must apply all updates after [A] to [B] to use MaNGOS with this database.
These updates are included in the database/Character/Updates folder.
 

Thanks for the help

Hey!

This is saying that you need to update your databases.
When you do the initial setup/install of the databases, it does not always include the latest updates that have been created.
If you use the InstallDatabases.bat (Windows) or InstallDatabases.sh (Linux), you will see an option "N" that can be used to do database updates.

If you would prefer to manual updates, then you can find them in the "Characters" folder, "Updates", "Rel22" and you'll find all of the ones that you need to update.

Hope that helps!

Link to comment
Share on other sites

  • 0
4 minutes ago, KillRIde said:

Actually I can log into the game but the server is offline.

Alright - so then that means that you have properly updated database if it proceeded.
If you can login, but get stuck at "Connected". that likely means that you built the mangosd with OpenSSL 3.0 instead of 1.1.

 

We just had another member with similar issues yesterday.
Take a look at: 

Meltie walks through how to change to OpenSSL 1.1, and then there are some comments below for how to upgrade gcc IF necessary.

Link to comment
Share on other sites

  • 0
2 minutes ago, KillRIde said:

And I still have this

 

image.png.69d504ec4bffc7d8b06053027afd8372.png

I also checked to manually update it but I have re121 and 122 not 22

image.png.93ba4f204a4e55d13dcade96d0f3fbf9.png

 

That is an L, not a 1.

So you do have Rel22.

But in the first picture it is showing your CHARACTER database as out of date, you're in your world database folder.

When you go into the Updates/Rel22 folder, you can merge the SQL files to one and then run a command to manually import into your database.

cat *.sql > updateall.sql

mariadb -d character0 < updateall.sql

You may need to change the character0 to whatever you called your database.

I'm also doing this from memory on my phone, so there may be syntax errors or missing parameters.

Link to comment
Share on other sites

  • 0
1 minute ago, KillRIde said:

I guess I'm close to the issue.

 

image.thumb.png.b99376eee68e163a3d2e8a83180a390e.png

How can I apply this?

Yeah you're close but you have to do them in order, you can't just apply the latest one.

See my solution above about merging them into one file, then you can apply that at once.

Link to comment
Share on other sites

  • 0

Ok I've got some good news. It works now after deleted and reinstall the database.

wmonitor shows me a lot of info

 image.thumb.png.c22dc54bca37d76fd9c4ed98953248fd.png

But when I connect using "player" account, I'm directly disconnected and wmonitor stops.

Then I can reconnect but I have a loop on the realmlist. I select my realm and it disconnect and come back to the realmlist

I can add that mangos crash but realm is still running. I don't know where to find logs about this.

Edited by KillRIde
Link to comment
Share on other sites

  • 0
4 hours ago, KillRIde said:

Ok I've got some good news. It works now after deleted and reinstall the database.

wmonitor shows me a lot of info

 image.thumb.png.c22dc54bca37d76fd9c4ed98953248fd.png

But when I connect using "player" account, I'm directly disconnected and wmonitor stops.

Then I can reconnect but I have a loop on the realmlist. I select my realm and it disconnect and come back to the realmlist

I can add that mangos crash but realm is still running. I don't know where to find logs about this.

Glad that it has progressed!

Are you setting up a locally hosted server or public facing?

If public facing, double check your realmlist table entry in the realmd/auth database to ensure that you've correctly assigned the address. Sometimes users (especially those using heidisql as a GUI) week edit the default value instead of the data value.

Link to comment
Share on other sites

  • 0
11 hours ago, KillRIde said:

image.thumb.png.b5341ce0a3b8eab165b3190fb7024c21.png

I've put 172.22.22.86 in localAddress too but no success.

Mangosd crash when I log into the game but I have no logs of the crash

Which version of OpenSSL are you using currently on your machine? OpenSSL 3.x will cause login issues do to it not being supported yet.

Link to comment
Share on other sites

  • 0

@KillRIde
First off you'll have to remove the initial install of OpenSSL by using this command.

sudo apt remove openssl libssl-dev

Then download these packages from Ubuntu repository archive and install the packages.

# Download OpenSSL 1.1.1f packages
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1f-1ubuntu2.19_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1f-1ubuntu2.19_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb

# Install required packages
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
sudo dpkg -i openssl_1.1.1f-1ubuntu2.19_amd64.deb
sudo dpkg -i libssl-dev_1.1.1f-1ubuntu2.19_amd64.deb

To ensure when updates are available for install, to hold back the new version of OpenSSL 3.x libraries with these commands.

sudo apt-mark hold openssl
sudo apt-mark hold libssl-dev

 

Link to comment
Share on other sites

  • 0

I'm now trying to redownload the database and reinstall it but I have this when using git clone

Cloning into 'database'...
fatal: unable to access 'https://github.com/mangoszero/database.git/': server certificate verification failed. CAfile: none CRLfile: none
 

Probably linked to the switch of OpenSSL version

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use