If there's a mistake in the server's URL, any further requests to access Adminer will be blocked until the request that's trying to connect to the wrong server is killed. This is because PHP locks session data to prevent concurrent writing to the same session and Adminer doesn't close the session before trying to connect to the database server.
Adding session_write_close before calling connect seems to fix the issue but not sure if it breaks anything else.
Last edit: Kareem Zidane 2018-02-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If there's a mistake in the server's URL, any further requests to access Adminer will be blocked until the request that's trying to connect to the wrong server is killed. This is because PHP locks session data to prevent concurrent writing to the same session and Adminer doesn't close the session before trying to connect to the database server.
Adding
session_write_close
before callingconnect
seems to fix the issue but not sure if it breaks anything else.Last edit: Kareem Zidane 2018-02-20
Adminer calls it but too late. I've moved it before connect.
Thank you!