Cannot login to phpMyAdmin, no errors shown

2019-01-26 04:46发布

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".

enter image description here

14条回答
乱世女痞
2楼-- · 2019-01-26 05:35

Make sure to set a 32 chars long random key in 'config.inc.php' in the $cfg['blowfish_secret'] value. That solved it for me.

查看更多
Viruses.
3楼-- · 2019-01-26 05:36

In my case the hard drive was full.

Use df -h to check the space left on your hard drive, and if you want you can free some space by using the command sudo apt-get clean, which removes installation files.

I hope this will help some future users.

查看更多
Bombasti
4楼-- · 2019-01-26 05:41

I ran these commands and it worked for me:

sudo service httpd restart
sudo service mysqld stop
sudo service mysqld start
查看更多
再贱就再见
5楼-- · 2019-01-26 05:44

This is a possible issue when the path to save php_session is not correctly set :

The directory for storing session does not exists or php do not have sufficient rights to write to it.

To define the php_session directory simply add the following line to the php.ini :

session.save_path="/tmp/php_session/"

And give write rights to the http server.

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

restart http server.
查看更多
姐就是有狂的资本
6楼-- · 2019-01-26 05:46

I fixed my issue on CentOS 7 with MariaDB and phpmyadmin I downloaded from offical phpmyadmin site by adding

session.save_path = "/var/lib/php/session"

to /etc/php.ini

and

chown -R :lighttpd /var/lib/php/session

I also restarted php-fpm and lighttpd after

查看更多
爱情/是我丢掉的垃圾
7楼-- · 2019-01-26 05:46
  1. Try searching the web for installation or setup guides for phpMyAdmin. Look at two or three of these and make sure you have covered all the required steps. (If you have already done so, please include which guides you have followed it in the question).
  2. See if it helps to edit config.inc.php (acecoder mentioned this as well).
  3. Check if this guide is of any help.
  4. Which distro are you on? Try searching for the name of the distro you are using together with "phpMyAdmin guide" or "phpMyAdmin setup howto".
  5. If you encounter errors along the way, post the error text here, if it's short (or paste via a pastebin-like site if it's long).
查看更多
登录 后发表回答