我最近配置了两台服务器.第一个使用Apache和PHPMyAdmin.在另一台服务器上,我正确配置了maria-DB服务器.

PHPMyAdmin它正在读取配置文件,但我无法连接到MariaDB服务器并且PMA正在抛出

#2002 Cannot log in to the MysqL server

使用MysqL命令从Web服务器连接到数据库服务器并使用相同的用户/密码,我可以成功连接到数据库服务器.

在MysqL中没有错误,MysqL的所有端口都在防火墙中打开,没有PHP错误.我没有找到问题的运气.

编辑:

通过Shell访问服务器

[root@pw000i rafael]# MysqL -h [IP ADRESS TO THE REMOTE SERVER] -u rafael -p

Enter password:

Welcome to the MariaDB monitor. Commands end with ; or \g.

Your MariaDB connection id is 4

Server version: 5.5.36-MariaDB-log MariaDB Server

Copyright (c) 2000,2014,Oracle,Monty Program Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

来自PHPMyAdmin的config.inc.PHP

/**

* PHPMyAdmin configuration file,you can use it as base for the manual

* configuration. For easier setup you can use "setup/".

*

* All directives are explained in Documentation.html and on PHPMyAdmin

* wiki .

*/

/*

* This is needed for cookie based authentication to encrypt password in

* cookie

*/

$cfg['blowfish_secret'] = 'MY SECRET PASSPHRASE IS HIDDEN'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/**

* Server(s) configuration

*/

$i = 0;

// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use

// $cfg['Servers'][0]. You can disable a server config entry by setting host

// to ''. If you want more than one server,just copy following section

// (including $i incrementation) serveral times. There is no need to define

// full server array,just define values you need to change.

$i++;

$cfg['Servers'][$i]['host'] = '10.XX.X.XXX'; // MysqL hostname or IP ad dress

$cfg['Servers'][$i]['port'] = ''; // MysqL port - leave blank for default port

$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leav e blank for default socket

$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MysqL s erver ('tcp' or 'socket')

$cfg['Servers'][$i]['extension'] = 'MysqLi'; // The PHP MysqL extension t o use ('MysqL' or 'MysqLi')

$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol f or the MysqL connection

// (requires PHP >= 4.3.0)

$cfg['Servers'][$i]['controluser'] = ''; // MysqL control user settin gs

// (this user must have read -only

$cfg['Servers'][$i]['controlpass'] = ''; // access to the "MysqL/user "

// and "MysqL/db" tables).

// The controluser is also

// used for all relational

// features (pmadb)

$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method ( config,http or cookie based)?

$cfg['Servers'][$i]['user'] = 'rafael'; // MysqL user

$cfg['Servers'][$i]['password'] = ''; // MysqL password (only need ed

// with 'config' auth_type)

$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name,only

// this db is displayed in l eft frame

// It may also be an array o f db-names,where sorting order is relevant.

$cfg['Servers'][$i]['hide_db'] = ''; // Database name to be hidde n from listings

$cfg['Servers'][$i]['verbose'] = 'new-db-mariaDB'; // Verbose nam e for this host - leave blank to show the hostname

$cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relatio n,Bookmark and PDF Features

// (see scripts/create_table s.sql)

// - leave blank for no su pport

// DEFAULT: 'PHPmyadmin'

$cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table

// - leave blank for no bo okmark support

// DEFAULT: 'pma_bookmar k'

$cfg['Servers'][$i]['relation'] = ''; // table to describe the rel ation between links (see doc)

// - leave blank for no re lation-links support

// DEFAULT: 'pma_relatio n'

$cfg['Servers'][$i]['table_info'] = ''; // table to describe the dis play fields

// - leave blank for no di splay fields support

// DEFAULT: 'pma_table_i nfo'

$cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tab les position for the PDF schema

// - leave blank for no PD F schema support

// DEFAULT: 'pma_table_c oords'

$cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages o f relationpdf

// - leave blank if you do n't want to use this

// DEFAULT: 'pma_pdf_pag es'

$cfg['Servers'][$i]['column_info'] = ''; // table to store column inf ormation

// - leave blank for no co lumn comments/mime types

// DEFAULT: 'pma_column_ info'

$cfg['Servers'][$i]['history'] = ''; // table to store sql histor y

// - leave blank for no SQ L query history

// DEFAULT: 'pma_history '

$cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables

// are up to date. This prev ents compatibility

// checks and thereby increa ses performance.

$cfg['Servers'][$i]['AllowRoot'] = TRUE; // whether to allow root log in

$cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order,leave blank to not use

= '';

$cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules,leave blank for defaults

= array();

$cfg['Servers'][$i]['AllowNoPassword'] // Allow logins without a pa ssword. Do not change the FALSE

= FALSE; // default unless you're run ning a passwordless MysqL server

$cfg['Servers'][$i]['designer_coords'] // Leave blank (default) for no Designer support,otherwise

= ''; // set to suggested 'pma_des igner_coords' if really needed

$cfg['Servers'][$i]['bs_garbage_threshold'] // Blobstreaming: Recommente d default value from upstream

= 50; // DEFAULT: '50'

$cfg['Servers'][$i]['bs_repository_threshold'] // Blobstreaming: Recommente d default value from upstream

= '32M'; // DEFAULT: '32M'

$cfg['Servers'][$i]['bs_temp_blob_timeout'] // Blobstreaming: Recommente d default value from upstream

= 600; // DEFAULT: '600'

$cfg['Servers'][$i]['bs_temp_log_threshold'] // Blobstreaming: Recommente d default value from upstream

= '32M'; // DEFAULT: '32M'

/*

* End of servers configuration

*/

