phpmyadmin配置配置笔记

来源:互联网 发布:java string isempty 编辑:程序博客网 时间:2024/05/18 12:02

phpmyadmin是个mysql的客户端数据库管理工具,实现对服务器的mysql数据库操作

下载后放到服务器虚拟目录下,比如phpmyadmin

找到目录里的config.inc.php文件,打开
  找到 $cfg['PmaAbsoluteUri']
  修改你将上传到空间的phpMyAdmin的网址

  如:$cfg['PmaAbsoluteUri'] = 'http://your.domain.com/phpmyadmin/';
  

  还有下面的
  $cfg['Servers'][i]['host'] = 'localhost';(通常用默认,也有例外)
  
  $cfg['Servers'][i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
  在自己的机子里调试用config,如果在网上用cookie

  
  $cfg['Servers'][i]['user'] = 'root'; // MySQL user(用户名,自己机里用root,在网上设你的ftp用户名)
  $cfg['Servers'][i]['password'] = ''; // MySQL password (only needed
  自己机里不用设

  
  $cfg['Servers'][i]['only_db'] = ''; // If set to a db-name, only(你只有一个数据就设置一下)
  
  还有设
  $cfg['DefaultLang'] = 'zh';
  

  设置完毕可以上传到网上了。
  

原创粉丝点击