无法登录到 phpMyAdmin,未显示错误 [英] Cannot login to phpMyAdmin, no errors shown
问题描述
我在我的 linux 计算机上正确设置了 MySQL,但是除了终端之外,我还想要一种更好的方式将数据输入到数据库中.为此,我下载了 phpMyAdmin.但是,当我尝试从 index.php 登录到 phpMyAdmin 时,它没有做任何事情.它似乎只是刷新页面而不做任何事情.我输入了正确的 MySQL 用户名和密码.有什么问题?
I have MySQL set up correctly on my linux computer, however I want a better way to input data into the database besides terminal. For this reason, I downloaded phpMyAdmin. However, when I try to log in to the phpMyAdmin from index.php, it doesnt do anything. It seems to just refresh the page without doing anything. I am putting in the correct MySQL username and password. What is the issue?
这是我点击开始"后显示的屏幕截图.
Here is a screen shot of what it shows after I click "go".
推荐答案
当保存 php_session 的路径设置不正确时,这可能是一个问题:
This is a possible issue when the path to save php_session is not correctly set :
存储会话的目录不存在或php没有足够的写入权限.
The directory for storing session does not exists or php do not have sufficient rights to write to it.
要定义 php_session 目录,只需在 php.ini 中添加以下行:
To define the php_session directory simply add the following line to the php.ini :
session.save_path="/tmp/php_session/"
并赋予 http 服务器写入权限.
And give write rights to the http server.
通常,http 服务器作为组守护进程中的用户守护进程运行.如果是这种情况,以下命令将使其成功:
usually, the http server run as user daemon in group daemon. If it is the case, the following commands will make it :
chown -R :daemon /tmp/php_session
chmod -R g+wr /tmp/php_session
service httpd restart
这篇关于无法登录到 phpMyAdmin,未显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!