0
点赞
收藏
分享

微信扫一扫

xampp phpmyadmin的配置

止止_8fc8 2023-06-08 阅读 28


//xampp phpmyadmin的配置


# cy coco
# 2014-08-21

在网上直接下载的

先去官网下载:xampp-linux-x64-1.8.3-4-installer.run,安装后,本机原来安装的有tomcat,mysql

一直调配不好,网上搜的资料都不能用,于是自己模锁着配置的,当然了参考了官方的英文文档,

最后配置成功。多用户登录管理页面配置。

下面是具体的过程:

http://www.apachefriends.org/zh_cn/index.html


下载可以下载源码的.tar.gz 也可以下载.run


这里下载的是.run,采用自动安装的。如下:下载,授权,安装。


wget http://jaist.dl.sourceforge.net/project/xampp/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-4-installer.run


chmod 755 xampp-linux-x64-1.8.3-4-installer.run


 ./xampp-linux-x64-1.8.3-4-installer.run 


 


默认是安装在/opt/下,一个命名为:lampp的文件夹,所有的东西都在这里面安装。


下面是启动:



/opt/lampp/xampp start|stop   //xampp是启动文件。 



 [root@db2 lampp]# ./xampp stop 

 Stopping XAMPP for Linux 1.8.3-4... 

 XAMPP: Stopping Apache...ok. 

 XAMPP: Stopping MySQL...not running. 

 XAMPP: Stopping ProFTPD...ok. 

 [root@db2 lampp]# ./xampp start 

 Starting XAMPP for Linux 1.8.3-4... 

 XAMPP: Starting Apache...ok. 

 XAMPP: Starting MySQL...ok. 

 XAMPP: Starting ProFTPD...ok.

安装很简单,安装后使用也很简单,不简单的是,你本就原来就有数据库mysql,此时我们需要修改


phpmyadmin的配置文件,来使用我们远程访问的数据库。 




1、打开“路径/phpmyadmin/libraries/config.default.php”,查找相关项并修改为以下内容:




$cfg['PmaAbsoluteUri'] = 'http://218.206.205.35/phpmyadmin/'; 

 $cfg['blowfish_secret'] = 'tbkt'; //[87] 密码短语 

 $cfg['Servers'][$i]['host'] = $_COOKIE["mysqlhost"];  //主机地址 

 $cfg['Servers'][$i]['port'] = $_COOKIE["mysqlport"]; //[115] 端口号 

 $cfg['Servers'][$i]['auth_type'] = 'cookie'; //[186] 启用cookie 

 $cfg['Servers'][$i]['user'] = $_COOKIE["pma_username"]; // 用户名 

 $cfg['Servers'][$i]['password'] = $_COOKIE["pma_password"];  

 $cfg['Servers'][$i]['nopassword'] = true; //[250] 密码允许为空 

 $cfg['Servers'][$i]['AllowNoPassword'] = true; //[422] 密码允许为空 

 $cfg['LoginCookieValidity'] = 86400; //[676] 登录超时设置,默认是1440。86400为一天 

 $cfg['VerboseMultiSubmit'] = true; //[721] 允许多台管理 

 $cfg['AllowArbitraryServer'] = true; //[721] 允许多台管理 

 $cfg['ExecTimeLimit'] = 0; 

 $cfg['LoginCookieRecall'] = false; 

 $cfg['LoginCookieValidity'] = 60;


重启后即可使用。



举报

相关推荐

0 条评论