Java/Mysql help!
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Gnacik
- L2j Veteran
- Posts: 925
- Joined: Tue Dec 16, 2008 3:49 pm
- Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
- Contact:
Re: Java/Mysql help!
mainly import time depends how you create export. if you have fu...cked up export files (for example insert statement for every row) can take few hours. with correctly done export, import take a maybe minute only, even for big server's
- badboy29
- Posts: 417
- Joined: Fri Apr 24, 2009 5:34 am
- Location: Brazil
Re: Java/Mysql help!
ATM my players with good connection not have any lags, so I think everything is ok, in future only have to increase memory 
PS: for dump database i use this script from *fork* guide:
sqlbackup.sh
Only a few minutes to import (database 388MB)

PS: for dump database i use this script from *fork* guide:
sqlbackup.sh
Code: Select all
#!/bin/bash# Server backup. This script will check MySQL data integrity and create a backup from it.# Cyberfox - [email protected]# SQL check - mysqlcheck --help for full details / tweaksmysqlcheck -A -a -c -e -r -o -s -u youruser -pyourpass --auto-repair# Backupmysqldump --databases yourdatabase --user=youruser --password=yourpass > /home/l2j/backup/backup.weekly.backup_`date '+%d%b%y_%H%M'`.sql
Code: Select all
mysql -h localhost -u youruser -pyourpass yourdatabase < yourSQLFile.sql
Aka UnHoly
-
- Posts: 125
- Joined: Mon Jul 07, 2008 4:01 pm
Re: Java/Mysql help!
for me it take from 2 to 3hours.
something is wrong but dunno where.
something is wrong but dunno where.
- SolidSnake
- Posts: 865
- Joined: Wed Jan 20, 2010 6:54 pm
- Location: Italy
- UnAfraid
- L2j Veteran
- Posts: 4199
- Joined: Mon Jul 23, 2007 4:25 pm
- Location: Bulgaria
- Contact:
Re: Java/Mysql help!
haha what a hours last time when i move servers from one pc to another i did it for 30 mins .. (with installing all need apps and config..)
Gnat answer u very correctly read what it wrotte
Gnat answer u very correctly read what it wrotte

-
- Posts: 89
- Joined: Mon Sep 15, 2008 8:51 am
Re: Java/Mysql help!
I'd also suggest doing it from command-line directly, as Navicat tends to slow things like that down.