[phpmyadmin] linked-table infrastructure werkt niet

Pagina: 1
Acties:
  • 198 views sinds 30-01-2008
  • Reageer

  • jealma
  • Registratie: Mei 2003
  • Niet online

jealma

Jesus is Lord!

Topicstarter
(overleden)
Ik ben op een testbak een debian-systeempje aan het opzetten. Ik gebruik Debian Etch 4.0 i386.
Daarna mysql-server (en een aantal andere pakketjes, waaronder php5, apache2 enzo) geinstalleerd, waardoor MySQL 5.0.32 is geinstalleerd. Vervolgens de laatste tar.bz2 van phpmyadmin.org gesleurd en uitgepakt in /var/www.

Phpmyadmin is geconfigureerd door config.sample.inc.php naar config.inc.php te kopieren en dan in config.inc.php het blowfish_secret in te vullen, alsmede de entry's controluser en controlpasswd.

Daarna heb ik wachtwoorden op root@localhost en root@hostname gezet en vervolgens het create_table script voor de linked-table infrastructure gerund met
code:
1
mysql -u root -p < scripts/create_tables_mysql_4_1_2+.sql

Dit ging goed, waarna er een database `phpmyadmin` bijkwam. Vervolgens de volgende queries uitgevoerd:
SQL:
1
2
3
4
5
6
7
8
9
10
11
12
13
GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';
GRANT SELECT (
    Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv,
    Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv,
    File_priv, Grant_priv, References_priv, Index_priv, Alter_priv,
    Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv,
    Execute_priv, Repl_slave_priv, Repl_client_priv
    ) ON mysql.user TO 'pma'@'localhost';
GRANT SELECT ON mysql.db TO 'pma'@'localhost';
GRANT SELECT ON mysql.host TO 'pma'@'localhost';
GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv)
    ON mysql.tables_priv TO 'pma'@'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO 'pma'@'localhost';


Voor de zekerheid heb ik vervolgens mysql nog even geherstart met /etc/init.d/mysql restart.
Probleem is nu, dat als ik inlog met phpmyadmin en dan bij een database naar operations ga, ik de volgende melding krijg:

The additional features for working with linked tables have been deactivated. To find out why click here.

De link verwijst naar een pagina die aangeeft: PMA Database... NOT OK, General Relation Features: Disabled.

Ik snap niet wat ik fout heb gedaan, de database phpmyadmin is aanwezig en gemaakt met het goede script, er is een gebruiker met wachtwoord en de goede rechten aanwezig en de configfile bevat de juiste gebruikersnaam en wachtwoord voor de controluser.

confic.inc.php hieronder:
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php

/* $Id: config.sample.inc.php 9689 2006-11-10 20:05:49Z nijel $ */
// vim: expandtab sw=4 ts=4 sts=4:

/**
 * phpMyAdmin sample configuration, you can use it as base for
 * manual configuration. For easier setup you can use scripts/setup.php
 *
 * All directives are explained in Documentation.html and on phpMyAdmin
 * wiki <http://wiki.cihar.com>.
 */

/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'Dafhe4f78GSYDhkg4fiuh'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'SECRET';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

/*
 * End of servers configuration
 */

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?>

[ Voor 0% gewijzigd door een moderator op 10-07-2007 22:45 . Reden: ff highlighting aangezet voor een wat fleurigere posting :P ]

Avalon, Fireflight, Gaither, Point of Grace, Third Day
C2D E6400 @ 3GHz - Zalman CNPS8000 - GA-P35-DS3 - Corsair 2GB ram - Asus 9400GT - OCZ Vertex 30GB
Archlinux 64-bit + Awesome


Verwijderd

Misschien een overbodige vraag, maar heb je wel FLUSH PRIVILEGES; gedaan? Een restart van MySQLd is voor dit soort zaken sowieso nooit nodig.

En je hebt die comment slashes toch wel weggehaald neem ik aan? Copy/paste foutje?

[ Voor 23% gewijzigd door Verwijderd op 10-07-2007 22:48 ]


  • jealma
  • Registratie: Mei 2003
  • Niet online

jealma

Jesus is Lord!

Topicstarter
(overleden)
Verwijderd schreef op dinsdag 10 juli 2007 @ 22:45:
Misschien een overbodige vraag, maar heb je wel FLUSH PRIVILEGES; gedaan? Een restart van MySQLd is voor dit soort zaken sowieso nooit nodig.

En je hebt die comment slashes toch wel weggehaald neem ik aan? Copy/paste foutje?
Ow wat ben ik stom 8)7 8)7 , totaal niet gezien.

[ Voor 25% gewijzigd door jealma op 10-07-2007 22:49 ]

Avalon, Fireflight, Gaither, Point of Grace, Third Day
C2D E6400 @ 3GHz - Zalman CNPS8000 - GA-P35-DS3 - Corsair 2GB ram - Asus 9400GT - OCZ Vertex 30GB
Archlinux 64-bit + Awesome


  • jealma
  • Registratie: Mei 2003
  • Niet online

jealma

Jesus is Lord!

Topicstarter
(overleden)
Het werkt, totaal niet gezien dat de controluser en controlpasswd en de advanced-feature regels commented waren.

Avalon, Fireflight, Gaither, Point of Grace, Third Day
C2D E6400 @ 3GHz - Zalman CNPS8000 - GA-P35-DS3 - Corsair 2GB ram - Asus 9400GT - OCZ Vertex 30GB
Archlinux 64-bit + Awesome


Verwijderd

Kan gebeuren, ik zag het hier ook niet direct ;)

En de meesterlijke band After Forever ontbreekt in je signature :( En Annatar is ook tof

[ Voor 0% gewijzigd door Verwijderd op 10-07-2007 22:56 . Reden: slowchat ]