Jump to content
  • 0

Question

Posted

I am trying to excute l2jdb.sql to my linux server , running for 5 hours and still not finish  is this suppose to be so many hours?

 

I run this command:

 

mysql -u user -p data_base_name_here < l2jdb.sql

 

From ps -A i see one process    7 ?        05:28:58 migration/1 .

 

Thanks.

 

15 answers to this question

Recommended Posts

  • 0
Posted

it depends on the computer, my laptop executes the same sql scripts in 3 minutes while my desktop some hours.... however you shall not care about the time it takes since your sql backup is very big.... so just let it finish

  • 0
Posted

it depends on the computer, my laptop executes the same sql scripts in 3 minutes while my desktop some hours.... however you shall not care about the time it takes since your sql backup is very big.... so just let it finish

 

I'm not trying to be a prick but is it your job to shitpost useless advice to get your post count up or something? What kinda -beep-ing dumb advice is that. You shouldn't ever have a query that takes 5 hours to finish, especially if it's just inserting data based on their key values back into the database. If you're having performance problems refer to the logs inside your mysql directory. A query log is generated by default I think of SQL queries that take longer than 15 minutes to execute so you can see for example what its trying to do.

 

 

  • 0
Posted

I'm not trying to be a prick but is it your job to shitpost useless advice to get your post count up or something? What kinda -beep-ing dumb advice is that. You shouldn't ever have a query that takes 5 hours to finish, especially if it's just inserting data based on their key values back into the database. If you're having performance problems refer to the logs inside your mysql directory. A query log is generated by default I think of SQL queries that take longer than 15 minutes to execute.

my advise whas simple, patience... :/

  • 0
Posted

my advise what simple, patience... :/

 

No your advice is retarded and misguiding.

http://stackoverflow.com/questions/12152012/why-how-do-my-sql-queries-get-faster-with-use

 

1.300.000 entries based on a WHERE condition making the query more complicated.

Time: 3 seconds cached to 5 minutes uncached.

 

Sure seems like hell of a lot less than 300 minutes in comparison. GameBlonD don't accept this guys answer. There could potentionally be something wrong with your mysql instance setup or configuration. If you follow this guys advice you could be running a faulty installation without knowing. Get to the real issues of problems, don't half ass it.

  • 0
Posted

No your advice is retarded and misguiding.

http://stackoverflow.com/questions/12152012/why-how-do-my-sql-queries-get-faster-with-use

 

1.300.000 entries based on a WHERE condition making the query more complicated.

Time: 3 seconds to 5 minutes.

 

Sure seems like hell of a lot less than 300 minutes in comparison. GameBlonD don't accept this guys answer. There could potentionally be something wrong with your mysql instance setup or configuration. If you follow this guys advice you could be running a faulty installation without knowing. Get to the real issues of problems, don't half ass it.

 

nope, its just how the cpu priorizes that execution, nothing will be abnormal after installation even if it takes 2 days...

  • 0
Posted

nope, its just how the cpu priorizes that execution, nothing will be abnormal after installation even if it takes 2 days...

 

You're post doesn't even make sense.

 

This guy is using linux which makes me believe he probably either had to build the binaries himself or grabbed pre-built binaries from the repositories. In that case, a portion of his configuration had to be done by him and not an automatic launcher. Theres potentionally something here he could have gotten wrong.

 

Theres no way he should ever accept the answer 'wait'. Unless this guy had about 20 billion players the relationships between these tables are far from complex, and are simply meant to store persistent data when not in use by the gameserver. There is absolutely no reason what so ever a backup installation should take 5 hours. I work with ERP systems which have millions upon millions of entries regarding different business stuff. The most I've seen one of these take is about 8 hours (given that it's a dedicated database server, but still).

 

  • 0
Posted

You're post doesn't even make sense.

 

This guy is using linux which makes me believe he probably either had to build the binaries himself or grabbed pre-built binaries from the repositories. In that case, a portion of his configuration had to be done by him and not an automatic launcher. Theres potentionally something here he could have gotten wrong.

 

Theres no way he should ever accept the answer 'wait'. Unless this guy had about 20 billion players the relationships between these tables are far from complex, and are simply meant to store persistent data when not in use by the gameserver. There is absolutely no reason what so ever a backup installation should take 5 hours. I work with ERP systems which have millions upon millions of entries regarding different business stuff. The most I've seen one of these take is about 8 hours (given that it's a dedicated database server, but still).

 

ok mr obvius, im not expert on these things but I tried to say to that guy that the execution will not have any problem... I know from personal experience that the first time your CPU encounters a specific execution it will get decreased over time as more executions take place thereafter...

 

Its obvius that the first execution takes time, and he has to be patient.... Depending on the staff stored on that sql the time will increase even more, cause its the first execution.

 

Do you think he has a super computer? he has a home desktop they are not ment to be super fast with executions of 1kk lines. just common sense

  • 0
Posted

ok mr obvius, im not expert on these things but I tried to say to that guy that the execution will not have any problem... I know from personal experience that the first time your CPU encounters a specific execution it will get decreased over time as more executions take place thereafter...

 

Its obvius that the first execution takes time, and he has to be patient.... Depending on the staff stored on that sql the time will increase even more, cause its the first execution.

 

Do you think he has a super computer? he has a home desktop they are not ment to be super fast with executions of 1kk lines. just common sense

 

