Advertisement
Guest User

mangos ip changer batch

a guest
Apr 2nd, 2017
1,580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  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.  
  33. echo.
  34. echo If you see errors make sure you have started the mysql server!
  35. echo (Start MySQL.bat)
  36. echo.
  37. ECHO Done. Don't forget to change your game's realmlist too.
  38. echo.
  39.  
  40. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement