WAMP环境下phpMyAdmin Designer配置及异常问题咨询
Fixing phpMyAdmin 4.7.9 Designer Issues in WAMP 3.1.3
Hey there, let's break down and solve your two main problems with the Designer feature—first the antivirus interference, then the JavaScript error when saving pages. I’ve worked through similar quirks before, so here’s a step-by-step guide:
1. Resolve Kaspersky Total Security Interference
Kaspersky’s real-time protection and script monitoring are likely blocking phpMyAdmin’s AJAX requests or resource loading for the Designer tool. Try these fixes:
- Add WAMP directory to Kaspersky’s Trusted Zone:
Open Kaspersky → Go toSettings→Protection→Threats and Exclusions→Exclusions→Add. Select your WAMP root folder (usuallyC:\wamp64or your custom path) and check all scanning options (Real-Time Protection, Web Protection, Script Monitoring) to exclude it from checks. - Whitelist phpMyAdmin in Web Protection:
In Kaspersky’s Web Protection settings, addhttp://localhost/phpmyadminto the allowed sites list. This prevents it from blocking AJAX calls the Designer uses to load table data. - Exclude phpMyAdmin from Script Monitoring:
Navigate to Kaspersky’s Script Monitoring settings, add thephpmyadminsubfolder (e.g.,C:\wamp64\www\phpmyadmin) to the exclusion list. This stops Kaspersky from interfering with the tool’s JavaScript execution.
2. Fix Fatal JavaScript Error on "Save Page"
With Kaspersky disabled, this error usually ties to missing phpMyAdmin configuration or database tables. Let’s address it:
- Verify Designer-related Configurations:
Open your phpMyAdminconfig.inc.phpfile (located inC:\wamp64\www\phpmyadmin). Ensure these lines are present and enabled:
If any lines are missing, add them. These settings enable the database tables needed to save Designer layouts.$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; $cfg['Servers'][$i]['designer_coords'] = true; $cfg['Servers'][$i]['relation'] = 'pma__relation'; $cfg['Servers'][$i]['table_info'] = 'pma__table_info'; - Ensure phpMyAdmin Database Tables Exist:
In phpMyAdmin, go toSettings→Features→Create database(under the "pmadb" section). This will generate all required tables likepma__table_coordsif they’re missing. - Clear Caches:
Force-refresh your browser (pressCtrl+Shift+R) to clear cached JavaScript files. Also, restart WAMP services to ensure new configs take effect. - Check PHP and MySQL Permissions:
- In your WAMP php.ini file, confirm
allow_url_fopen = On(search for this line, change it if it’s set toOff, then restart WAMP). - Make sure your MySQL user (typically
root) has full read/write permissions for thephpmyadmindatabase, especially thepma__table_coordstable—this is where Designer saves page layouts.
- In your WAMP php.ini file, confirm
- Reinstall phpMyAdmin’s JS Files:
If the JavaScript files are corrupted, download the phpMyAdmin 4.7.9 zip package, extract it, and replace thejsfolder in your existingphpmyadmindirectory with the fresh one.
内容的提问来源于stack exchange,提问作者Milan Stokic
相关产品推荐
相关产品推荐

