Jump to content
  • 0

Ubuntu based server ERROR 1146 (42S02) at line 431: Table 'rathena.item_db' doesn't exist


cEdge-01

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  05/29/22
  • Last Seen:  

Hi,

I have an issue following the guide based on Ubuntu in github and when I put this line as directed:

'cat ./sql-files/*.sql | mysql -u rathena -p rathena'

I get this error : ERROR 1146 (42S02) at line 431: Table 'rathena.item_db' doesn't exist

Can you please assist me with this error message.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  218
  • Reputation:   152
  • Joined:  11/28/11
  • Last Seen:  

are you use db sql? if yes import rathena.item_db on sql database

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  05/29/22
  • Last Seen:  

10 minutes ago, Slammer said:

are you use db sql? if yes import rathena.item_db on sql database

I believe it is db sql(just purely following the guide written on the wiki). When you say import is it item_db.sql because I cannot see any rathena.item_db or where this is meant to come from.

Do you have an example of how to do so?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  218
  • Reputation:   152
  • Joined:  11/28/11
  • Last Seen:  

4 hours ago, cEdge-01 said:

I believe it is db sql(just purely following the guide written on the wiki). When you say import is it item_db.sql because I cannot see any rathena.item_db or where this is meant to come from.

Do you have an example of how to do so?

at folder sql-files just import to database ragnarok.

like main.sql and log.sql

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  05/29/22
  • Last Seen:  

I figured it out, Thank you!

It turns out they have to be imported in a particular order.

This is the proper order that works:
cat ./sql-files/item_cash_db.sql | mysql -u rathena -p rathena
cat ./sql-files/item_cash_db2.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db_equip.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db_etc.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db2.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db_re.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db_re_equip.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db_re_etc.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db_re_usable.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db_usable.sql | mysql -u rathena -p rathena
cat ./sql-files/item_db2_re.sql | mysql -u rathena -p rathena
cat ./sql-files/mob_db.sql | mysql -u rathena -p rathena
cat ./sql-files/mob_db2.sql | mysql -u rathena -p rathena
cat ./sql-files/mob_db_re.sql | mysql -u rathena -p rathena
cat ./sql-files/mob_db2_re.sql | mysql -u rathena -p rathena
cat ./sql-files/mob_skill_db.sql | mysql -u rathena -p rathena
cat ./sql-files/mob_skill_db2.sql | mysql -u rathena -p rathena
cat ./sql-files/mob_skill_db_re.sql | mysql -u rathena -p rathena
cat ./sql-files/mob_skill_db2_re.sql | mysql -u rathena -p rathena
cat ./sql-files/main.sql | mysql -u rathena -p rathena
cat ./sql-files/logs.sql | mysql -u rathena -p rathena
cat ./sql-files/roulette_default_data.sql | mysql -u rathena -p rathena

Instead of 'cat ./sql-files/*.sql | mysql -u rathena -p rathena'

Edited by cEdge-01
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...