How do I disable MySQL on Linux from starting on boot or statup?How to set a specific directory location for...
Which country has more?
Why aren't there more Gauls like Obelix?
How do you make a gun that shoots melee weapons and/or swords?
What is the purpose of a disclaimer like "this is not legal advice"?
What to do if my university does not offer any advanced math courses?
What was so special about The Piano that Ada was willing to do anything to have it?
What can I do if someone tampers with my SSH public key?
School performs periodic password audits. Is my password compromised?
The (Easy) Road to Code
Are E natural minor and B harmonic minor related?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Can I negotiate a patent idea for a raise, under French law?
Rationale to prefer local variables over instance variables?
Having the player face themselves after the mid-game
Do Paladin Auras of Differing Oaths Stack?
Insult for someone who "doesn't know anything"
(Codewars) Linked Lists-Sorted Insert
Are all players supposed to be able to see each others' character sheets?
Create chunks from an array
Logistic regression BIC: what's the right N?
Professor forcing me to attend a conference, I can't afford even with 50% funding
Does an unused member variable take up memory?
What do you call someone who likes to pick fights?
What does *dead* mean in *What do you mean, dead?*?
How do I disable MySQL on Linux from starting on boot or statup?
How to set a specific directory location for individual MySQL database?Preventing PostgreSQL from starting on boot in UbuntuUbuntu / MySQL - How to choose from the various downloads?MySQL: Moving Database from Windows to LinuxMySQL server won't start with foreign_key_checks=0How to start MySQL after the year 2038?How do I start over? (newbie goof: now I need to start fresh with MySQL)xtrabackup doesn't copy the binary log files (mysql-bin.xxxxx) shall i copy them manually? [solved]How to prevent default MySQL instance starting when mysqld_multi is used?MySql Database stopped working LAMP
After adding MySQL to Ubuntu, it automatically starts up on server boot. I would like it to not start up with the system.
How can I disable it and manually start it?
mysql mariadb linux ubuntu
add a comment |
After adding MySQL to Ubuntu, it automatically starts up on server boot. I would like it to not start up with the system.
How can I disable it and manually start it?
mysql mariadb linux ubuntu
add a comment |
After adding MySQL to Ubuntu, it automatically starts up on server boot. I would like it to not start up with the system.
How can I disable it and manually start it?
mysql mariadb linux ubuntu
After adding MySQL to Ubuntu, it automatically starts up on server boot. I would like it to not start up with the system.
How can I disable it and manually start it?
mysql mariadb linux ubuntu
mysql mariadb linux ubuntu
asked Jun 3 '18 at 2:56
Evan CarrollEvan Carroll
32.9k1072225
32.9k1072225
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
MariaDB use systemd as does MySQL. To disable MySQL or MariaDB, from starting on bootup, run
systemctl list-unit-files '*mariadb*' '*mysql*'
If you see mysql.service, try disabling that one first.
sudo systemctl disable mysql
Now you can start and stop MySQL with
sudo systemctl stop mysql.service
sudo systemctl start mysql.service
You can always compile it from source and script the startup/shutdown. I like the fine-grained control this gives. I needed it for College where the only way I could run MySQL was to compile it and run it myself (no superuser privileges for me :-) )
– Vérace
Jun 3 '18 at 6:20
add a comment |
In Ubuntu 18.04, sudo systemctl disable mysql will prevent mysql-server starting on boot.
New contributor
Yossarian42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2fdba.stackexchange.com%2fquestions%2f208612%2fhow-do-i-disable-mysql-on-linux-from-starting-on-boot-or-statup%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
MariaDB use systemd as does MySQL. To disable MySQL or MariaDB, from starting on bootup, run
systemctl list-unit-files '*mariadb*' '*mysql*'
If you see mysql.service, try disabling that one first.
sudo systemctl disable mysql
Now you can start and stop MySQL with
sudo systemctl stop mysql.service
sudo systemctl start mysql.service
You can always compile it from source and script the startup/shutdown. I like the fine-grained control this gives. I needed it for College where the only way I could run MySQL was to compile it and run it myself (no superuser privileges for me :-) )
– Vérace
Jun 3 '18 at 6:20
add a comment |
MariaDB use systemd as does MySQL. To disable MySQL or MariaDB, from starting on bootup, run
systemctl list-unit-files '*mariadb*' '*mysql*'
If you see mysql.service, try disabling that one first.
sudo systemctl disable mysql
Now you can start and stop MySQL with
sudo systemctl stop mysql.service
sudo systemctl start mysql.service
You can always compile it from source and script the startup/shutdown. I like the fine-grained control this gives. I needed it for College where the only way I could run MySQL was to compile it and run it myself (no superuser privileges for me :-) )
– Vérace
Jun 3 '18 at 6:20
add a comment |
MariaDB use systemd as does MySQL. To disable MySQL or MariaDB, from starting on bootup, run
systemctl list-unit-files '*mariadb*' '*mysql*'
If you see mysql.service, try disabling that one first.
sudo systemctl disable mysql
Now you can start and stop MySQL with
sudo systemctl stop mysql.service
sudo systemctl start mysql.service
MariaDB use systemd as does MySQL. To disable MySQL or MariaDB, from starting on bootup, run
systemctl list-unit-files '*mariadb*' '*mysql*'
If you see mysql.service, try disabling that one first.
sudo systemctl disable mysql
Now you can start and stop MySQL with
sudo systemctl stop mysql.service
sudo systemctl start mysql.service
edited Jun 28 '18 at 22:38
answered Jun 3 '18 at 2:56
Evan CarrollEvan Carroll
32.9k1072225
32.9k1072225
You can always compile it from source and script the startup/shutdown. I like the fine-grained control this gives. I needed it for College where the only way I could run MySQL was to compile it and run it myself (no superuser privileges for me :-) )
– Vérace
Jun 3 '18 at 6:20
add a comment |
You can always compile it from source and script the startup/shutdown. I like the fine-grained control this gives. I needed it for College where the only way I could run MySQL was to compile it and run it myself (no superuser privileges for me :-) )
– Vérace
Jun 3 '18 at 6:20
You can always compile it from source and script the startup/shutdown. I like the fine-grained control this gives. I needed it for College where the only way I could run MySQL was to compile it and run it myself (no superuser privileges for me :-) )
– Vérace
Jun 3 '18 at 6:20
You can always compile it from source and script the startup/shutdown. I like the fine-grained control this gives. I needed it for College where the only way I could run MySQL was to compile it and run it myself (no superuser privileges for me :-) )
– Vérace
Jun 3 '18 at 6:20
add a comment |
In Ubuntu 18.04, sudo systemctl disable mysql will prevent mysql-server starting on boot.
New contributor
Yossarian42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
In Ubuntu 18.04, sudo systemctl disable mysql will prevent mysql-server starting on boot.
New contributor
Yossarian42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
In Ubuntu 18.04, sudo systemctl disable mysql will prevent mysql-server starting on boot.
New contributor
Yossarian42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
In Ubuntu 18.04, sudo systemctl disable mysql will prevent mysql-server starting on boot.
New contributor
Yossarian42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Yossarian42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 3 mins ago
Yossarian42Yossarian42
1
1
New contributor
Yossarian42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Yossarian42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Yossarian42 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Database Administrators Stack Exchange!
- 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%2fdba.stackexchange.com%2fquestions%2f208612%2fhow-do-i-disable-mysql-on-linux-from-starting-on-boot-or-statup%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