Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pytanie]Jak przenieść konta xAuth do AuthMe (MySQL)


Rekomendowane odpowiedzi

Opublikowano

Witam, mam serwer na 1.6.1 i okazało się że plugin xAuth strasznie muli serwer, dlatego przenoszę się na AuthMe i chcę przenieść konta MySQL xAuth na MySQL do AuthMe. Proszę powiedzieć jak sie to robi lub po prostu dać link do TuT'ka jesli jest ;)



@ref



@ref

10868302_191445524359374_550385651884749

Opublikowano

 

== Migrate from xAuth to AuthMe ==
You can use a tool like MySQL Workbench to exceute all the SQL Queries listed here.


=== The recommended way ===


The recommended way is to create a new database and copy the needed data from the xAuth database. 


* Create a new database for AuthMe with the name "authme".
* Create this table in that database:
<<code sql>>    CREATE TABLE `authme` (
    `id` INTEGER AUTO_INCREMENT,
    `username` VARCHAR(255) NOT NULL,
    `password` VARCHAR(255) NOT NULL,
    `ip` VARCHAR(40) NOT NULL,
    `lastlogin` BIGINT,
    CONSTRAINT `table_const_prim` PRIMARY KEY (`id`));
<</code>>
* Copy all the needed data from the xAuth database to the AuthMe database with:
<<code sql>>    INSERT INTO `authme`.`authme` (username,password,ip) 
    SELECT  `playername`, `password`, `lastloginip`
    FROM `xAuthDataBase`.`accounts`;
<</code>>
Note that the name of "xAuthDataBase" and "accounts" depends on your configuration
* Edit AuthMe's config.yml to use mysql and set the proper mysql username/password


=== The quick & dirty way ===
You can also configure AuthMe to use the xAuth database directly. But as AuthMe is also writing into that database it is possible that xAuth can't use that database anymore.


* Open AuthMe's config.yml and edit those settings:
<<code yaml>>DataSource:
    backend: mysql
    mySQLDatabase: xauth   # or whatever name your xauth database has
    mySQLTablename: accounts   # look in your xauth config you might have changed the name of the table there
    mySQLColumnName: playername
    mySQLColumnPassword: password
    mySQLColumnIp: lastloginip
<</code>>
* Dont forget to set the proper MySQL username/password
 

 

Cytat zaczerpnięty z dev'a bukkita. Myślę, że dasz radę już. Postępuj według tych instrukcji : )

Kliknij tutaj, bo Cie zjem.


sopherlandia@gmail.com


Opublikowano

 

 



== Migrate from xAuth to AuthMe ==
You can use a tool like MySQL Workbench to exceute all the SQL Queries listed here.


=== The recommended way ===


The recommended way is to create a new database and copy the needed data from the xAuth database. 


* Create a new database for AuthMe with the name "authme".
* Create this table in that database:
<<code sql>>    CREATE TABLE `authme` (
    `id` INTEGER AUTO_INCREMENT,
    `username` VARCHAR(255) NOT NULL,
    `password` VARCHAR(255) NOT NULL,
    `ip` VARCHAR(40) NOT NULL,
    `lastlogin` BIGINT,
    CONSTRAINT `table_const_prim` PRIMARY KEY (`id`));
<</code>>
* Copy all the needed data from the xAuth database to the AuthMe database with:
<<code sql>>    INSERT INTO `authme`.`authme` (username,password,ip) 
    SELECT  `playername`, `password`, `lastloginip`
    FROM `xAuthDataBase`.`accounts`;
<</code>>
Note that the name of "xAuthDataBase" and "accounts" depends on your configuration
* Edit AuthMe's config.yml to use mysql and set the proper mysql username/password


=== The quick & dirty way ===
You can also configure AuthMe to use the xAuth database directly. But as AuthMe is also writing into that database it is possible that xAuth can't use that database anymore.


* Open AuthMe's config.yml and edit those settings:
<<code yaml>>DataSource:
    backend: mysql
    mySQLDatabase: xauth   # or whatever name your xauth database has
    mySQLTablename: accounts   # look in your xauth config you might have changed the name of the table there
    mySQLColumnName: playername
    mySQLColumnPassword: password
    mySQLColumnIp: lastloginip
<</code>>
* Dont forget to set the proper MySQL username/password
 

 

Cytat zaczerpnięty z dev'a bukkita. Myślę, że dasz radę już. Postępuj według tych instrukcji : )

Nie ogarniam zbyt bardzo... możesz to noralnie wytłumaczyć xD

10868302_191445524359374_550385651884749

Opublikowano

Dobra, mi tego nie spolszcza wiec szukam DALEJ !

@ref



@PS Nie dawać mi gównianych textów po angielsku



@ref

10868302_191445524359374_550385651884749

Opublikowano

Po pierwsze język angielski to nie gówno. Przekonasz się w przyszłości, że bez tego to jak bez ręki. Poza tym kolega ANDROID podał Ci rozwiązanie na tacy.

 

Od siebie dodam tylko tyle, że jeżeli chcesz być dobry w tym co robisz to musisz być niezależny. Nie możesz z każdym problemem latać na forum i w dodatku narzekasz, ze to po angielsku, to nie tak - dawać następne.

Taka mała podpowiedz - skorzystaj z PhpMyAdmin i w konsoli wstukaj proste polecenia z poradnika. To są podstawy podstaw.

 

Elo

Opublikowano

* Stworz baze danych o nazwie "authme".
* Stworz table w bazie danych :

 

 

     CREATE TABLE `authme` (
    `id` INTEGER AUTO_INCREMENT,
    `username` VARCHAR(255) NOT NULL,
    `password` VARCHAR(255) NOT NULL,
    `ip` VARCHAR(40) NOT NULL,
    `lastlogin` BIGINT,
    CONSTRAINT `table_const_prim` PRIMARY KEY (`id`));


*Skopiuj wymagane dane z bazy danych xAuth do bazy danych AuthMe :

 

    INSERT INTO `authme`.`authme` (username,password,ip) 
    SELECT  `playername`, `password`, `lastloginip`
    FROM `xAuthDataBase`.`accounts`;

 

PS Nazwa "xAuthDataBase" i "accounts" zalezy od Twojej konfiguracji
* Edytuj AuthMe's config.yml aby uzywac MySQL i podaj prawidlowy login i haslo

=== Szybka & niezbyt bezpieczna metoda ===


Mozesz rowniez skonfigurowac AuthMe, aby uzywal bazy danych xAuth bezposrednio. Ale AuthMe moze nadpisac baze i xAuth nie bedzie mogl uzyc tej bazy juz nigdy wiecej.

Rada ode mnie: Lepiej zrob backup bazy jesli stosujesz ta metode. /Ertam


* Otworz plik konfiguracyjny AuthMe i zamien na to:

 

DataSource:
    backend: mysql
    mySQLDatabase: xauth   # nazwa Twojej dotychasowej bazy xAuth
    mySQLTablename: accounts   # nazwa jaka masz teraz w xAuth
    mySQLColumnName: playername
    mySQLColumnPassword: password
    mySQLColumnIp: lastloginip

* Nie zapomnij podac prawidlowego hasla i loginu do bazy

 

Spolszczone specjalnie dla Ciebie, nie jestem jakims asem z angielskiego, ale juz jest zrozumiale.

 

Pamietaj! Zrob backup bazy!

 


Kliknij Lubie to ;)


Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...