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

Problem z dodaniem nowego użytkownika mysql


Rekomendowane odpowiedzi

Opublikowano

Witam , przy próbie utworzenia nowego konta localhost wyskakuje :

 

mysql> CREATE USER 'm_t_2_game'@'localhost' IDENTIFIED BY 'mt2!@#';
ERROR 1396 (HY000): Operation CREATE USER failed for 'm_t_2_game'@'localhost'
mysql>
 

potrzebuję tego hosta by odpalić pliki gladora a nie chce mi się na moim wolnym internecie znów wysyłać pliki do winscp 2 godziny na darmo , zna ktoś może odpowiedź ? ;)

Opublikowano

Nie masz już czasem utworzonego tego usera? Sprawdź w tabeli user w bazie mysql.

Ewentualnie możesz spróbować przez navicata. Wykonaj to query w bazie mysql.

INSERT INTO `user` VALUES ('localhost', 'm_t_2_game', '*1DA96A411E1563FF227A913C4E3161211DD564F4', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', '0', '0', '0', '0', 'mysql_native_password', '', 'N');

Swoją drogą nie musisz wrzucać całych plików, żeby edytować configi.

74f31dbf1675f.jpg

 

Opublikowano
3 minuty temu, Tabasko9621 napisał:

@Ups... [Err] 1062 - Duplicate entry 'localhost-m_t_2_game' for key 'PRIMARY'

Masz go już dodanego, sprawdź tabelkę user w bazie mysql.

74f31dbf1675f.jpg

 

  • Ups... zmienił(a) tytuł na Problem z dodaniem nowego użytkownika mysql
Opublikowano

mysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsSuccess PLAYER
mysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 seconds
root@TabaskoGodzin:/usr/home/rw3 # Success ACCOUNT
mysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsSuccess COMMON
mysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
   failed, retrying in 5 secondsSuccess HOTBACKUP

Opublikowano
1 minutę temu, Tabasko9621 napisał:

failed, retrying in 5 secondsmysql_real_connect: Access denied for user 'm_t_2_game'@'localhost' (using password: YES)
 

Hasło lub login w tabelce user nie zgadza się z tym podanym w configach ch/db/auth.

74f31dbf1675f.jpg

 

Opublikowano

Nie mam pojęcia na jakim game są te pliki, czy w ogóle zabawa pongiem wchodzi tu w grę.

Na wszelki wypadek wpisz komendę ps i sprawdź czy każdy proces żyje lub pokaż tu screena z wyniku.

Do tego możesz sprawdzić czy porty podane w serverinfo.py zgadzają się z tymi podanymi w configach ch/auth i portmapem (jeśli to hamachi).

 

74f31dbf1675f.jpg

 

Opublikowano

 PID TT  STAT    TIME COMMAND
  900 v0  Is+  0:00.00 /usr/libexec/getty Pc ttyv0
  901 v1  Is+  0:00.00 /usr/libexec/getty Pc ttyv1
  902 v2  Is+  0:00.00 /usr/libexec/getty Pc ttyv2
  903 v3  Is+  0:00.00 /usr/libexec/getty Pc ttyv3
  904 v4  Is+  0:00.00 /usr/libexec/getty Pc ttyv4
  905 v5  Is+  0:00.00 /usr/libexec/getty Pc ttyv5
  906 v6  Is+  0:00.00 /usr/libexec/getty Pc ttyv6
  907 v7  Is+  0:00.00 /usr/libexec/getty Pc ttyv7
88713  1  Ss   0:00.04 -csh (csh)
88927  1  R+   0:00.00 ps
 

Serwer to VPS

Opublikowano
SYSERR: Nov 11 22:56:48 :: Start: TABLE_POSTFIX not configured use default

Spróbuj dać/usunąć spacje pomiędzy "" w linii TABLE_POSTFIX w configach.

SYSERR: Nov 11 22:56:48 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Column 'name' in field list is ambiguous query: SELECT pid, name, date FROM monarch_candidacy a, player b where a.pid = b.id SYSERR: Nov 11 22:56:48 :: LoadMonarchCandidacy: DirectQuery failed(SELECT pid, name, date FROM monarch_candidacy a, player b where a.pid = b.id)

Spróbuj zmienić nazwę pola name na user lub wygoogluj sposób naprawy tego błędu (Ja już nie pamiętam).

Oczywiście komendę ps wpisałeś po odpaleniu serwera?

 

74f31dbf1675f.jpg

 

Opublikowano

Zapomniałem odpalić xD

Tabelka postfix prezentuje się następująco  TABLE_POSTFIX:    Nie mam tu żadnych ""

 PID TT  STAT    TIME COMMAND
  900 v0  Is+  0:00.00 /usr/libexec/getty Pc ttyv0
  901 v1  Is+  0:00.00 /usr/libexec/getty Pc ttyv1
  902 v2  Is+  0:00.00 /usr/libexec/getty Pc ttyv2
  903 v3  Is+  0:00.00 /usr/libexec/getty Pc ttyv3
  904 v4  Is+  0:00.00 /usr/libexec/getty Pc ttyv4
  905 v5  Is+  0:00.00 /usr/libexec/getty Pc ttyv5
  906 v6  Is+  0:00.00 /usr/libexec/getty Pc ttyv6
  907 v7  Is+  0:00.00 /usr/libexec/getty Pc ttyv7
88713  1  Ss   0:00.05 -csh (csh)
89230  1  I    0:00.59 ./db
89232  1  I    0:06.49 ./game
89234  1  I    0:02.83 ./game99 (game)
89236  1  I    0:01.20 ./auth (game)
89238  1  I    0:03.42 ./game22 (game)
89269  1  R+   0:00.00 ps
 

Opublikowano
9 minut temu, Tabasko9621 napisał:

Zapomniałem odpalić xD

Tabelka postfix prezentuje się następująco  TABLE_POSTFIX:    Nie mam tu żadnych ""

 PID TT  STAT    TIME COMMAND
  900 v0  Is+  0:00.00 /usr/libexec/getty Pc ttyv0
  901 v1  Is+  0:00.00 /usr/libexec/getty Pc ttyv1
  902 v2  Is+  0:00.00 /usr/libexec/getty Pc ttyv2
  903 v3  Is+  0:00.00 /usr/libexec/getty Pc ttyv3
  904 v4  Is+  0:00.00 /usr/libexec/getty Pc ttyv4
  905 v5  Is+  0:00.00 /usr/libexec/getty Pc ttyv5
  906 v6  Is+  0:00.00 /usr/libexec/getty Pc ttyv6
  907 v7  Is+  0:00.00 /usr/libexec/getty Pc ttyv7
88713  1  Ss   0:00.05 -csh (csh)
89230  1  I    0:00.59 ./db
89232  1  I    0:06.49 ./game
89234  1  I    0:02.83 ./game99 (game)
89236  1  I    0:01.20 ./auth (game)
89238  1  I    0:03.42 ./game22 (game)
89269  1  R+   0:00.00 ps
 

Brawo Ty. Serwer działa, w takim razie tym syserrem nie ma się co przejmować, błędu trzeba szukać w innym miejscu.

Porty w serverinfo i configach są takie same? Szczerze mówiąc nie mam za bardzo pomysłów, ponieważ nawet nie wiem na jakim game są te pliki.

Jeśli z portami wszystko okej, ktoś inny będzie musiał Ci dalej pomóc. I tak już połowa sukcesu za nami xD 

74f31dbf1675f.jpg

 

Opublikowano

tutaj wklejka z db

query: SELECT pid, name, date FROM monarch_candidacy a, player  b where a.pid = b.id
SYSERR: Nov 12 00:09:51 :: LoadMonarchCandidacy:  DirectQuery failed(SELECT pid, name, date FROM monarch_candidacy a, player  b where a.pid = b.id)
SYSERR: Nov 12 00:15:31 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:36 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:41 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:46 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:51 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:56 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:16:01 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:16:33 :: Process: FDWATCH: peer null in event: ident 20
SYSERR: Nov 12 00:16:33 :: Process: FDWATCH: peer null in event: ident 21
SYSERR: Nov 12 00:16:33 :: Process: FDWATCH: peer null in event: ident 22
SYSERR: Nov 12 00:16:33 :: Process: FDWATCH: peer null in event: ident 23
SYSERR: Nov 12 00:16:37 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
SYSERR: Nov 12 00:17:05 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Column 'name' in field list is ambiguous
query: SELECT pid, name, date FROM monarch_candidacy a, player  b where a.pid = b.id
SYSERR: Nov 12 00:17:05 :: LoadMonarchCandidacy:  DirectQuery failed(SELECT pid, name, date FROM monarch_candidacy a, player  b where a.pid = b.id)

 

Tutaj z game'a sysser

SYSERR: Nov 12 00:17:12 :: regen_load: No mob data by vnum 43287
SYSERR: Nov 12 00:20:31 :: socket_bind: bind: Address already in use

 

Sysser Game99

SYSERR: Nov 12 00:16:32 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
SYSERR: Nov 12 00:17:09 :: DirectQuery: MySQL connection was reconnected. querying locale set
SYSERR: Nov 12 00:17:09 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: MySQL server has gone away
query: SELECT id FROM guild
SYSERR: Nov 12 00:20:33 :: socket_bind: bind: Address already in use
SYSERR: Nov 12 00:20:33 :: ChildLoop: AsyncSQL::ChildLoop : mysql_query error: Out of range value for column 'time' at row 1:
query: INSERT INTO bootlog (time, hostname, channel) VALUES(NOW(), 'channel1_99', 99)
 

 

Ta tabelka item_award może być problemem że logowanie nie działa zapewne , tylko nie da się jej naprawić , jak wklejam po raz któryś to nic to nie zmienia 

Opublikowano
5 minut temu, Tabasko9621 napisał:

tutaj wklejka z db

query: SELECT pid, name, date FROM monarch_candidacy a, player  b where a.pid = b.id
SYSERR: Nov 12 00:09:51 :: LoadMonarchCandidacy:  DirectQuery failed(SELECT pid, name, date FROM monarch_candidacy a, player  b where a.pid = b.id)
SYSERR: Nov 12 00:15:31 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:36 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:41 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:46 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:51 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:15:56 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:16:01 :: ChildLoop: AsyncSQL: query failed: Table './player/item_award' is marked as crashed and last (automatic?) repair failed (query: SELECT id,login,vnum,count,socket0,socket1,socket2,mall,why FROM item_award WHERE taken_time IS NULL errno: 144)
SYSERR: Nov 12 00:16:33 :: Process: FDWATCH: peer null in event: ident 20
SYSERR: Nov 12 00:16:33 :: Process: FDWATCH: peer null in event: ident 21
SYSERR: Nov 12 00:16:33 :: Process: FDWATCH: peer null in event: ident 22
SYSERR: Nov 12 00:16:33 :: Process: FDWATCH: peer null in event: ident 23
SYSERR: Nov 12 00:16:37 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
SYSERR: Nov 12 00:17:05 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Column 'name' in field list is ambiguous
query: SELECT pid, name, date FROM monarch_candidacy a, player  b where a.pid = b.id
SYSERR: Nov 12 00:17:05 :: LoadMonarchCandidacy:  DirectQuery failed(SELECT pid, name, date FROM monarch_candidacy a, player  b where a.pid = b.id)

 

Tutaj z game'a sysser

SYSERR: Nov 12 00:17:12 :: regen_load: No mob data by vnum 43287
SYSERR: Nov 12 00:20:31 :: socket_bind: bind: Address already in use

 

Sysser Game99

SYSERR: Nov 12 00:16:32 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
SYSERR: Nov 12 00:17:09 :: DirectQuery: MySQL connection was reconnected. querying locale set
SYSERR: Nov 12 00:17:09 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: MySQL server has gone away
query: SELECT id FROM guild
SYSERR: Nov 12 00:20:33 :: socket_bind: bind: Address already in use
SYSERR: Nov 12 00:20:33 :: ChildLoop: AsyncSQL::ChildLoop : mysql_query error: Out of range value for column 'time' at row 1:
query: INSERT INTO bootlog (time, hostname, channel) VALUES(NOW(), 'channel1_99', 99)
 

 

Ta tabelka item_award może być problemem że logowanie nie działa zapewne , tylko nie da się jej naprawić , jak wklejam po raz któryś to nic to nie zmienia 

Wyżej edytowałeś post, którego później nie zauważyłem. Nawet jeśli to nie będzie to i tak musisz to naprawić, bo bez tego i tak nie ruszysz. Usuń uszkodzone tabelki przez ftp, zrestartuj serwer i wgraj je na nowo.

Profilaktycznie zapytam czy masz nadane uprawnienia (chmod 777) na bazę?

74f31dbf1675f.jpg

 

Opublikowano
12 godzin temu, Ups... napisał:

Wyżej edytowałeś post, którego później nie zauważyłem. Nawet jeśli to nie będzie to i tak musisz to naprawić, bo bez tego i tak nie ruszysz. Usuń uszkodzone tabelki przez ftp, zrestartuj serwer i wgraj je na nowo.

Profilaktycznie zapytam czy masz nadane uprawnienia (chmod 777) na bazę?

Dalej Cie nie nauczyłem, że na bazę nie wolno mieć chmodów 777? tylko prawa mysql? 
Nadal tkwisz z wiedzą minimalną, weź trochę idź do przodu i naprawdę poczytaj moje poradniki, które dobrze każdemu służą.
 

11 godzin temu, Tabasko9621 napisał:

Tak nadałem, wgrywam je na przemian raz moje a raz z tematu z plikami i zawsze uszkodzona ta sama tabelka. 

Nie dziwię się, baza nie może mieć chmodów 777. 

Chodź proszę na TV to CI pomogę szybciej niż pomoc pisemna. 
Bo jak zawsze piszę to i tak są problemy i potem hejt na moją osobę to w tym i przyszłym roku będę pomagał przez TV i żaden kozak nie napisze mi, że dobry jestem w pisaniu a nie w pomocy.
Napisz na gg.
W skrócie napiszę rozwiązanie:
By naprawić uszkodzone tabele należy:
-> chowny i chgrp ustawić na bazę
-> wejść do navicata i skopiować tabele i wkleić i uszkodzoną tabele usunąć, a nie uszkodzoną zmienić nazwę na taką jaka była oryginalnie. 
Nie wolno nigdy naprawiać tabel w metinie. Naprawianie tabel jest błędne i trzeba naprawiać tabele przez kopiowanie całej struktury tabeli.
Naprawianie tabel jest korzystniejsze wtedy, kiedy już całkiem struktura tabeli się zepsuje. 

Dla hejterów notka:
Nie hejtujcie, ja zawsze mam racje i mogę to tutaj też udowodnić. Odpuście sobie i elo.
 

Pomogłem ? klik up to Like ;D ( Lubię to ! ) xD

300 postów-> 10.10.2013 godz. 9:00
400 postów-> 19.10.2013 godz. 9:00

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...