How to stop mysqld process?How can I get my mysqld-swamped CPU under control?How to hide a running process ?upgrade to 12.04, mysqld up but can't log onHave I over-installed MySQL?Run pkill without sudo permissionmysqld is suddenly taking too much memory and my laptop is getting hotterjava process hogs both cpu and net speedpkill command with sessionid is not killing entire process treeWhy does mariadb keep dying? How do I stop it?akonadi services and mysqld use too much memory in kubuntu 16.04
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
What should be the ideal length of sentences in a blog post for ease of reading?
Using an older 200A breaker panel on a 60A feeder circuit from house?
Can a Knock spell open the door to Mordenkainen's Magnificent Mansion?
Is divisi notation needed for brass or woodwind in an orchestra?
Why is implicit conversion not ambiguous for non-primitive types?
Why is indicated airspeed rather than ground speed used during the takeoff roll?
Checking @@ROWCOUNT failing
Rendered textures different to 3D View
How would a solely written language work mechanically
Exposing a company lying about themselves in a tightly knit industry (videogames) : Is my career at risk on the long run?
How to preserve electronics (computers, ipads, phones) for hundreds of years?
How to get directions in deep space?
Why would five hundred and five same as one?
C++ lambda syntax
Sort with assumptions
Started in 1987 vs. Starting in 1987
Friend wants my recommendation but I don't want to give it to him
Pre-Employment Background Check With Consent For Future Checks
How do you justify more code being written by following clean code practices?
categorizing a variable turns it from insignificant to significant
Weird lines in Microsoft Word
A seasonal riddle
Capacitor electron flow
How to stop mysqld process?
How can I get my mysqld-swamped CPU under control?How to hide a running process ?upgrade to 12.04, mysqld up but can't log onHave I over-installed MySQL?Run pkill without sudo permissionmysqld is suddenly taking too much memory and my laptop is getting hotterjava process hogs both cpu and net speedpkill command with sessionid is not killing entire process treeWhy does mariadb keep dying? How do I stop it?akonadi services and mysqld use too much memory in kubuntu 16.04
result of ps -e | grep mysqld
running htop
and clicking on memory usage..
It is taking 33% of 4gb memory.
I just want to end the mysqld process.. running sudo pkill mysqld
ends the process but again the process starts.. I want to completely end it and get the memory back.
14.04 mysql process
add a comment |
result of ps -e | grep mysqld
running htop
and clicking on memory usage..
It is taking 33% of 4gb memory.
I just want to end the mysqld process.. running sudo pkill mysqld
ends the process but again the process starts.. I want to completely end it and get the memory back.
14.04 mysql process
1
Press f5 in htop to see what process is starting mysqld
– Moose
Sep 27 '14 at 16:28
add a comment |
result of ps -e | grep mysqld
running htop
and clicking on memory usage..
It is taking 33% of 4gb memory.
I just want to end the mysqld process.. running sudo pkill mysqld
ends the process but again the process starts.. I want to completely end it and get the memory back.
14.04 mysql process
result of ps -e | grep mysqld
running htop
and clicking on memory usage..
It is taking 33% of 4gb memory.
I just want to end the mysqld process.. running sudo pkill mysqld
ends the process but again the process starts.. I want to completely end it and get the memory back.
14.04 mysql process
14.04 mysql process
edited Sep 27 '14 at 16:27
αғsнιη
24.9k23100161
24.9k23100161
asked Sep 27 '14 at 16:17
Manoj BharadwajManoj Bharadwaj
60117
60117
1
Press f5 in htop to see what process is starting mysqld
– Moose
Sep 27 '14 at 16:28
add a comment |
1
Press f5 in htop to see what process is starting mysqld
– Moose
Sep 27 '14 at 16:28
1
1
Press f5 in htop to see what process is starting mysqld
– Moose
Sep 27 '14 at 16:28
Press f5 in htop to see what process is starting mysqld
– Moose
Sep 27 '14 at 16:28
add a comment |
7 Answers
7
active
oldest
votes
The mysql
Upstart configuration has the respawn
option:
$ grep respawn /etc/init/mysql.conf
respawn
respawn limit 2 5
elif echo $statusnow | grep -q 'respawn/' ; then
The respawn
option tells Upstart to restart the process if it exits or is killed.
The limit is 2, so you can try killing of the processes twice, which will tell Upstart not to start them again, or use:
sudo service mysql stop
mysql stop
stops it, and yet it still starts again and again... I commented out respawn rows in the configuration, but that didn't help.
– Jānis Elmeris
Jul 10 '16 at 12:36
1
@Janis ifservice mysql stops
mysql, and then it restarts, then something else is starting it. Look for cronjobs or monitoring scripts or something.
– muru
Jul 10 '16 at 12:45
Thanks! I did the stopping by/etc/init.d/mysql stop
, but it turned out that I had to runservice mysql stop
instead. I thought that they are the same (one calling the other or both calling the same command).
– Jānis Elmeris
Jul 13 '16 at 15:20
add a comment |
/etc/init.d/mysql stop
service mysql stop
killall -KILL mysql mysqld_safe mysqld
When you see the following information, you success
mysql: no process found
mysqld_safe: no process found
mysqld: no process found
I use this to solve the installation problem of MySQL 5.6 in Ubuntu 15.10 using this link.
During this installation, I encounter the problem saying:
mysqld_safe A mysqld process already exists
Just completely stop the mysqld, mysqld_safe, mysql solves the problem
add a comment |
Run sudo /etc/init.d/mysql stop
add a comment |
Somehow all the answers couldn't help me until I first restarted the server then stopped it, so here are the steps:
sudo /etc/init.d/mysql restart
sudo /etc/init.d/mysql stop
This worked in Ubuntu WSL.
1
duplicate of this answer askubuntu.com/a/771591/790920
– abu_bua
Aug 9 '18 at 11:35
@abu_bua I tried the steps he put there and it still didn't work for me until I restarted and then stropped, that's why I have it specific steps in that order if anyone has same problems.
– Eddy Ekofo
Aug 9 '18 at 12:24
add a comment |
If you cannot find mysql within /etc/init
or /etc/init.d
, check that id did not come together with another package.
As for me, i found out that my mysqld runs to support nextcloud, i did
$> find '/etc' | grep 'mysql'
/etc/systemd/system/multi-user.target.wants/snap.nextcloud.mysql.service
/etc/systemd/system/snap.nextcloud.mysql.service
/etc/apparmor.d/abstractions/mys
add a comment |
If you are stuck in a running commang inside the console, you can try one of the following.
- Ctrl + c
- Ctrl + q
- F10
- type "exit" + Enter
- Esc
add a comment |
System Preferences -> MySql -> Stop MySQL Server
This is the only one that worked for me, stopping / killing it from the command line would always let it restart.
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f529302%2fhow-to-stop-mysqld-process%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
The mysql
Upstart configuration has the respawn
option:
$ grep respawn /etc/init/mysql.conf
respawn
respawn limit 2 5
elif echo $statusnow | grep -q 'respawn/' ; then
The respawn
option tells Upstart to restart the process if it exits or is killed.
The limit is 2, so you can try killing of the processes twice, which will tell Upstart not to start them again, or use:
sudo service mysql stop
mysql stop
stops it, and yet it still starts again and again... I commented out respawn rows in the configuration, but that didn't help.
– Jānis Elmeris
Jul 10 '16 at 12:36
1
@Janis ifservice mysql stops
mysql, and then it restarts, then something else is starting it. Look for cronjobs or monitoring scripts or something.
– muru
Jul 10 '16 at 12:45
Thanks! I did the stopping by/etc/init.d/mysql stop
, but it turned out that I had to runservice mysql stop
instead. I thought that they are the same (one calling the other or both calling the same command).
– Jānis Elmeris
Jul 13 '16 at 15:20
add a comment |
The mysql
Upstart configuration has the respawn
option:
$ grep respawn /etc/init/mysql.conf
respawn
respawn limit 2 5
elif echo $statusnow | grep -q 'respawn/' ; then
The respawn
option tells Upstart to restart the process if it exits or is killed.
The limit is 2, so you can try killing of the processes twice, which will tell Upstart not to start them again, or use:
sudo service mysql stop
mysql stop
stops it, and yet it still starts again and again... I commented out respawn rows in the configuration, but that didn't help.
– Jānis Elmeris
Jul 10 '16 at 12:36
1
@Janis ifservice mysql stops
mysql, and then it restarts, then something else is starting it. Look for cronjobs or monitoring scripts or something.
– muru
Jul 10 '16 at 12:45
Thanks! I did the stopping by/etc/init.d/mysql stop
, but it turned out that I had to runservice mysql stop
instead. I thought that they are the same (one calling the other or both calling the same command).
– Jānis Elmeris
Jul 13 '16 at 15:20
add a comment |
The mysql
Upstart configuration has the respawn
option:
$ grep respawn /etc/init/mysql.conf
respawn
respawn limit 2 5
elif echo $statusnow | grep -q 'respawn/' ; then
The respawn
option tells Upstart to restart the process if it exits or is killed.
The limit is 2, so you can try killing of the processes twice, which will tell Upstart not to start them again, or use:
sudo service mysql stop
The mysql
Upstart configuration has the respawn
option:
$ grep respawn /etc/init/mysql.conf
respawn
respawn limit 2 5
elif echo $statusnow | grep -q 'respawn/' ; then
The respawn
option tells Upstart to restart the process if it exits or is killed.
The limit is 2, so you can try killing of the processes twice, which will tell Upstart not to start them again, or use:
sudo service mysql stop
answered Sep 27 '14 at 16:28
murumuru
1
1
mysql stop
stops it, and yet it still starts again and again... I commented out respawn rows in the configuration, but that didn't help.
– Jānis Elmeris
Jul 10 '16 at 12:36
1
@Janis ifservice mysql stops
mysql, and then it restarts, then something else is starting it. Look for cronjobs or monitoring scripts or something.
– muru
Jul 10 '16 at 12:45
Thanks! I did the stopping by/etc/init.d/mysql stop
, but it turned out that I had to runservice mysql stop
instead. I thought that they are the same (one calling the other or both calling the same command).
– Jānis Elmeris
Jul 13 '16 at 15:20
add a comment |
mysql stop
stops it, and yet it still starts again and again... I commented out respawn rows in the configuration, but that didn't help.
– Jānis Elmeris
Jul 10 '16 at 12:36
1
@Janis ifservice mysql stops
mysql, and then it restarts, then something else is starting it. Look for cronjobs or monitoring scripts or something.
– muru
Jul 10 '16 at 12:45
Thanks! I did the stopping by/etc/init.d/mysql stop
, but it turned out that I had to runservice mysql stop
instead. I thought that they are the same (one calling the other or both calling the same command).
– Jānis Elmeris
Jul 13 '16 at 15:20
mysql stop
stops it, and yet it still starts again and again... I commented out respawn rows in the configuration, but that didn't help.– Jānis Elmeris
Jul 10 '16 at 12:36
mysql stop
stops it, and yet it still starts again and again... I commented out respawn rows in the configuration, but that didn't help.– Jānis Elmeris
Jul 10 '16 at 12:36
1
1
@Janis if
service mysql stops
mysql, and then it restarts, then something else is starting it. Look for cronjobs or monitoring scripts or something.– muru
Jul 10 '16 at 12:45
@Janis if
service mysql stops
mysql, and then it restarts, then something else is starting it. Look for cronjobs or monitoring scripts or something.– muru
Jul 10 '16 at 12:45
Thanks! I did the stopping by
/etc/init.d/mysql stop
, but it turned out that I had to run service mysql stop
instead. I thought that they are the same (one calling the other or both calling the same command).– Jānis Elmeris
Jul 13 '16 at 15:20
Thanks! I did the stopping by
/etc/init.d/mysql stop
, but it turned out that I had to run service mysql stop
instead. I thought that they are the same (one calling the other or both calling the same command).– Jānis Elmeris
Jul 13 '16 at 15:20
add a comment |
/etc/init.d/mysql stop
service mysql stop
killall -KILL mysql mysqld_safe mysqld
When you see the following information, you success
mysql: no process found
mysqld_safe: no process found
mysqld: no process found
I use this to solve the installation problem of MySQL 5.6 in Ubuntu 15.10 using this link.
During this installation, I encounter the problem saying:
mysqld_safe A mysqld process already exists
Just completely stop the mysqld, mysqld_safe, mysql solves the problem
add a comment |
/etc/init.d/mysql stop
service mysql stop
killall -KILL mysql mysqld_safe mysqld
When you see the following information, you success
mysql: no process found
mysqld_safe: no process found
mysqld: no process found
I use this to solve the installation problem of MySQL 5.6 in Ubuntu 15.10 using this link.
During this installation, I encounter the problem saying:
mysqld_safe A mysqld process already exists
Just completely stop the mysqld, mysqld_safe, mysql solves the problem
add a comment |
/etc/init.d/mysql stop
service mysql stop
killall -KILL mysql mysqld_safe mysqld
When you see the following information, you success
mysql: no process found
mysqld_safe: no process found
mysqld: no process found
I use this to solve the installation problem of MySQL 5.6 in Ubuntu 15.10 using this link.
During this installation, I encounter the problem saying:
mysqld_safe A mysqld process already exists
Just completely stop the mysqld, mysqld_safe, mysql solves the problem
/etc/init.d/mysql stop
service mysql stop
killall -KILL mysql mysqld_safe mysqld
When you see the following information, you success
mysql: no process found
mysqld_safe: no process found
mysqld: no process found
I use this to solve the installation problem of MySQL 5.6 in Ubuntu 15.10 using this link.
During this installation, I encounter the problem saying:
mysqld_safe A mysqld process already exists
Just completely stop the mysqld, mysqld_safe, mysql solves the problem
edited May 14 '16 at 8:41
dufte
8,11552739
8,11552739
answered May 13 '16 at 4:03
CharlieCharlie
12112
12112
add a comment |
add a comment |
Run sudo /etc/init.d/mysql stop
add a comment |
Run sudo /etc/init.d/mysql stop
add a comment |
Run sudo /etc/init.d/mysql stop
Run sudo /etc/init.d/mysql stop
answered Sep 27 '14 at 16:29
mschuetzmschuetz
411
411
add a comment |
add a comment |
Somehow all the answers couldn't help me until I first restarted the server then stopped it, so here are the steps:
sudo /etc/init.d/mysql restart
sudo /etc/init.d/mysql stop
This worked in Ubuntu WSL.
1
duplicate of this answer askubuntu.com/a/771591/790920
– abu_bua
Aug 9 '18 at 11:35
@abu_bua I tried the steps he put there and it still didn't work for me until I restarted and then stropped, that's why I have it specific steps in that order if anyone has same problems.
– Eddy Ekofo
Aug 9 '18 at 12:24
add a comment |
Somehow all the answers couldn't help me until I first restarted the server then stopped it, so here are the steps:
sudo /etc/init.d/mysql restart
sudo /etc/init.d/mysql stop
This worked in Ubuntu WSL.
1
duplicate of this answer askubuntu.com/a/771591/790920
– abu_bua
Aug 9 '18 at 11:35
@abu_bua I tried the steps he put there and it still didn't work for me until I restarted and then stropped, that's why I have it specific steps in that order if anyone has same problems.
– Eddy Ekofo
Aug 9 '18 at 12:24
add a comment |
Somehow all the answers couldn't help me until I first restarted the server then stopped it, so here are the steps:
sudo /etc/init.d/mysql restart
sudo /etc/init.d/mysql stop
This worked in Ubuntu WSL.
Somehow all the answers couldn't help me until I first restarted the server then stopped it, so here are the steps:
sudo /etc/init.d/mysql restart
sudo /etc/init.d/mysql stop
This worked in Ubuntu WSL.
answered Aug 9 '18 at 11:23
Eddy EkofoEddy Ekofo
112
112
1
duplicate of this answer askubuntu.com/a/771591/790920
– abu_bua
Aug 9 '18 at 11:35
@abu_bua I tried the steps he put there and it still didn't work for me until I restarted and then stropped, that's why I have it specific steps in that order if anyone has same problems.
– Eddy Ekofo
Aug 9 '18 at 12:24
add a comment |
1
duplicate of this answer askubuntu.com/a/771591/790920
– abu_bua
Aug 9 '18 at 11:35
@abu_bua I tried the steps he put there and it still didn't work for me until I restarted and then stropped, that's why I have it specific steps in that order if anyone has same problems.
– Eddy Ekofo
Aug 9 '18 at 12:24
1
1
duplicate of this answer askubuntu.com/a/771591/790920
– abu_bua
Aug 9 '18 at 11:35
duplicate of this answer askubuntu.com/a/771591/790920
– abu_bua
Aug 9 '18 at 11:35
@abu_bua I tried the steps he put there and it still didn't work for me until I restarted and then stropped, that's why I have it specific steps in that order if anyone has same problems.
– Eddy Ekofo
Aug 9 '18 at 12:24
@abu_bua I tried the steps he put there and it still didn't work for me until I restarted and then stropped, that's why I have it specific steps in that order if anyone has same problems.
– Eddy Ekofo
Aug 9 '18 at 12:24
add a comment |
If you cannot find mysql within /etc/init
or /etc/init.d
, check that id did not come together with another package.
As for me, i found out that my mysqld runs to support nextcloud, i did
$> find '/etc' | grep 'mysql'
/etc/systemd/system/multi-user.target.wants/snap.nextcloud.mysql.service
/etc/systemd/system/snap.nextcloud.mysql.service
/etc/apparmor.d/abstractions/mys
add a comment |
If you cannot find mysql within /etc/init
or /etc/init.d
, check that id did not come together with another package.
As for me, i found out that my mysqld runs to support nextcloud, i did
$> find '/etc' | grep 'mysql'
/etc/systemd/system/multi-user.target.wants/snap.nextcloud.mysql.service
/etc/systemd/system/snap.nextcloud.mysql.service
/etc/apparmor.d/abstractions/mys
add a comment |
If you cannot find mysql within /etc/init
or /etc/init.d
, check that id did not come together with another package.
As for me, i found out that my mysqld runs to support nextcloud, i did
$> find '/etc' | grep 'mysql'
/etc/systemd/system/multi-user.target.wants/snap.nextcloud.mysql.service
/etc/systemd/system/snap.nextcloud.mysql.service
/etc/apparmor.d/abstractions/mys
If you cannot find mysql within /etc/init
or /etc/init.d
, check that id did not come together with another package.
As for me, i found out that my mysqld runs to support nextcloud, i did
$> find '/etc' | grep 'mysql'
/etc/systemd/system/multi-user.target.wants/snap.nextcloud.mysql.service
/etc/systemd/system/snap.nextcloud.mysql.service
/etc/apparmor.d/abstractions/mys
answered Jan 21 at 14:51
Alex KrimiAlex Krimi
111
111
add a comment |
add a comment |
If you are stuck in a running commang inside the console, you can try one of the following.
- Ctrl + c
- Ctrl + q
- F10
- type "exit" + Enter
- Esc
add a comment |
If you are stuck in a running commang inside the console, you can try one of the following.
- Ctrl + c
- Ctrl + q
- F10
- type "exit" + Enter
- Esc
add a comment |
If you are stuck in a running commang inside the console, you can try one of the following.
- Ctrl + c
- Ctrl + q
- F10
- type "exit" + Enter
- Esc
If you are stuck in a running commang inside the console, you can try one of the following.
- Ctrl + c
- Ctrl + q
- F10
- type "exit" + Enter
- Esc
answered Mar 1 at 16:36
Mohd Abdul MujibMohd Abdul Mujib
1214
1214
add a comment |
add a comment |
System Preferences -> MySql -> Stop MySQL Server
This is the only one that worked for me, stopping / killing it from the command line would always let it restart.
New contributor
add a comment |
System Preferences -> MySql -> Stop MySQL Server
This is the only one that worked for me, stopping / killing it from the command line would always let it restart.
New contributor
add a comment |
System Preferences -> MySql -> Stop MySQL Server
This is the only one that worked for me, stopping / killing it from the command line would always let it restart.
New contributor
System Preferences -> MySql -> Stop MySQL Server
This is the only one that worked for me, stopping / killing it from the command line would always let it restart.
New contributor
New contributor
answered 2 mins ago
IoannaIoanna
1011
1011
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f529302%2fhow-to-stop-mysqld-process%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Press f5 in htop to see what process is starting mysqld
– Moose
Sep 27 '14 at 16:28