Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z przeniesieniem bazy danych użytkowników, HELP :)
darkdream
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 19.01.2010

Ostrzeżenie: (0%)
-----


Siemka Wszystkim.

Trafiłam na Wasze forum bo standardowo mam problem i mam nadzieje, że mi pomożecie (IMG:style_emoticons/default/smile.gif)

Chce przenieść baze danych forum na inny serwer.

Miałam troche problemów z tym - tym bardziej, że jestem zielona z sql. Ale google pomaga (IMG:style_emoticons/default/smile.gif)

Niestety nie w tym przypadku który zaraz opisze.

Otóż największy problem sprawia mi przeniesienie danych użytkowników. To jest część zapytania do sql:

Kod
INSERT INTO phpbb_users (user_id, user_active, username, user_password, user_session_time, user_session_page, user_lastvisit, user_regdate, user_level, user_posts, user_timezone, user_style, user_lang, user_new_privmsg, user_unread_privmsg, user_last_privmsg, user_emailtime, user_viewemail, user_viewaim, user_attachsig, user_allowhtml, user_allowbbcode, user_allowsmile, user_allowavatar, user_allowsig, user_allow_pm, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_rank, user_avatar, user_avatar_type, user_email, user_icq, user_website, user_from, user_sig, user_sig_bbcode_uid, user_sig_image, user_aim, user_yim, user_msnm, user_occ, user_interests, user_actkey, user_newpasswd, user_birthday, user_next_birthday_greeting, user_custom_rank, user_photo, user_photo_type, user_custom_color, user_badlogin, user_blocktime, user_block_by, disallow_forums, can_custom_ranks, can_custom_color, user_gender, can_topic_color, user_notify_gg, allowpm, no_report_popup, refresh_report_popup, no_report_mail, user_avatar_width, user_avatar_height, special_rank, user_allow_helped, user_ip, user_ip_login_check, user_spend_time, user_visit, user_session_start, read_tracking_last_update, user_jr, transfer) VALUES ( '-1', '0', 'Anonymous', '', '0', '0', '0', '1093813219', '0', '141', '1.00', NULL, 'polish', '0', '0', '0', NULL, '0', '1', '1', '1', '1', '1', '1', '1', '0', '1', '0', '1', '0', '0', '', '0', '', '', '', '', '', NULL, '', '', '', '', '', '', '', '', '999999', '0', NULL, NULL, '0', NULL, '0', '0', NULL, NULL, '1', '1', '0', '1', '0', '1', '0', '0', '0', NULL, NULL, NULL, '1', '', '1', '0', '0', '0', '0', '0', '0905.10485760');


I wywala mi błąd


Kod
Błąd

Zapytanie SQL:

# # Zrzut danych tabeli `phpbb_users` # INSERT INTO phpbb_users (user_id, user_active, username, user_password, user_session_time, user_session_page, user_lastvisit, user_regdate, user_level, user_posts, user_timezone, user_style, user_lang, user_new_privmsg, user_unread_privmsg, user_last_privmsg, user_emailtime, user_viewemail, user_viewaim, user_attachsig, user_allowhtml, user_allowbbcode, user_allowsmile, user_allowavatar, user_allowsig, user_allow_pm, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_rank, user_avatar, user_avatar_type, user_email, user_icq, user_website, user_from, user_sig, user_sig_bbcode_uid, user_sig_image, user_aim, user_yim, user_msnm, user_occ, user_interests, user_actkey, user_newpasswd, user_birthday, user_next_birthday_greeting, user_custom_rank, user_photo, user_photo_type, user_custom_color, user_badlogin, user_blocktime, user_block_by, disallow_forums, can_custom_ranks, can_custom_color, user_gender, can_topic_color, u[...]

MySQL zwrócił komunikat:

#1054 - Unknown column 'transfer' in 'field list'


Próbowałam usunąć wszędzie transfer, ale to nie pomaga...

Czy moglibyście mi poradzić co mam zrobić - walcze już z tym trzeci dzień....

Dziękuje Wam i pozdrawiam Was (IMG:style_emoticons/default/smile.gif)

