Avatar billede janos Nybegynder
10. december 2005 - 16:22 Der er 1 kommentar og
1 løsning

phpMyAdmin - PMA Database

Jeg arbejder mig i øjeblikket igennem en bog om oprettelse af et CMS og er i den forbindelse stødt ind i et problem med phpMyAdmin.

Jeg har oprettet en side til oprettelse af nye undermenuer og testet denne, men når jeg går ind i phpMyAdmin viser den følgende fejl:

FEJL! De ekstra features for at arbejde med linkede tabeller er deaktiveret.

PMA Database ... ikke OK

Der henvises til en vejledning:


$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.

som jeg ikke helt forstår - er der en der kan skære ud i pap, hvad jeg skal gøre for at rette fejlen?

Må erkende at jeg fra starten installerede en nyere version af phpMyAdmin end den bogen foreskrev.

På forhånd tak.
Avatar billede janos Nybegynder
11. december 2005 - 19:36 #1
Jeg har selv fundet dette, men behøver hjælp til "oversættelsen" da jeg er helt nybegynder inden for faget

RE: Creating a Relationship in phpMyAdmin

The bad news is you are out of luck if you dont have the innoDB engine. innoDB is the only one that enforces foreign key constratints.

Check this link for innoDB
http://dev.mysql.com/doc/refman/4.1/en/innodb.html  />
For the other storage engines.
http://dev.mysql.com/doc/refman/4.1/en/storage-engines.html  />
check with your hosting company they might have an older version of mysql running.

creating the relationships should not be a problem if you see the "relation view". its a simple matter of choosing the right table with the key and save.

What versions of mysql, php, apache are you running?

sorry. I forgot to mention in phpmyadmin you have to run a script before you can define relationships.

1. go to /phpmyadmin/config.inc.php and open the file in wordpad.

2. look for this line and start entering the DEFAULT table names in the single quotes. The default table names are given across each line in form of comments.
$cfg['Servers'][$i]['pmadb'] = '';

3. Last line in which you have to enter the DEFAULT value
$cfg['Servers'][$i]['history'] = ''; 

4. once this is done we need to execute the sql script. make sure the user name in script file matches the one on your sql server. The "pma" should be changed to reflect the sql user you have on the server.
GRANT SELECT, INSERT, DELETE, UPDATE ON `phpmyadmin`.* TO 'pma'@localhost;

this is the sql file you need to run
/phpmyadmin/scripts/create_tables_mysql_4_1_2+.sql

5. once this script executes you will see a new DB in phpmyadmin db list.

6.done.

good luck

p.s. please check the documentation on the phpmyadmin site. dont give up. took me a while to figure it out too.
Avatar billede janos Nybegynder
13. december 2005 - 19:51 #2
Ingen svar - har oprettet nyt spørgsmål
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester