View difference between Paste ID: VGfGi0ag and 53LN7LRc
SHOW: | | - or go back to the newest paste.
1
@echo off
2
if exist NewAddress.sql del NewAddress.sql
3
echo.
4
ECHO    MaNGOS easy realm ip changer by brotalnia.
5
echo    If you don't know what your IP address is, go to this website:
6
echo    https://www.whatismyip.com/
7
echo.
8
9
set /p realip=   Real IP address of the host: 
10
11
ECHO USE `realmd`;>NewAddress.sql
12
ECHO UPDATE `realmlist` SET `address`='%realip%' WHERE `id`=1;>>NewAddress.sql
13
14
pause 
15
echo.
16
echo.
17
echo IP changed to: 
18
echo %realip% 
19
20
SET user=root
21
SET pass=root
22
SET logon_db=realmd
23
SET dumppath=c:\
24
SET port=3306
25
SET host=localhost
26
SET mysqlpath=.\mysql5\bin
27
28
Echo Importing to database...
29
%mysqlpath%\mysql -h %host% --user=%user% --password=%pass% --port=%port% %logon_db% < NewAddress.sql
30
31
32
logon.lightshope.org
33
34
echo. 
35
echo If you see errors make sure you have started the mysql server!
36
echo (Start MySQL.bat)
37
echo.
38
ECHO Done. Don't forget to change your game's realmlist too.
39
echo.
40
41
pause