Apple

"unknown column" "missing table" "duplicate column" error / sql problems / SQLDriverLogFile < answer on 1st post of 1st page

1929 posts in this topic

I have the exact same problem (and I confirm, the thread linked doesn't have the answer).

I pulled the core, db and downloaded the world file yesterday.

I followed the tutorial (with quite some difficulty).

The auth server starts but I get the same error as OP when starting the world server. What to do ?

 

Edit :

System : Windows 7 64 bits

Core version : I don't know where to find that, pulled yesterday.

DB version : I don't know where to find that, pulled yesterday.

World file : TDB_full_434.05_2013_07_17.sql

 

I have updated the world db once only.

Edited by bj51
0

Share this post


Link to post
Share on other sites

Hi there

I'm a newbie, trying to compile my first core after playing on repacks for a while.

 

For starters :

Win 7 64,

latest 4.3.4 core and db (pulled on the 22)

TDB_full_434.05_2013_07_17.sql

 

I followed the tutorial on http://collab.kpsn.org/display/tc/How-To_Win+4.3.4 to try and set up the server (with quite some difficulty, this is my first time doing a bunch of stuff here).

All programs used are at least the same version as the one needed.

 

At the end, I have the following error starting the world server :

In mysql_stmt_prepare() id: 55, sql: "SELECT name, permission, help FROM command"
Unknown column 'permission' in 'field list'

From the possible reasons I read from the FAQ, I can't find the one responsible.

I dropped the world dB and recreated It, being careful not to apply the same update twice, but the problem is persistant. And since I'm a newbie, I'm quite lost.

 

What to do, please ?

 

PS : please don't send me that pedantic bot who links you to the FAQ...

0

Share this post


Link to post
Share on other sites

with quite some difficulty, this is my first time doing a bunch of stuff here

 

Highly recommend you do not start your use of TC with the 434 branch. The 434 branch is not for inexperienced users and inherently comes with its own set of difficulties which TC expects you to be capable of figuring out on your own, thus 434 is generally not supported (as in, we don't address issues with this branch because of the previous reason).

 

Your database does not reflect the required structure necessary for the revision of core you are using. This could be one of several reasons:

 

  1. 434 is not synced with the master repo, in which case some changes are not yet reflected, making it impossible to run 434 using the most recent commit. In this case, you should determine the last revision at which 434 TDB was released, and then compile using that revision. You can then safely start the core without issues (keeping in mind that you need not apply updates, you only need TDB[434])
  2. you incorrectly applied 434 DB updates. Follow the guide verbatim and this will not happen

 

TC provides a very clear disclaimer on the 434 guides.

 

"The database and the core are alpha, early development, and are only meant to be used for development purposes".

4.3.4 is still in development! Do not expect this to be a fully functioning, production server. I don't believe it is even in Alpha stages yet. Use for fun, or for helping the project.

 

Please bear this in mind, and expect things to go wrong.

0

Share this post


Link to post
Share on other sites

I was doing my monthly update to the latest version of the core, and was surprised to see errors thrown in importing the updates from /sql/updates/auth

Table 'auth.rbac_group_roles' doesn't exist
Table 'auth.rbac_role_permissions' doesn't exist

I attempted a variety of troubleshooting methods, including manually adding the tables, to no avail. I eventually decided to start the server to see if it threw any errors, it didn't, so I logged in, and discovered all of the gm commands were disabled. I went to the worldserver console and reset my account level, it said it completed successfully, but after reologing in, commands still didn't work.

I tried manually setting my gmlevel in the database. Nope.

I dumped the whole auth database, rebuilt it from the base, re-applied all the updates. It still threw the missing table errors, and I still couldn't set the account level.

I've been running Trinity for over a year wuithout even the slightest issue before, I haven't the slightest clue wha I may have done wrong this time.

Edited by Ness199X
0

Share this post


Link to post
Share on other sites

If you're getting those as a result of a DB update, it's because they have already been removed (i.e., you're applying updates incorrectly). Those tables, along with a handful of others, were removed. RBAC was essentially condensed to 4 tables. Take a look at the documentation for more info.

 

As far as your GM commands are concerned, you need to add the appropriate accounts to rbac_account_permissions (specifically, for admin access, your account and permission 196, 197 for GM, 198 for mod, etc). Alternatively you can use the .rbac account grant console command. [.rbac account grant acctid 196]

 

Then take a look at your rbac_linked_permissions to see what each of those roles (permissions with other permissions assigned to them) has. To see all the "default" roles, just filter this table with keyword "role".

0

Share this post


Link to post
Share on other sites

Edit: I went through the rbac tables and made the edits you mentioned, but I still cannot access gm commands.

Edit2: I dumped the auth DB again and now everything is working. I hate when I fix things without knowing why. Anyways, solved.

Edited by Ness199X
0

Share this post


Link to post
Share on other sites

I dumped the whole auth database, rebuilt it from the base, re-applied all the updates.

 

This is wrong. If you dumped the auth database, and rebuilt it using source/sql/base, you do *not* need to apply updates. 

 

Check rbac_linked_permissions and see what permissions are linked to permission 196. Also make sure your account is listed as "level 3" in trinity.account_access.

0

Share this post


Link to post
Share on other sites

we shouldn't be using any number levels at all, since RBAC is supposed to get rid of that clumsy system.

0

Share this post


Link to post
Share on other sites

+Guybrush

 

Why "level 4"? When you do "help account set gmlevel" it says the range is 0 to 3.

 

Yeah...I meant 3.

 

 

we shouldn't be using any number levels at all, since RBAC is supposed to get rid of that clumsy system.

 

I agree, but not yet anyway, not while the core still relies on it. See "rbac_default_permissions" which defines the rbac_permissions based on access level.

0

Share this post


Link to post
Share on other sites

Hello,

 

i used the last rev from the TrinityCore 3.3.5a.

I have compiled the TrinityCore on my Linux Debian server.

All okay.

Then i insert the "auth"-database in my mysql. ("TrinityCore/sql/base/auth_database.sql")

When i am insert the updates from "TrinityCore/sql/updates/auth" show me this error:

mysql> . 2013_08_25_00_auth.sql
ERROR 1060 (42S21): Duplicate column name 'token_key'
mysql> . 2013_08_30_00_auth_misc.sql
Query OK, 7 rows affected (0.00 sec)

Query OK, 17 rows affected (0.01 sec)
Records: 17  Duplicates: 0  Warnings: 0

ERROR 1146 (42S02): Table 'auth.rbac_role_permissions' doesn't exist
ERROR 1146 (42S02): Table 'auth.rbac_role_permissions' doesn't exist

Who can i download the new correct auth-database whith RBAC?

 

Sry my english is not so good

Greetings from Germany!

0

Share this post


Link to post
Share on other sites

You don't need to run characters/auth updates after installing base databases.

0

Share this post


Link to post
Share on other sites

THX

The authserver works...

 

But is the table "creature_transport" in the world-database outdated?

In the SQL-Updates is a query like this: DROP TABLE IF EXISTS `creature_transport`;

And i cant find a sektion to create a new table named "creature_transport"...?!

 

Thx 4 your help

0

Share this post


Link to post
Share on other sites
hello good I explained what happened to me after compiling and other
when configuring the server as usual e echo ago but now when I try to open the WorldServer me the following error jumps.
 
In mysql_stmt_prepare () id: 53, sql: "SELECT name, permission, help FROM command"
Unknown column 'permission' in 'field list'
 
how could I fix it?
 
pardon my English

Good because the servant does not initiate me if I put well the information. The following thing is said. I put trinity not to put my information
 
 
In mysql_stmt_prepare() id: 53, sql: "SELECT name, permission, help FROM command"
Unknown column 'permission' in 'field list'
DatabasePool world NOT opened. There were errors opening the MySQL connections. Check your SQLDriverLogFile for specific errors.
Cannot connect to world database trinity;3306;root;trinity;world

DBErrors.rar

0

Share this post


Link to post
Share on other sites

--- Canned message start ---

Read http://www.trinitycore.org/f/topic/1518-trouble-with-your-trinity-install-readme-1st-faqs/

Also please Look in upper right hand corner of the forum, there is a button labeled search field, feel free to search for your issues first before posting, most questions like this one have already been answered.

If you still cannot find the answers you seek feel free to make a post and tell us the steps you took to resolve this issue and we will do our best to help you.

--- Canned message end ---

0

Share this post


Link to post
Share on other sites

I am having this very same problem.

 

I tried everything.

 

Just even download the whole core/db again and did a clean install.

 

Is any update with world db has to do with that error?

 

The only comands I can use right now are .gm on/off, mod speed and levelup. Besides that I cant use anything.

 

Can anyone PLEASE do a step by step to add an account to have all commands or any command?

 

Really appreciate. Trying this since yesterday, I read everything and did many searchs, but I cant figure this out :(

 

 

EDIT: Whoever is getting that same error, mine was solved after I updated my command table. Freaking thing :(

Edited by PhoenixSong
0

Share this post


Link to post
Share on other sites

I've followed everything so far on how to compile and now I'm executing the sql files. The character_databse sql located in Trinity/sql/base/character_databse gives me 2 query warnings

 

What am I doing wrong?

Edited by zeukin
0

Share this post


Link to post
Share on other sites

we are wizards and we can read mind of poster and know the warning.

Where can I get the logs from to see the warning?

Hmm I tried importing characters_database with sqlyog instead and no errors appeared, this could be a heidisql problem then?

Edited by zeukin
0

Share this post


Link to post
Share on other sites

Where can I get the logs from to see the warning?

Hmm I tried importing characters_database with sqlyog instead and no errors appeared, this could be a heidisql problem then?

 

Adding to what Guybrush stated... Iv'e always imported from command line. I've been told otherwise (no idea why), but I have NEVER had a problem.

0

Share this post


Link to post
Share on other sites

Hello everyone.

 

I'm having some trouble with in game commands for RBAC.

 

--To answer the basic questions--

 

I have a self-compile made today.

I have updated the world database

I have not updated character or auth database.

I have created accounts and given them security through console.

(.account create test test1 | .account set gmlevel test 3 -1)

The auth database is set up correctly with all four RBAC tables, and the linked permissions are set properly. 

 

Players: No commands, unable to access BGs/Arenas/Etc.
Moderator: ^

Gamemaster: ^^

Administrator: ^^^

 

Not sure what else I could do. I've been looking around the forums for a few hours trying to figure out how to fix this.

0

Share this post


Link to post
Share on other sites

Don't use a GUI editor to import SQL. Do it from command line.

What are the commands used to import SQL files?

 

Thanks for helping me out bud.

0

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By labaouici
      Hello!
      I was checking my DB but I didn't find any table that could tell "this is when it will happen"
      I wonder how it work, I activated it but is there a table to put the unix time? (like to do : every wednesday, at 15:25:30 there will be the distribution)
      Thanks!
    • By Szone
      Hello,
       
      I have a TrinityCore 3.3.5 realm and i want to make a second realm (4.3.4), but the question is : can I run/install on the same server (Ubuntu 16.04 server) ACE and BOOST ?    
       
      Thank you!
       
       
    • By belziere
      Hi guys, i compiled my server under linux and i saw the thing about needing a connection patcher for my client (that needs to be compiled under windows) so i compiled my project on windows too but i can't find the connection patcher, it is nowhere to be seen !
    • By Joy
      Edit By Aokromes:

      If you can't compile check that you meet requirements:

      https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130068/Requirements


      If you get SSE2 error use:

      -DCMAKE_C_FLAGS="-msse -msse2 -msse3"
      -DCMAKE_CXX_FLAGS="-msse -msse2 -msse3"

      If you get mysql libs error you miss MySQL development files
      These files are shipped with MySQL Server but to make it easier we packed the libs and include files for both 32 bits and 64 bits.
      Extract the files to a known location, e.g, C:/mysql_libs
      https://github.com/TrinityCore/TrinityCore/releases/download/TDB335.55/mysql_lib.zip
      If you get error 0xc000007b at start is that you are mixing 32 and 64 bits libraries.
    • By eskfop
      I am compiling on Linux, trying to make a 1.12 private server on Manjaro Linux. I'm having some issues with Cmake.
      To run Cmake succesfully, I used the following command, since Cmake found openssl 1.1:
       cmake .. -DPREFIX=/home/wow/bin -DOPENSSL_LIBRARIES=/usr/lib/libssl.so.1.0.0 -DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0/
       
      Configuration worked. After running 'make' I got into trouble. Here's the output of my Terminal:
       make
      (....)
      [ 20%] Linking CXX executable bnetserver
      CMakeFiles/bnetserver.dir/Main.cpp.o: In function `main::{lambda()#3}::operator()() const':
      Main.cpp:(.text+0x53d): undefined reference to `SSLeay_version'
      CMakeFiles/bnetserver.dir/Main.cpp.o: In function `boost::asio::ssl::detail::openssl_init_base::do_init::do_init()':
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initC2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initC5Ev]+0x1c): undefined reference to `SSL_library_init'
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initC2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initC5Ev]+0x21): undefined reference to `SSL_load_error_strings'
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initC2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initC5Ev]+0x26): undefined reference to `OPENSSL_add_all_algorithms_noconf'
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initC2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initC5Ev]+0x2f): undefined reference to `CRYPTO_num_locks'
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initC2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initC5Ev]+0xa2): undefined reference to `CRYPTO_set_locking_callback'
      CMakeFiles/bnetserver.dir/Main.cpp.o: In function `boost::asio::ssl::detail::openssl_init_base::do_init::~do_init()':
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initD2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initD5Ev]+0x12): undefined reference to `CRYPTO_set_locking_callback'
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initD2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initD5Ev]+0x17): undefined reference to `ERR_free_strings'
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initD2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initD5Ev]+0x1c): undefined reference to `EVP_cleanup'
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initD2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initD5Ev]+0x21): undefined reference to `CRYPTO_cleanup_all_ex_data'
      Main.cpp:(.text._ZN5boost4asio3ssl6detail17openssl_init_base7do_initD2Ev[_ZN5boost4asio3ssl6detail17openssl_init_base7do_initD5Ev]+0x3a): undefined reference to `ENGINE_cleanup'
      CMakeFiles/bnetserver.dir/Server/SslContext.cpp.o: In function `boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)':
      SslContext.cpp:(.text._ZN5boost4asio3ssl7contextC2ENS1_12context_base6methodE[_ZN5boost4asio3ssl7contextC5ENS1_12context_base6methodE]+0x1a9): undefined reference to `SSLv23_method'
      SslContext.cpp:(.text._ZN5boost4asio3ssl7contextC2ENS1_12context_base6methodE[_ZN5boost4asio3ssl7contextC5ENS1_12context_base6methodE]+0x1c5): undefined reference to `SSLv23_client_method'
      SslContext.cpp:(.text._ZN5boost4asio3ssl7contextC2ENS1_12context_base6methodE[_ZN5boost4asio3ssl7contextC5ENS1_12context_base6methodE]+0x1e1): undefined reference to `SSLv23_server_method'
      SslContext.cpp:(.text._ZN5boost4asio3ssl7contextC2ENS1_12context_base6methodE[_ZN5boost4asio3ssl7contextC5ENS1_12context_base6methodE]+0x1fd): undefined reference to `SSLv23_method'
      SslContext.cpp:(.text._ZN5boost4asio3ssl7contextC2ENS1_12context_base6methodE[_ZN5boost4asio3ssl7contextC5ENS1_12context_base6methodE]+0x247): undefined reference to `SSLv23_client_method'
      SslContext.cpp:(.text._ZN5boost4asio3ssl7contextC2ENS1_12context_base6methodE[_ZN5boost4asio3ssl7contextC5ENS1_12context_base6methodE]+0x28a): undefined reference to `SSLv23_server_method'
      ../../../dep/gsoap/libgsoap.a(stdsoap2.cpp.o): In function `soap_ssl_init':
      stdsoap2.cpp:(.text+0x6752): undefined reference to `SSL_library_init'
      stdsoap2.cpp:(.text+0x6757): undefined reference to `OPENSSL_add_all_algorithms_noconf'
      stdsoap2.cpp:(.text+0x675c): undefined reference to `SSL_load_error_strings'
      ../../../dep/gsoap/libgsoap.a(stdsoap2.cpp.o): In function `ssl_auth_init':
      stdsoap2.cpp:(.text+0x69d7): undefined reference to `SSLv23_method'
      ../../../dep/gsoap/libgsoap.a(stdsoap2.cpp.o): In function `tcp_connect':
      stdsoap2.cpp:(.text+0x8ffd): undefined reference to `SSL_state'
      stdsoap2.cpp:(.text+0x91d0): undefined reference to `sk_pop_free'
      stdsoap2.cpp:(.text+0x91f9): undefined reference to `sk_num'
      stdsoap2.cpp:(.text+0x9225): undefined reference to `sk_value'
      stdsoap2.cpp:(.text+0x92c1): undefined reference to `sk_pop_free'
      collect2: fout: ld gaf exit-status 1 terug
      make[2]: *** [src/server/bnetserver/CMakeFiles/bnetserver.dir/build.make:348: src/server/bnetserver/bnetserver] Fout 1
      make[1]: *** [CMakeFiles/Makefile2:1256: src/server/bnetserver/CMakeFiles/bnetserver.dir/all] Fout 2
      make: *** [Makefile:130: all] Fout 2
       
      I presume I'm having trouble because of OpenSSL and Boost, but I'm not entirely sure. At least I dont know how to solve this problem. Could anyone help me with this problem?
      Many thanks in advance!