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

    • You should buy it then I’ll make a discount  
    • Hi everyone,   In 2014, I completely stepped away from developing L2 servers and doing L2J-related work. Since then, I’ve only opened this server about once a year and helped a few servers and individuals for free. I haven’t taken on any paid L2J work since then.   LINEAGE2.GOLD is a project that has reached about Season 6. The first season launched at the end of 2020 and was a fully rebuilt Gold-style server on the Classic client (protocol 110). It featured many custom systems and enhancements. After several seasons, I decided to abandon the Mobius-based project and move to Lucera, as my goal was to get as close as possible to Interlude PTS behavior while still staying on the L2J platform.   The current project was once again completely rebuilt, this time on the Essence client (protocol 306), and is based on Lucera. Because of that, acquiring a license from Deazer is required.   My Lucera extender includes, but is not limited to: Formulas.java Basic anti-bot detection, which proved quite effective, we caught most Adrenaline users using relatively simple server-side logic, logged them, and took staff action. Simple admin account lookup commands based on IP, HWID, and similar identifiers. In-game Captcha via https://lineage2.gold/code, protected by Cloudflare, including admin commands for blacklisting based on aggression levels and whitelisting. Additional admin tools such as Auto-Play status checks, Enchanted Hero Weapon live sync, force add/remove clans from castle sieges, item listeners for live item monitoring, and more. A fully rewritten Auto-Play system with support for ExAutoPlaySetting, while still using the Auto-Play UI wheel, featuring: Debuff Efficiency Party Leader Assist Respectful Hunting Healer AI Target Mode Range Mode Summoner buff support Dwarf mechanics Reworked EffectDispelEffects to restore buffs after Cancellation. Raid Bomb item support. Reworked CronZoneSwitcher. Prime Time Raid Respawn Service. Community Board features such as Top rankings and RB/Epic status. Custom systems for Noblesse, Subclasses, support-class rewards, and much more.   Depending on the deal, the project can include: The lineage2.gold domain The website built on the Laravel PHP framework The server’s Discord Client Interface source Server files and extender source The server database (excluding private data such as emails and passwords)   I’m primarily looking for a serious team to continue the project, as it would be a shame to see this work abandoned. This is not cheap. You can DM me with offers. If you’re wondering why I’m doing this: I’ve felt a clear lack of appreciation from the L2 community, and I’m not interested in doing charity work for people who don’t deserve it. I’m simply not someone who tolerates BS. Server Info: https://lineage2.gold/info Server for test: https://lineage2.gold/download Over 110 videos YouTube playlist: https://www.youtube.com/watch?v=HO7BZaxUv2U&list=PLD9WZ0Nj-zstZaYeWxAxTKbX7ia2M_DUu&index=113
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..

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