Java/Mysql help!

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Java/Mysql help!

Post by Gnacik »

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
User avatar
badboy29
Posts: 417
Joined: Fri Apr 24, 2009 5:34 am
Location: Brazil

Re: Java/Mysql help!

Post by badboy29 »

ATM my players with good connection not have any lags, so I think everything is ok, in future only have to increase memory :P

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 
Only a few minutes to import (database 388MB)

Code: Select all

mysql -h localhost -u youruser -pyourpass yourdatabase < yourSQLFile.sql
Aka UnHoly
kama3a
Posts: 125
Joined: Mon Jul 07, 2008 4:01 pm

Re: Java/Mysql help!

Post by kama3a »

for me it take from 2 to 3hours.
something is wrong but dunno where.
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Java/Mysql help!

Post by SolidSnake »

for me 5 hours, I think it's normal..
Image
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Java/Mysql help!

Post by UnAfraid »

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 :)
Image
macdonald12
Posts: 89
Joined: Mon Sep 15, 2008 8:51 am

Re: Java/Mysql help!

Post by macdonald12 »

I'd also suggest doing it from command-line directly, as Navicat tends to slow things like that down.
Post Reply