Windows下phpMyAdmin升级原来这么简单!
打算升级我本地的phpMyAdmin,目前版本为3.3.7,我想把它升级到最新的3.5.2.2。因为最近买的两个香港PHP空间,发现里面的phpMyAdmin都是全新的界面。听说3.4版本以后启用了全新主题pmahomme,这个主题的圆角阴影全部使用CSS3渲染,灰白色调,看起来的确圆润美观,蛮舒服的。
这里讨论Windows下的升级,听说Linux下升级也非常简单。在Google里输入“phpmyadmin upgrade”第一个跳出来的就是官司的帮助文档wiki.phpmyadmin.net/pma/Upgrading,以下是phpMyAdmin升级的官方英文原版说明:
Specific Steps - Windows Example
Back up your current phpMyAdmin directory.
Download the desired version and extract its files to a temporary location, e.g. C:\NEWPHP\.
Locate your current config.inc.php file. This will be the one in your phpMyAdmin directory, NOT phpMyAdmin\libraries\config.default.php!
Copy your current config.inc.php into the temporary directory containing the extracted files (e.g. C:\NEWPHP\).
Delete the contents of your phpMyAdmin directory (assuming you backed it up. If you didn't back it up, then go back to step 1, do not pass "GO," and do not collect $200!).
Move all of the contents of your temporary directory (e.g. C:\NEWPHP\) into your original phpMyAdmin directory and empty your browser cache.
Test.
If successful, announce "I'm a genius!" to everyone within earshot.
[Does not work with WAMP ver 2.0 with phpmyadmin 2.11.6.]
Specific version notes
When upgrading from versions prior to:
3.1.5
Requires PHP 5.2+
2.7.0
config.inc.php no longer holds every configuration directive; only directives that differ from those in libraries/config.default.php are needed here. See the Quick Install section for more details.
Since version 2.6.0, simply copy your existing config.inc.php to the new directory. You may wish to read the release notes so you can take advantage of any new features. Some people had problems with this method though.
别看上面写了这么多,其实方法很简单。就是先备份旧的phpmyadmin文件夹,然后复制出根目录下的config.inc.php,把它拷贝到新的phpMyadmin文件夹里,然后直接使用这个新的phpMyAdmin就可以了,亲测,没有问题。另外,帮助文档说了,3.1.5和2.7.0版本的的升级是特殊情况,具体再看了。
- 属于分类:技术乐园
- 本文标签:phpMyAdmin
- 流行热度:超过 1,204 人阅读
- 生产日期:2012年09月29日 - 16点40分17秒
- 相关内容: