PHP my admin doesnt work anymore after fatal error - sql

PHP my admin doesnt work anymore.. this is the error:
Fatal error: Maximum execution time of 100 seconds exceeded in
C:\wamp\apps\phpmyadmin3.5.1\libraries\session.inc.php on line 96
I was running a query for 70.000 rows, but he was loading for a very long time. Now closed my browser and tried to start phpmyadmin again. But now I can't start phpmyadmin anymore.

If phpmyadmin does not respond anymore, the query might still be running and blocking your connection. Try connecting via console, if possible*, and do the following:
mysql> SHOW PROCESSLIST;
This will show you which process/es are still running, how long they have been running and most important, their id. If you see your monster query from before, kill it:
mysql> KILL QUERY 123;
*) if you don't have console access, you could also try to open phpMyAdmin from another browser and run the commands there.

Related

Ubuntu Server - Not able to run server in background

I am running server for Rimworld on RapsberyPi 4B.
I have problem with running it in background, when i start the server:
./Open\ World\ Server
Everything starts but name of CMD is the name of the server and when i close the CMD window server will stop.
I´ve tried many things like & after the command, nohup and others. Also I´ve tried pm2 as it is running my discord bot, but everything that I´ve tried is stil saying that Open World Server is "Stopped".
So what i need is:
Run this server in background
Start this server after restart automatically.
Thanks everyone for help :)
So I have found the solution.
I´ve tried pm2 many times but never this way.
nano
#!/bin/bash
Command you want to be executed. In my case
./Open\ World\ Server
Save this like run.sh or whatever.
After that simply do this
pm2 start run.sh
And that is all you need. You can do the same way with minecraft server or other things you want to run in background and start with reboot of your Pi or other devices.

SQL Server Browser won't start

I want to start playing around with databases in Java to help with my university work however I can't get SQL Server to work properly. I've installed it using the wizard and selecting 'Basic' the installing SSMS. However when launching SSMS I get Error 26. When researching this it says to make sure that the SQL Server Browser service is running. Unfortunately this is the issue, every time I try to start the service it fails.
All the fixes I've seen about this topic have been related to servers on another machine where as I am trying to run the server on my own PC. I've tried them anyway but nothing has worked so far. The only thing I can find that might give you a clue in helping me is that in the log file it says that it failed to register the SPN.
When working on my local machine, I don't usually need SQL Server browser - but my SQL Server itself isn't set up to run automatically.
You can go to services (either via window and search for 'services', or in Windows 10 open the task manager, go to the last tab 'services'). Find the 'SQL Server' service (it helps to sort by description column) and right click -> start.
If you take note of the name (default is 'MSSQLSERVER') you can start the service (e.g., in a batch file, from command line) using sc start "MSSQLSERVER" (or whatever your server instance is called).

Laravel keeping remote connection until all commands have finished

Toolset:
Laravel 5.2.*
LaravelCollective remote package ^5.2
Let's say I have a route http://example.com/npm when I hit this route I process some request parameters and then ssh into a remote server using the LaravelCollective remote package.
After some time I see in my logs that the connection is closed. I know this because that message is logged after the ssh command. So my applications tells me that my command is executed successfully.
But when I go and check the server there is no node_modules folder, but after hitting the route 10x is suddenly is there.
That made me think that my connection is closed even the commands where not finished. To be sure about that I started monitoring the process on ther server with the following command
ps aux
This resulted in the fact that I got my success message but the process was still running on my server, which means the output I get is not correct and it prevents a follow-up command to fail (gulp production)
I dug a bit into the source code to see that there is a way to keep that connection open but no luck so far.
The question: can I keep this connection open until the commands are definitely finished so that my response to the end user is correct?

Vagrant starts but cannot connect until I do a 'force provision'

I've got a Windows 7 machine setup with vagrant/virtualBox - each morning when I try to access my development site it always a 'Unable to connect' error message in my Firefox browser.
Even though I have booted the machine using the 'vagrant up' command for some reason it only seems to be accessible via the browser once I have done the 'vagrant provision' command. This is obviously annoying as it starts doing stuff from scratch.. eg installing my mysql database again.
Can anyone provide any light into this, and why it seems to fail to connect all the time - as this provision command is only a temporary fix as i'll need to amend the DB everytime which is only feasible in the short term.
Might just be my own setup - but I noticed nginx was restarting so have to restart this each time

phpMyAdmin does not run SQL and shows "Loading" message

I installed Ubuntu 12.04 with its LAMP stack:
PHP 5.3.10
MySQL 5.5.24
Apache 2.2.22
phpMyAdmin 3.4.10.1deb1.
phpMyAdmin is working except when I run SQL query sometimes it runs OK but in most cases phpMyAdmin shows “Loading” message on the yellow background and then stops running the query like nothing happened without giving any error message.
I tried to run incorrect SQL code and phpMyAdmin does not show any errors, just shows “Loading” message.
I run those SQL queries via older phpMyAdmin on older versions of LAMP without problems.
I have experienced this too in a WAMP stack-- it appears to happen when the result of the query would be an empty result. You can verify this by running the same query from the mysql CLI, or alter the query to ensure that some records match the search.
I assume this may be a bug in phpmyadmin.