Marta
Go to the top of the page
+Quote Post
webdice
post
Post #2


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Dodaj kolumnę transfer w nowej w tabeli do której importujesz dane lub zmień w zapytaniu:

Kod
(...) read_tracking_last_update, user_jr, transfer) VALUES


na:

Kod
(...) read_tracking_last_update, user_jr) VALUES


oraz:

Kod
'0', '0', '0905.10485760');


na:

Kod
(...) '0', '0');
Go to the top of the page
+Quote Post
darkdream
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 19.01.2010

Ostrzeżenie: (0%)
-----


Już usuwałam ten transfer i dalej wywalał błąd - zrobiłam już wcześniej tak jak napisałeś... A jak dodać tą tabele? Jeszcze jakieś sugestie webdice (IMG:style_emoticons/default/smile.gif) ?

Ogólnie to bardzo Ci dziękuje za odpowiedź.

Ten post edytował darkdream 19.01.2010, 16:02:05
Go to the top of the page
+Quote Post
webdice
post
Post #4


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Nie tabele, a kolumnę, poczytaj o ALTER TABLE lub skorzystaj z PMA.

  1. ALTER TABLE `phpbb_users` ADD `transfer` (...)


Zakładam że exportowana tabela jest przeznaczona do innej wersji phpBB, lub na wersji nowej nie masz modułów które zainstalowałaś wcześniej.
Go to the top of the page
+Quote Post
darkdream
post
Post #5





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 19.01.2010

Ostrzeżenie: (0%)
-----


Zrobiłam tak jak kazałaś w pierwszym poście i wyskoczył bląd:


  1. Błąd
  2. Zapytanie SQL:
  3.  
  4. # # Zrzut danych tabeli `phpbb_users` # INSERT INTO phpbb_users (user_id, user_active, username, user_password, user_session_time, user_session_page, user_lastvisit, user_regdate, user_level, user_posts, user_timezone, user_style, user_lang, user_new_privmsg, user_unread_privmsg, user_last_privmsg, user_emailtime, user_viewemail, user_viewaim, user_attachsig, user_allowhtml, user_allowbbcode, user_allowsmile, user_allowavatar, user_allowsig, user_allow_pm, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_rank, user_avatar, user_avatar_type, user_email, user_icq, user_website, user_from, user_sig, user_sig_bbcode_uid, user_sig_image, user_aim, user_yim, user_msnm, user_occ, user_interests, user_actkey, user_newpasswd, user_birthday, user_next_birthday_greeting, user_custom_rank, user_photo, user_photo_type, user_custom_color, user_badlogin, user_blocktime, user_block_by, disallow_forums, can_custom_ranks, can_custom_color, user_gender, can_topic_color, u[...]
  5.  
  6. MySQL zwrócił komunikat:
  7.  
  8. #1136 - Column count doesn't match value count at row 1


Forum mialam na webplus.net.pl a teraz mam na swoim serwerze php by przemo.

Ahhh i tak jak mówiłam - nie znam sie na sql więc możesz mi wytłumaczyć krok po kroku co mam zrobić (IMG:style_emoticons/default/smile.gif) ?

Siemka Wam jeszcze raz. PO przeniesieniu dzięki pomocy Kolegi wyżej bazy danych nie mogę wejść na forum.

Wyskakuje błąd :

Kod
phpBB by Przemo : Critical Error

Could not obtain ban information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR ban_email LIKE '' OR ban_email LIKE ''' at line 4

SELECT * FROM phpbb_banlist WHERE ban_ip IN ('51db2502', '51db25ff', '51dbffff', '51ffffff') OR ban_userid = OR ban_email LIKE '' OR ban_email LIKE ''

Line : 49
File : sessions.php


O co chodzi (IMG:style_emoticons/default/smile.gif) ?

Ten post edytował darkdream 19.01.2010, 16:30:27
Go to the top of the page
+Quote Post
oi.
post
Post #6





Grupa: Zarejestrowani
Postów: 145
Pomógł: 1
Dołączył: 12.07.2006

Ostrzeżenie: (10%)
X----


Poradziłem sobie z tym zmieniając nr id usera
  1. (user_id,
na -1
forum powróciło do normy.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 6.10.2025 - 19:05