Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][MYSQL] relacje w phpmysql
em-ba
post 13.11.2008, 14:07:26
Post #1





Grupa: Zarejestrowani
Postów: 202
Pomógł: 3
Dołączył: 6.01.2008
Skąd: Mazowieckie

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


Witam, chciałem się dowiedzieć czy w phpmyadmin jest możliwe stworzenie relacji miedzy tabelami wykorzystując mysql 3.23.58, tzn. jest to stara wersja i nie wiem czy oferuje takie możliwości..
W panelu phpmyadmin wyświetlana jest taka inf..

Serwer: localhost
Baza danych: zur
PMA Database ... błąd[ Dokumentacja ]
Ogólne funkcje relacyjne wyłączone

Nie wiem czy dobrze rozumiem, że te funkcję, z których chciałbym skorzystać są wyłączone..
Moje pytanie dotyczy tego czy można jakoś włączyć te funkcję etc..... żeby docelowo w tej wersji mysql stworzyć relacje pomiędzy tabelami... czy aby to osiągnąć potrzebuje nowszej wersji mysql-a?

Będę wdzięczny za pomoc..
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
Darti
post 13.11.2008, 14:16:54
Post #2





Grupa: Zarejestrowani
Postów: 1 076
Pomógł: 62
Dołączył: 6.03.2005
Skąd: Wroc

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


mysql to relacyjna baza danych, więc relacje są (jeśli się nie mylę) od początku jej istnienia smile.gif
Relacje, o których dostajesz błąd są relacjami obsługiwanymi przez phpmyadmin i poczytaj w jego dokumentacji jak się je włącza, niemniej nie decyduje to o funkcjonalności samego MySQL.


--------------------
The answer is out there, Neo. It's looking for you. And it will find you, if you want it to.
SERVER_SOFTWARE : Apache/2.2.4 (Win32) PHP/5.2.1
MySQL Client API version : 5.0.27
Go to the top of the page
+Quote Post
em-ba
post 13.11.2008, 14:23:09
Post #3





Grupa: Zarejestrowani
Postów: 202
Pomógł: 3
Dołączył: 6.01.2008
Skąd: Mazowieckie

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


no tak tylko z tego co przeczytałem w manualu "Dokumentacji" to nic mi to nie pomogło.. bo niewiele z tego zrozumiałem i dalej nie wiem co mam zrobić. Jest tam coś opisane o $cfg['Servers'][$i]['pmadb']
a dokładnie to:
$cfg['Servers'][$i]['pmadb'] string The name of the database containing the linked-tables infrastructure.

See the Linked-tables infrastructure section in this document to see the benefits of this infrastructure, and for a quick way of creating this database and the needed tables.

If you are the only user of this phpMyAdmin installation, you can use your current database to store those special tables; in this case, just put your current database name in $cfg['Servers'][$i]['pmadb']. For a multi-user installation, set this parameter to the name of your central database containing the linked-tables infrastructure. ..i nie wiem czy tą linię tekstu mam gdzieś wstawić czy edytować, a być może chodzi o zupełnie coś innego :/

Ten post edytował em-ba 13.11.2008, 14:27:02
Go to the top of the page
+Quote Post
Darti
post 13.11.2008, 14:37:30
Post #4





Grupa: Zarejestrowani
Postów: 1 076
Pomógł: 62
Dołączył: 6.03.2005
Skąd: Wroc

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


wpisz tam po prostu nazwe swojej bazy danych lub (juesli mozesz) stworz osobną bazę do tego i wpisz w config jej nazwę, następnie zaimportuj plik create_tables.sql z katalogu scripts phpmyadmina


--------------------
The answer is out there, Neo. It's looking for you. And it will find you, if you want it to.
SERVER_SOFTWARE : Apache/2.2.4 (Win32) PHP/5.2.1
MySQL Client API version : 5.0.27
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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 07:17