{"id":184,"date":"2008-03-26T21:33:16","date_gmt":"2008-03-27T02:33:16","guid":{"rendered":"http:\/\/bitpost.com\/news\/2008\/03\/26\/phpmyadmin-designer-kicking-some-access-booty\/"},"modified":"2021-10-20T19:13:59","modified_gmt":"2021-10-20T23:13:59","slug":"phpmyadmin-designer-kicking-some-access-booty","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2008\/phpmyadmin-designer-kicking-some-access-booty\/","title":{"rendered":"phpMyAdmin Designer kicking some Access booty"},"content":{"rendered":"\n<center><a href=\"https:\/\/i0.wp.com\/bitpost.com\/images\/news\/phpmyadmin_designer.png?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/bitpost.com\/images\/news\/phpmyadmin_designer_tn.png\" alt=\"phpMyAdmin Designer\"><\/a><\/center>\n\n\n\n<p>Flashback to 1997. phpMyAdmin with the Designer view gives us an Access-ish design space with InnoDB-supported foreign keys, whee! For some stupid reason it&#8217;s a little tricky to set this up &#8211; you have to set up a special phpmyadmin database to track the extra layout information, and then configure phpMyAdmin to use it.<\/p>\n\n\n\n<!--more-->\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmysql -p &amp;lt; \/var\/www\/localhost\/htdocs\/phpmyadmin\/scripts\/create_tables_mysql_4_1_2+.sql\nmysql -p &amp;lt; \/var\/www\/localhost\/htdocs\/phpmyadmin\/scripts\/upgrade_tables_mysql_4_1_2+.sql\nemacs \/var\/www\/localhost\/htdocs\/phpmyadmin\/config.inc.php\n--------\n\/* MDM This was working with defaults (pma\/pmapass) but anyone could guess that and access the db! *\/\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;controluser&#039;] = &#039;pma&#039;;\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;controlpass&#039;] = &#039;USEYEROWNPASSWORDHEREYASCRUB&#039;;\n\n\/* MDM Added to prevent warnings on table operations tab.  These are all default values, not really needed.\nWithout these, you can still get to the &quot;designer&quot; tab: select database, click &quot;designer&quot; tab\nand the &quot;relation&quot; page: select database, select table, select structure tab, select relation link *\/\n\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;pmadb&#039;] = &#039;phpmyadmin&#039;; \/\/ Database used for Relation, Bookmark and PDF Features\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;bookmarktable&#039;] = &#039;pma_bookmark&#039;; \/\/ Bookmark table\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;relation&#039;] = &#039;pma_relation&#039;; \/\/ table to describe the relation between links (see doc)\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;table_info&#039;] = &#039;pma_table_info&#039;; \/\/ table to describe the display fields\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;table_coords&#039;] = &#039;pma_table_coords&#039;; \/\/ table to describe the tables position for the PDF schema\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;pdf_pages&#039;] = &#039;pma_pdf_pages&#039;; \/\/ table to describe pages of relationpdf\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;column_info&#039;] = &#039;pma_column_info&#039;; \/\/ table to store column information\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;history&#039;] = &#039;pma_history&#039;; \/\/ table to store SQL history\n$cfg&#x5B;&#039;Servers&#039;]&#x5B;$i]&#x5B;&#039;designer_coords&#039;] = &#039;pma_designer_coords&#039;; \/\/ table to store the coordinates for Designer\n--------\nthen create the pma mysql user and grant it access to the phpmyadmin database using your own password.\nthen create some tables - make sure you set them to use the InnoDB engine - and have some fun!\n<\/pre><\/div>\n\n\n<p>Whee!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flashback to 1997. phpMyAdmin with the Designer view gives us an Access-ish design space with InnoDB-supported foreign keys, whee! For some stupid reason it&#8217;s a little tricky to set this up &#8211; you have to set up a special phpmyadmin database to track the extra layout information, and then configure phpMyAdmin to use it.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[10],"tags":[92],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","tag-phpmyadmin"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-2Y","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":2,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":2467,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/184\/revisions\/2467"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}