Phpmyadmin stopped working in ubuntu - mysql

I got strange error in my phpmyadmin,interface loaded properly but i can't select the databases,tabels and all other tabs.
when i click on it nothing happend
Also there are some error messages are in console
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Uncaught ReferenceError: PMA_messages is not defined
at PMA_ajaxShowMessage
phpmyadmin version:4.7.1
server:nginx

Its the problem with session folder permission
added 777 permission to var/lib/php/sessions folder now everything works fine

The 500 code would normally indicate an error on the server, try to restart Apache sudo service apache2 restart, post also the content of the apache phpmyadmin.conf file of that server, it should be in /etc/apache2/conf/

it might be various issues, but in my case phpmyadmin version is not compatible with php version. when i downloaded phpmyadmin for php7.4.
everything works fine.
i hope that might be useful for you all

Related

MySQL Workbench Failing to Connect to Server (Windows)

There are many errors I have found across the web that deal with MySQL connection errors, but I have found none that address this specific problem that I am having. In short, I have the newest version of the MySQL Server installed (8.0), I have verified it is running in my Services tab, and I can connect to the server via the MySQL client just fine. However, I cannot open a local connection in Workbench.
When I click on the local instance, it hangs until I manually stop it. I then get the aforementioned error
I then went and ran a diagnostic of the server in the MySQL Installer, which reported that everything is working fine (unless I am reading it wrong)
The logs of said diagnostic also report that the server is installed, functional, and running.
I then checked made sure the server was running in Services
After that, I verified that I could connect to the client, and that I could use the database I was working with (info redacted due to it being company property lol)
Additionally, I also made a new connection on Workbench on port 3307 instead of the standard 3306.
When I click on this, I can enter into the connection without getting the "Cannot access a disposed object" error. However, this connection still cannot connect to the server.
I also saw that some people were having success by navigating into C:\Program Files\MySQL\MySQL Server 8.0\bin and running mysqld --install. This appeared to be beneficial, but ended up doing nothing.
Does anyone know how I can fix this without completely uninstalling everything? Everything was working fine yesterday but has suddenly stopped as of this morning.

phpMyAdmin Service Unavailable

I have just installed fresh fedora 21, httpd, mysql and phpMyAdmin. I get an error if I visit localhost/phpMyAdmin
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Mysql seems to work fine, I can connect to it.
In the file /etc/php.ini look for open_basedir parameter and assign the path of the app for example /var/www/html/phpmyadmin. If you have multiple dirs concatenate them with :
open_basedir=/usr/share/webapps/:/etc/webapps/:/tmp/:/srv/http/arch/cacti/:/var/www/html/phpmyadmin
Don`t forget to restart the httpd server.

#2002 Cannot log in to the MySQL server error

I cannot log in to my mySQL database server anymore.
I am currently using WAMP 2.2 on Windows 8.1 64 bits.
I tried reinstalling WAMP server but the problem still persists.
I have also edited the config.inc.php file and changed the host name from 'localhost' to '127.0.0.1'; however the problem still exists.
I found the problem, eventually. It had nothing to do with any of the configuration files though.
My ESET Smart Security antivirus updated silently and blocked the mysql application. I did not even get a notification for it!
I figured it out when I tried logging in to phpMyadmin after turning off my antivirus.
I had to allow communication for mysqld.exe in the antivirus settings.
Using the Wampmanager menus take a look at the mysql error log.
left click wampmanager -> MySQL -> MySQL log
If that does not show any [error] messages then also have a look at the 'Windows Event Viewer' in the 'Application' section for messages from MySQL.
The normal problem is a rogue 'my.ini' or 'my.cnf' file on your system. Search for these 2 files in the C;\windows folder, if you find any then delete them.
DO NOT DELETE THE my.ini FILE FREOM ANYWHERE IN THE C;\WAMP folder structure.
Recently I encountered a problem with MySQL, It was showing an error “Error : 1067 the process terminated unexpectedly” when I tried to start the service in services.msc
So I googled it but didn’t found the perfect solution. I will show how can you debug the issue. First look for file my.ini which can be found in “C:\wamp\bin\mysql\mysql5.6.17″ , open that file on look for “log-error”, this will show you the path where error log is stored. In my case it is, “c:/wamp/logs/mysql.log”.
Open the log file and look for last error you got, you should be today’s date when you tried to start the wampmysqld from services. At this stage, you will get error and understand what it say. In my case it is,
enter image description here
The folders for all databases are in “C:\wamp\bin\mysql\mysql5.6.17\data”. To fix I moved kmk folder to some other place. After this, wampmysqld in services.msc is getting started without any error.

Trying to fix this error message "Invalid authentication method set in configuration: coookie" on the - phpMyAdmin page, when using MAMP?

I just restarted MAMP after months to start using it with Wordpress. Apache and MySQL Servers are both running fine (are green) and the start page launches fine. However the phpMyAdmin page is giving an error message:
phpMyAdmin - Error
Invalid authentication method set in configuration: coookie
[For what it's worth - I've cleared the browser cache ond cookies and have found negligible relevant material (solutions) around the issue, so far.]
Any known steps to resolve this issue?
You have one "o" too many in your coookie (check your PhpMyAdmin configuration file).

Connecting to MySQL Database

I have imported a database over to MySQL in phpMyAdmin. I am performing my work locally using WAMPSERVER (localhost).
Before I imported the database, I was getting the error Database not found. Now that I have added the database in localhost. I am getting the following error in the browser when I go to index.php
SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server or it may be requiring a client authentication certificate that you don't have.
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.
Here are some details about the config file, if it helps:
I haven't changed the .htaccess file. I do however have a config file that looks like this:
<?php
if($_SERVER['REMOTE_ADDR']=="127.0.0.1")
{
$DB_HOST="localhost";
$DB_USER="root";
$DB_PASS="";
$DB_NAME="dbName";
$site_url="http://localhost/folder/";
$doc_root=$_SERVER['DOCUMENT_ROOT']."/folder/";
}
else
{
$DB_HOST="localhost";
$DB_USER="root";
$DB_PASS="password";
$DB_NAME="dbName";
if($_SERVER["HTTPS"]=="on")
$site_url="weburl";
else
$site_url="weburl";
$doc_root=$_SERVER['DOCUMENT_ROOT'];
}
You don't need to use https:// when you are running it in you local machine. Because you can't have SSL certificate for your local machine, isn't it?
Try: http://localhost/myfolder/index.php instead.
You probably don't have https on.
And you're having issue going to http:// since you already went to https:// in your browser (Chrome is my guess). Try clearing your visited sites or history and it will work just fine. Or you may try it in another browser.
Also, it is possible that you may have edited an .htacess file to redirect or installed a php framework with https on.