Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z baza (widokami?) po przeniesieniu bazy., ERROR 1356 (HY000): View 'baza.tabela' references invalid tabl
horiz0n
post
Post #1





Grupa: Zarejestrowani
Postów: 10
Pomógł: 0
Dołączył: 30.09.2004

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


witam,
stalo sie tak, ze zaszla potrzeba przeniesienia bazy z jednego serwera na drugi.
zrobilem to w standardowy sposob:

Kod
mysqldump -u root -p --opt scrumtool > scrumtool.sql

mysql -u root -p scrumtool < scrumtool.sql


generalnie dziala wszystko poza widokiem?

na starym serwerze wyglada to tak:

  1. mysql> USE scrumtool;
  2. DATABASE changed
  3. mysql> SHOW TABLES;
  4. +---------------------+
  5. | Tables_in_scrumtool |
  6. +---------------------+
  7. | Defect |
  8. | backlog |
  9. | flag_defs |
  10. | flags |
  11. | releases |
  12. | sprints |
  13. | tickets |
  14. +---------------------+
  15. 7 rows IN SET (0.00 sec)
  16.  
  17. mysql> SELECT * FROM backlog;
  18.  
  19. ...tu pokzuje zawartosc...


na nowym to samo konczy sie tak:

  1. mysql> USE scrumtool;
  2. Reading TABLE information FOR completion of TABLE AND COLUMN names
  3. You can turn off this feature TO get a quicker startup WITH -A
  4.  
  5. DATABASE changed
  6. mysql> SHOW TABLES;
  7. +---------------------+
  8. | Tables_in_scrumtool |
  9. +---------------------+
  10. | Defect |
  11. | backlog |
  12. | flag_defs |
  13. | flags |
  14. | releases |
  15. | sprints |
  16. | tickets |
  17. +---------------------+
  18. 7 rows IN SET (0.00 sec)
  19.  
  20. mysql> SELECT * FROM backlog;
  21. ERROR 1356 (HY000): VIEW 'scrumtool.backlog' REFERENCES invalid TABLE(s) OR COLUMN(s) OR FUNCTION(s) OR definer/invoker of VIEW lack rights TO USE them


gdzies zanalazlem niby obejscie problemu:
  1. mysql> CREATE SQL SECURITY INVOKER VIEW scrumtool.backlog AS SELECT * FROM backlog;
  2. ERROR 1356 (HY000): VIEW 'scrumtool.backlog' REFERENCES invalid TABLE(s) OR COLUMN(s) OR FUNCTION(s) OR definer/invoker of VIEW lack rights TO USE them


ale to tez nie dziala. jak to naprawic? probowalem nawet recznie przrzucic pliki z /var/lib/mysql/scrumtool ale oczywiscie bez rezultatu.
Go to the top of the page
+Quote Post

Posty w temacie


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: 19.08.2025 - 17:34