It's called caching. For example when you do a SELECT from your database that entry that you just searched for is placed into your RAM so that if you search for the entry a second time it will be found quicker. And yes, as you saw in that link's example that I posted each time his selection query speed improved. However this doesn't apply here. Do you remember the first time you installed your Lineage 2 database? There are a lot of rows there but it doesn't take 5 hours to install the entire thing. It's also never taken me more than a few moments to reinstall an SQL backup and I mostly develop from home on my own computers, which aren't fancy either.

 

He doesn't need a super computer, people have been installing mysql on computers with 64MB and even 128MB ram. It's all dependent on the complexity of your data.

 

If you're not an expert on these things fine but don't give somebody such a sad excuse for an answer. You should be giving advice to users to consider all possibilities of things other than "just accept your issue." You don't learn things by just accepting whats put infront of you, you learn things by seeing mistakes you've made or poking around the details of technical things. Also since this forum's underlying premise is pretty much software development and programming.

  • 0
Posted

It's called caching. For example when you do a SELECT from your database that entry that you just searched for is placed into your RAM so that if you search for the entry a second time it will be found quicker. And yes, as you saw in that link's example that I posted each time his selection query speed improved. However this doesn't apply here. Do you remember the first time you installed your Lineage 2 database? There are a lot of rows there but it doesn't take 5 hours to install the entire thing. It's also never taken me more than a few moments to reinstall an SQL backup and I mostly develop from home on my own computers, which aren't fancy either.

 

He doesn't need a super computer, people have been installing mysql on computers with 64MB and even 128MB ram. It's all dependent on the complexity of your data.

 

If you're not an expert on these things fine but don't give somebody such a sad excuse for an answer. You should be giving advice to users to consider all possibilities of things other than "just accept your issue." You don't learn things by just accepting whats put infront of you, you learn things by seeing mistakes you've made or poking around the details of technical things. Also since this forum's underlying premise is pretty much software development and programming.

 

Lol, this guy makes manual install of a backup sql not empty tables, you think that a pool of 500 players or even more gets executed in 60 seconds?

  • 0
Posted

Lol, this guy makes manual install of a backup sql not empty tables, you think that a pool of 500 players or even more gets executed in 60 seconds?

 

Best: 0,031 seconds

Worst; 0,140 seconds

 

900 fresh uncached inserts, finished in rougly +/- 30 seconds to 126 (2 min) seconds (900 entries * ~0,031 seconds [0,14]):

3600 fresh uncached inserts, finished in roughly +/- 111 seconds to 504 (8,4 min) seconds (3600 entries * ~0,031 seconds [0,14]):

5fFgQ3c.jpg

aM0ADwa.jpg

 

By my estimations on my dual core AMD from 20 years ago 500 players should be done in about +/- 15,5 to 70 seconds. That seems a lot less than 18.000 doesn't it?

 

 

  • 0
Posted

900 fresh uncached inserts, finished in rougly +/- 30 seconds ( 900 entries * ~0.031 seconds):

3600 fresh uncached inserts, finished in roughly +/-2 minutes (3600 entries * ~0.031 seconds):

5fFgQ3c.jpg

aM0ADwa.jpg

 

By my estimations on my dual core AMD from 20 years ago 500 players should be done in about +/- 15.5 seconds.

 

 

 

w/e u still didnt respond to his problem

  • 0
Posted

w/e u still didnt respond to his problem

 

Perhaps you should check your query logs to see whats going on.

 

Yes I did, I told him to check his query log. Infact it's the second post here. When MySQL executes a really long query it begins to write what it's doing inside a log file so you can understand what's wrong with your query.

  • 0
Posted

Guys seems like linux command was wrong i run the 3 sql files that i wanted with this command .\ accounts.sql

From mysql  it finds the location auto and execute it.

Guest
This topic is now closed to further replies.


  • Posts

    • This update resaves 25_25 from the original (with sounds) (without the cave below) Some emitter fixes (removed waterfalls with high-poly meshes) The geodata is old, but it works Everything else is unchanged Download P.S. The effect files are taken from the high client for Interlude, so if you're experiencing critical skills, use the default ones for your Version.  
    • GX-Ext Which file of the svn files should i edit to make blow skills to have 100% chance so i can add the settings in the IlExt.ini? because when im changing it from the skilldata.txt it just helps
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • 我们感谢您的 反馈 并希望让服务变得更加 优秀! 如果您使用过我们的服务并愿意分享您的体验(任何体验——积极或建设性),请在Trustpilot上留下评价,并获得$1作为感谢。 链接: https://www.trustpilot.com/review/socnet.pro 如何获得奖励: 1. 前往Trustpilot并留下您的评价 2. 向我们发送发布确认截图,以及带有与评价用户名一致的授权账户截图。 3. 指定哪个商店应收到这 $1 奖励。根据商店不同,可能需要您的用户名/电子邮箱。 您的反馈帮助我们成长,并让项目对社区中的每一位成员变得更好。感谢您与我们同行! 条款: 此活动仅适用于一个唯一用户。不允许多账号行为。 项目有效链接: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快捷且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前的 促销和特别优惠列表 用于购买我们提供的产品与服务: 1. 您可在首次购买时使用优惠码:SOCNET(15% 折扣) 2. 获得 $1 商店余额或 10–20% 折扣——只需在我们网站注册后,按照模板填写您的用户名:“SEND ME BONUS, MY USERNAME IS...”并在我们的论坛主题中发布! 3. 首次启动 SMM 面板可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道以及 Stars 购买机器人中每周都有 Telegram Stars 抽奖! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock