无法登录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屋!