Hoi,
Hier nehme ich als Beispiel FreeBsd 7
Okey fangen wir an:
Wir nehmen mal an ihr habt den Server gemietet und der Server an sich ist schon fertig eingerichtet.
Dann müsst ihr als erstes portsnap installieren:
Nun wartet ihr bis das fertig ist
(Dauert je nach Leistung des Servers 20-40 Min)
Nun installieren wir Mysql:
Dies lasst ihr nun auchwieder durchlaufen.
Wenn es fertig ist müsst ihr noch den Autostart eintrag für MySQL anlegen
Hier schreibt ihr dann ganz unten rein:
Dann noch ESC ENTER ENTER drücken und ihr habt es gespeichert
Server noch neustarten und MySQL ist fertig installiert :)
Okey:
Jetzt gibt es 3 Möglichkeiten:
1.Ihr habt noch die mysql dateien (.myd und so) von eurem Hamachiserver (findet ihr unter /var/db/mysql)
2. Ihr habt noch .sql dumps eurer Db
3. Ihr habt nichts (wollt neuen Server machen)
zu 1.:
Nun stoppt ihr MySQL mit:
Dann ladet ihr die .myd Dateien nach
(FTP und so)
Wenn alle oben sind gebt ihr den Dateien rechte und ordnet sie MySQL zu:
Dann startet ihr MySQL wieder:
zu 2.:
Ihr loggt euch per
[php]mysql -uroot -p[PHP]
ein
Bei Passwort einfach Enter drücken (=leeres Passwort)
dann erstellt ihr einen User , mit dem ihr per Navicat dann eure .sql Datei einspielen könnt.
USERNAME und PASSWORT natürlich durch den Usernamen und Passwort ersetzen.
zu 3.:
Sucht eine leere Db in E*PvP und tut diese mit Schritt 1/2 rein
Da nun die Datenbank oben ist, könnt ihr die Serverfiles draufklatschen.
Ihr empfehle euch die game0901.tar.gz zu laden.
Diese könnt ihr nämlich auf eurem Root entpacken.
Tut die Sf am besten nach /home/game da auf /home am meisten Platz ist :)
Dann müsst ihr noch eure (evtl. vorhandenen) geänderten Quests/Maps whatever nach /home/game/channel/share_data packen
Nun kommen wir zum letzten Teil
Den lib Dateien.
Wenn ihr die game0901.tar.gz genommen habt, ist im game ordner ein Ordner "lib_old" den Inhalt ziehen wir auf unseren PC und laden ihn dann wieder nach /lib
!VORSICHT!
Nichts überschreiben!
Auch wenn es größer ist!
Wenn ihr etwas überschreibt kann das euer System töten!
!VORSICHT!
Als letztes erstellen wir noch einen MySQL-User für unseren Server.
In den Files die ich in den Tut hier 'benutzt' habe ist es standartmäßig als
User: mt2
Pw: mt2!@#
eingetragen
dies können wir auch beibehalten!
Ihr erstellt euch also einen User:
das @"localhost" ist hier besonders wichtig, da der User dann nur von localhost also von dem Server selbst aus auf die Db zugreifen kann.
Nun starten wir mal testweise "db"
Wenn alles ohne Fehler durchläuft sieht das so aus:
Wenn es durchläuft könnt ihr Strg+C drücken, was db abbricht.
Nun könnt ihr euren Metin Server ganz starten
Viel Spaß
iMer
PS: Tut funzt zu 101% :P
on english:
i take freebsd 7,1 for this example
Okey let's go:
first you have to install portsnap:
wait until it's finished
(~20-40 min)
now we install MySQL:
wait until it's finished~
now you have to make an entry in the rc.conf to start mysql when the server starts
That you write:
in it
after that press ESC ENTER ENTER
So you only have to reboot and mysql is ready
There are 3 ways to put the database in it:
1.you have the .myd (and so on) files from your server or so (you can find them at /var/db/mysql)
2. you have mysql dumps from your database
3. You have nothing (you want to make a new server)
~> 1.:
You stop mysql:
Upload the .myd and so on files to
(FTP~)
if they all are uploadet give them chmod rights:
now you can start mysql:
~> 2.:
log in per:
[php]mysql -uroot -p[PHP]
he wants a password from you
press enter ;) (=empty password)
then you create a user to batch in your .sql files.
zu 3.:Look for an empty database in e*pvp and look at 1./2.
The database is ready and now you upload the serverfiles
i took the "game0901.tar.gz" (link ~> pn)
This you can extract on your server
Put the archive to /home/game
you only have to put your modified quest files (and so on) to /home/game/channel/share_data/
the last thing you have to do is to upload the lib files
if you took the "game0901.tar.gz", you will find the need lib files in "/home/game/lib_old"
download them on to your pc and upload them to /lib
!ATTENTION!
Don't overwrite anything!
it could damage your root!
!ATTENTION!
last step:
we make another mysql user for the metin2server
in the files i used for this tutorial the user is allways:
User: mt2
Pw: mt2!@#
So you make a user:
the @"localhost" is very important. the user only can login from "localhost" (your server)
now we run "db" to test the databases
when it starts without errors it looks like:
if there are no errors you can press ctrl+c to abort it
now you can start your own server
have fun
Hier nehme ich als Beispiel FreeBsd 7
Okey fangen wir an:
Wir nehmen mal an ihr habt den Server gemietet und der Server an sich ist schon fertig eingerichtet.
Dann müsst ihr als erstes portsnap installieren:
PHP Code:
portsnap fetch extract
(Dauert je nach Leistung des Servers 20-40 Min)
Nun installieren wir Mysql:
PHP Code:
cd /usr/ports/databases/mysql50-server
make WITH_XCHARSET=all install clean
Wenn es fertig ist müsst ihr noch den Autostart eintrag für MySQL anlegen
PHP Code:
ee /etc/rc.conf
PHP Code:
mysql_enable="YES"
Server noch neustarten und MySQL ist fertig installiert :)
PHP Code:
reboot
Jetzt gibt es 3 Möglichkeiten:
1.Ihr habt noch die mysql dateien (.myd und so) von eurem Hamachiserver (findet ihr unter /var/db/mysql)
2. Ihr habt noch .sql dumps eurer Db
3. Ihr habt nichts (wollt neuen Server machen)
zu 1.:
Nun stoppt ihr MySQL mit:
PHP Code:
/usr/local/etc/rc.d/mysql-server stop
PHP Code:
/var/db/mysql/
Wenn alle oben sind gebt ihr den Dateien rechte und ordnet sie MySQL zu:
PHP Code:
chown -R mysql /var/db/mysql && chgrp -R mysql /var/db/mysql
PHP Code:
/usr/local/etc/rc.d/mysql-server start
Ihr loggt euch per
[php]mysql -uroot -p[PHP]
ein
Bei Passwort einfach Enter drücken (=leeres Passwort)
dann erstellt ihr einen User , mit dem ihr per Navicat dann eure .sql Datei einspielen könnt.
PHP Code:
grant all on *.* to USERNAME@"%" identified by "PASSWORT";
zu 3.:
Sucht eine leere Db in E*PvP und tut diese mit Schritt 1/2 rein
Da nun die Datenbank oben ist, könnt ihr die Serverfiles draufklatschen.
Ihr empfehle euch die game0901.tar.gz zu laden.
Diese könnt ihr nämlich auf eurem Root entpacken.
PHP Code:
tar -xzvf game0901.tar.gz
Dann müsst ihr noch eure (evtl. vorhandenen) geänderten Quests/Maps whatever nach /home/game/channel/share_data packen
Nun kommen wir zum letzten Teil
Den lib Dateien.
Wenn ihr die game0901.tar.gz genommen habt, ist im game ordner ein Ordner "lib_old" den Inhalt ziehen wir auf unseren PC und laden ihn dann wieder nach /lib
!VORSICHT!
Nichts überschreiben!
Auch wenn es größer ist!
Wenn ihr etwas überschreibt kann das euer System töten!
!VORSICHT!
Als letztes erstellen wir noch einen MySQL-User für unseren Server.
In den Files die ich in den Tut hier 'benutzt' habe ist es standartmäßig als
User: mt2
Pw: mt2!@#
eingetragen
dies können wir auch beibehalten!
Ihr erstellt euch also einen User:
PHP Code:
mysql -uroot -p
grant all on *.* to mt2@"localhost" identified by "mt2!@#";
Nun starten wir mal testweise "db"
PHP Code:
cd /home/game/db
./db
Code:
asdfgh# ./db METIN2_DB_CACHE: GERMANY Real Server Log OffSuccess PLAYER Success ACCOUNT Success COMMON Success HOTBACKUP
Nun könnt ihr euren Metin Server ganz starten
PHP Code:
cd /home/game
./start.sh
iMer
PS: Tut funzt zu 101% :P
on english:
i take freebsd 7,1 for this example
Okey let's go:
first you have to install portsnap:
PHP Code:
portsnap fetch extract
(~20-40 min)
now we install MySQL:
PHP Code:
cd /usr/ports/databases/mysql50-server
make WITH_XCHARSET=all install clean
now you have to make an entry in the rc.conf to start mysql when the server starts
PHP Code:
ee /etc/rc.conf
PHP Code:
mysql_enable="YES"
after that press ESC ENTER ENTER
So you only have to reboot and mysql is ready
PHP Code:
reboot
1.you have the .myd (and so on) files from your server or so (you can find them at /var/db/mysql)
2. you have mysql dumps from your database
3. You have nothing (you want to make a new server)
~> 1.:
You stop mysql:
PHP Code:
/usr/local/etc/rc.d/mysql-server stop
PHP Code:
/var/db/mysql/
if they all are uploadet give them chmod rights:
PHP Code:
chown -R mysql /var/db/mysql && chgrp -R mysql /var/db/mysql
PHP Code:
/usr/local/etc/rc.d/mysql-server start
log in per:
[php]mysql -uroot -p[PHP]
he wants a password from you
press enter ;) (=empty password)
then you create a user to batch in your .sql files.
PHP Code:
grant all on *.* to USERNAME@"%" identified by "PASSWORD";
zu 3.:Look for an empty database in e*pvp and look at 1./2.
The database is ready and now you upload the serverfiles
i took the "game0901.tar.gz" (link ~> pn)
This you can extract on your server
PHP Code:
tar -xzvf game0901.tar.gz
you only have to put your modified quest files (and so on) to /home/game/channel/share_data/
the last thing you have to do is to upload the lib files
if you took the "game0901.tar.gz", you will find the need lib files in "/home/game/lib_old"
download them on to your pc and upload them to /lib
!ATTENTION!
Don't overwrite anything!
it could damage your root!
!ATTENTION!
last step:
we make another mysql user for the metin2server
in the files i used for this tutorial the user is allways:
User: mt2
Pw: mt2!@#
So you make a user:
PHP Code:
mysql -uroot -p
grant all on *.* to mt2@"localhost" identified by "mt2!@#";
now we run "db" to test the databases
PHP Code:
cd /home/game/db
./db
Code:
# ./db METIN2_DB_CACHE: GERMANY Real Server Log OffSuccess PLAYER Success ACCOUNT Success COMMON Success HOTBACKUP
now you can start your own server
PHP Code:
cd /home/game
./start.sh