Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1/ Créer une table « phpmyadmin » et y insérer les tables présentes dans ./example/create_tables.sql
- http://localhost/phpmyadmin/Documentation.html#linked-tables
- 2/ Créer un utilisateur « pma » et lui donner les droit sur la bdd phpmyadmin :
- #########################
- 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';
- #########################
- http://localhost/phpmyadmin/Documentation.html#pmausr
- 3/ Mettre config.inc.php à jour pour qu'il ressemble à un truc du genre :
- #########################
- <?php
- $cfg['blowfish_secret'] = 'wamp';#Base de génération pour le cookie
- /* Servers configuration */
- $i = 0;
- /* Server: localhost [1] */
- $i++;
- $cfg['Servers'][$i]['verbose'] = 'localhost';
- $cfg['Servers'][$i]['host'] = 'localhost';
- $cfg['Servers'][$i]['port'] = '';
- $cfg['Servers'][$i]['socket'] = '';
- $cfg['Servers'][$i]['connect_type'] = 'tcp';
- $cfg['Servers'][$i]['extension'] = 'mysqli';
- #$cfg['Servers'][$i]['auth_type'] = 'config';
- $cfg['Servers'][$i]['auth_type'] = 'cookie';
- $cfg['Servers'][$i]['user'] = 'root';
- $cfg['Servers'][$i]['password'] = '';
- $cfg['Servers'][$i]['AllowNoPassword'] = true;
- /* End of servers configuration */
- $cfg['DefaultLang'] = 'en-utf-8';
- #$cfg['ServerDefault'] = 1;
- #$cfg['UploadDir'] = '';
- #$cfg['SaveDir'] = '';
- /* rajk - for blobstreaming */
- $cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
- $cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
- $cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
- $cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
- $cfg['UploadDir'] = 'C:\wamp\sql_dump';
- $cfg['SaveDir'] = 'C:\wamp\save';
- $cfg['ExecTimeLimit'] = 0;
- $cfg['Servers'][$i]['controluser'] = 'pma';
- $cfg['Servers'][$i]['controlpass'] = 'G0ldorak';
- $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
- $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]['designer_coords'] = 'pma_designer_coords';
- $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
- $cfg['Servers'][$i]['history'] = 'pma_history';
- $cfg['Servers'][$i]['recent'] = 'pma_recent';
- $cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';
- $cfg['Servers'][$i]['tracking'] = 'pma_tracking';
- $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';
- ?>
- ###############################
- 4/ Se reconnecter à PHPMyAmdin pour recharger le fichier de config.
- 5/ Sélectionner une table puis aller dans « Designer » (« Concepteur »).
- 6/ Arranger la mise en page et sauvegarder, puis exporter vers un pdf.
- 7/ Création de la page pdf.
- 8/ Aller dans « Operations » (Opérations) et cliquer tout en bas sur « Edit or export relational schema » (« Éditer ou exporter un schéma relationnel »).
- 9/ Choisir la page à éditer et scroller tout en bas vers le dernier encadré « Display relational schema » (« Afficher le schéma relationnel »).
- 10/ ???
- 11/ PROFIT
Advertisement
Add Comment
Please, Sign In to add comment