Jump to content
  • 0

How convert txt to sql


BrOgBr

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  97
  • Reputation:   10
  • Joined:  01/21/13
  • Last Seen:  

Someone can help me?

How convert item_db.txt to item_db.sql, like the rAthena's github does with the "SQL synchronization"?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

Just download a perl runtime or w/e it is then execute the file. You don’t have to know Perl to use the tool. For Windows install StrawberryPerl or ActivePerl.

  • Upvote 1
Link to comment
Share on other sites

  • 1

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

1 hour ago, BrOgBr said:

Thank you Secrets and Nitrous.
I'll try here.

@Edit 

@Secrets I need change something at convert_sql.pl?

I tried click in it but nothing happened... (choosing execute Perl Program)

It opens the cmd but closes instantly.

I checked the item_db_re.sql but nothing changed.

Help please.
 

You need to run the file in command line because it needs some additional command line parameters.

  • Love 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  177
  • Reputation:   6
  • Joined:  10/22/18
  • Last Seen:  

On 2/14/2018 at 12:37 PM, BrOgBr said:

I tried but I got this error:

ERROR: Filename_in and Filename_out are required to continue.

It worked!
I edited the convert_sql.pl, now I've learned.

Thank you very much @Secrets :wub:

Hi, how u edit it? Please share your solutions here. Thanks!

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

There are scripts in the tools directory, I think it's something like convert_sql.pl

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  97
  • Reputation:   10
  • Joined:  01/21/13
  • Last Seen:  

1 hour ago, Nitrous said:

There are scripts in the tools directory, I think it's something like convert_sql.pl

I found it.
But I need download Perl?
I don't know how to use perl :(

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  97
  • Reputation:   10
  • Joined:  01/21/13
  • Last Seen:  

Thank you Secrets and Nitrous.
I'll try here.

@Edit 

@Secrets I need change something at convert_sql.pl?

I tried click in it but nothing happened... (choosing execute Perl Program)

It opens the cmd but closes instantly.

I checked the item_db_re.sql but nothing changed.

Help please.
 

Edited by BrOgBr
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  97
  • Reputation:   10
  • Joined:  01/21/13
  • Last Seen:  

55 minutes ago, Secrets said:

You need to run the file in command line because it needs some additional command line parameters.

I tried but I got this error:

ERROR: Filename_in and Filename_out are required to continue.

It worked!
I edited the convert_sql.pl, now I've learned.

Thank you very much @Secrets :wub:

Edited by BrOgBr
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...