博客 |蓝易论坛 |加入收藏 | 设为首页 | RSS
您当前的位置:首页 > 网络与编程 > php

怎样让phpmyadmin支持mysql

时间:2009-02-08 05:39:03  来源:  作者:

怎样让phpmyadmin支持mysql

Mysql是当前非常流行的数据库软件,phpmyadmin则是一个可视化的mysql操作程序,用php编写的,在没安装phpmyadmin的情况下mysql的数据是以frm myd myi存放的,可以通过phpmyadmin导出为sql数据。跟其它php程序安装一样,下载phpmyadmin后放在apache的htdocs目录下,修改用户名与密码后就可以通过phpmyadmin对mysql 进行管理了。

方法,找到config.sample.inc.php

* 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';

/* 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';

/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* 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';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';

对上面的pma和pmapass改成mysql的用户名与密码。

// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';

然后重命名为config.inc.php即可通过http://localhost/phpmyadmin目录进行访问。

来顶一下
近回首页
返回首页
下一篇:phpbb挂了 上一篇:deluxebb1.3今晚发布

正在载入评论数据中...
用户名: 验证码: 游客请勾选
         
分类
  • 网络
  • joomla专栏
  • php
  • ftp工具
  • 网站建设
  • 推荐资讯
    栏目更新
    栏目热门