/*

* Directories for saving/loading files from server

*/

$cfg['UploadDir'] = '/var/lib/PHPMyAdmin/upload';

$cfg['SaveDir'] = '/var/lib/PHPMyAdmin/save';

/*

* Disable the default warning that is displayed on the DB Details Structure

* page if any of the required Tables for the relation features is not found

*/

$cfg['PmaNoRelation_DisableWarning'] = TRUE;

?>

我在两台服务器上都使用Fedora 20.有任何想法吗?

linux远程登录maridb,linux – 无法使用phpMyAdmin登录到远程MariaDB服务器,但在shell中工作...相关推荐

  1. linux ftp站点名称,Linux ftp命令的使用方法有哪些

    ftp服务器在网上较为常见,Linux ftp命令的功能是用命令的方式来控制在本地机和远程机之间传送文件,这里学习啦小编详细介绍Linux ftp命令的一些经常使用的命令,相信掌握了这些使用Linux ...

  2. linux sftp 重命名,linux下ssh/sftp配置和权限设置

    基于 ssh 的 sftp 服务相比 ftp 有更好的安全性(非明文帐号密码传输)和方便的权限管理(限制用户的活动目录). 1.开通 sftp 帐号,使用户只能 sftp 操作文件, 而不能 ssh ...

  3. linux用户命令解释器,Linux下的命令解释器 ash.exe

    (1)简介 ash --a shell 这是由Kenneth Almquist在1989年编写的,ash是Linux下的许多命令解释器中的一个,它的许多特性接近于SYSTEM V的shell. (2) ...

  4. 远程登录linux进程的状态_Linux实操篇 - 远程登录到Linux系统

    一.为什么要远程登录Linux系统 在我们日常开发中,具体情况如下: Linux服务器是项目组共享的; 正式上线的项目运行在公网上; 综上所述,我们需要通过工具远程登录到服务器进行项目管理; 二.远程 ...

  5. windows远程登录 ubuntu Linux 系统及互连共享桌面

    预备工作 #开启防火墙端口 sudo ufw allow 3389 #安装ssh sudo apt-get install openssh-server 一.windows直连Ubuntu16.04共 ...

  6. 12.解决SUSE Linux无法使用SSH登录的问题

    12.解决SUSE Linux无法使用SSH登录的问题 参考文章: (1)12.解决SUSE Linux无法使用SSH登录的问题 (2)https://www.cnblogs.com/LuckyHaT ...

  7. 如何远程登录连接Linux云服务器(电脑端/移动端)?

    目录 电脑端登录Linux云服务器 1.标准登录方式登录 2.远程登录软件登录 3.用SSH的方式登录 苹果电脑登录方式: Windows电脑登录方式: 4.VNC 登录 移动端登录Linux云服务器 ...

  8. 京东云 linux无法远程,问题解读 | Linux系统SSH无法远程登录时该怎么办?这里有篇小攻...

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 对于Linux云主机,SSH是标配.在实际操作过程中有时会出现无法远程登录的情况,这里简单介绍了SSH无法登录的可能原因及排查方法,帮助大家用以自测. - ...

  9. Linux笔记1(安装,目录结构,远程登录,vi和vim,用户管理,实用指令。定时调度,挂载。)

    1.linux的安装 1.先安装virtualmachine15.5 2.再安装Linux(CentOS7.6/centOS8.1) 首先在自己的window电脑上安装虚拟机,然后虚拟机相当于一台电脑 ...

最新文章

  1. Linux 最常用命令:简单易学,但能解决 95% 以上的问题
  2. python ssh登陆模块_Python sshh包_程序模块 - PyPI - Python中文网
  3. matplotlib 旋转刻度_Matplotlib数据可视化:文本与坐标轴
  4. C++ 程序员如何迎接 Windows 10 的到来
  5. 12.16直播:藏在华为物联网操作系统里的“秘密”
  6. PreScan轨迹mat文件数据格式
  7. python画图渐变颜色的代号_plt绘图颜色渐变以及colormap
  8. 如何在思科交换机上配置Telnet远程登录
  9. tf.matmul()和tf.multipy()的区别
  10. centos7自动获取ip命令_如何设置CentOS 7开机自动获取IP地址详解
  11. yarn : 无法加载文件 C:\Users\mosho\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。
  12. 二维码图像编码原理(字符编码:ASCII、UTF-8)
  13. 对Python语言课程的建议
  14. 育儿知识小分享—— 如何引导孩子学会分享
  15. 何恺明 matlab,[论文复现]何恺明博士CVPR2009去雾算法(1)
  16. Android-茫茫9个月求职路,终于拿满意offer
  17. 可以美化图片的方法每日分享
  18. 在folium中使用高德底图/百度底图/google底图
  19. 测试吃鸡游戏帧数软件,帧数猛提!新旧版本《绝地求生》实测
  20. tomcat7.x 点击\bin\tomcat7.exe一闪而过,点击tomcat7w.exe提示未安装服务

热门文章

  1. 逃离美国,跨越8000公里远程办公,他开发了世界上最强的虚拟机
  2. Dell服务器组建阵列-Raid(无阵列卡)
  3. 【codecs】JPEG、MPEG-1、MPEG-2和MPEG-4编解码流程对比
  4. 【金猿产品展】荣联冷冻电镜数据分析平台——助力生物医疗科研创新
  5. Matlab 实现图像的直角坐标系和极坐标系的相互转化
  6. 15支持哪些数据库版本 tfs_TFS数据库架构(TFS Database Architecture)
  7. 逆向经验 + 逆向工具
  8. XP下安装IIS6.0的办法
  9. 概述-元数据是什么?
  10. 软件测试技术 实验一:黑盒测试1