MySQL Server 8.0. my.ini file editing. To prevent MySQL Server from connecting to Internet
I want to install MySQL Server 8.0 on my desktop computer. The operating system is Windows 10 Home. I want to prevent MySQL Server from connecting to the Internet. I assume that MySQL Server is connected to the following ports: port - 3306, x protocol port - 33060. I don't want to connect to MySQL Server via TCP/IP. In the my.ini file there are subsections [client] and [mysql].
How do I need to edit [client] subsection?
[client]
# pipe=
# socket=MYSQL
port=3306
How do I need to edit [mysqld] subsection?
[mysqld]
# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# shared-memory
# shared-memory-base-name=MYSQL
# The Pipe the MySQL Server will use
# socket=MYSQL
# The TCP/IP Port the MySQL Server will listen on
port=3306
mysql database
add a comment |
I want to install MySQL Server 8.0 on my desktop computer. The operating system is Windows 10 Home. I want to prevent MySQL Server from connecting to the Internet. I assume that MySQL Server is connected to the following ports: port - 3306, x protocol port - 33060. I don't want to connect to MySQL Server via TCP/IP. In the my.ini file there are subsections [client] and [mysql].
How do I need to edit [client] subsection?
[client]
# pipe=
# socket=MYSQL
port=3306
How do I need to edit [mysqld] subsection?
[mysqld]
# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# shared-memory
# shared-memory-base-name=MYSQL
# The Pipe the MySQL Server will use
# socket=MYSQL
# The TCP/IP Port the MySQL Server will listen on
port=3306
mysql database
2
I don't want to connect to MySQL Server via TCP/IP. Usingport=3306
without using both pipe and socket means you WILL connect to server via TCP/IP. To disable external connections setbind-address = 127.0.0.1
– Akina
Dec 3 at 18:55
@Akina Thank you, Akina. Where I need to add instruction bind-address = 127.0.0.1 in [mysqld] subsection?
– AmaranthAuburn
Dec 3 at 21:15
As documentation claims mysqld reads options from the [mysqld] and [server] groups. mysqld_safe reads options from the [mysqld], [server], [mysqld_safe], and [safe_mysqld] groups. mysql.server reads options from the [mysqld] and [mysql.server] groups. So the only section used by all possible processes is [mysqld], and bind-address setting must be placed into it. But I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file.
– Akina
Dec 4 at 4:35
@Akina Thank you, Akina. I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file I undersand you. I want to try both variants. mysqld group will be: [mysqld] bind-address="127.0.0.1" bind-address = ::1 # The next three options are mutually exclusive to SERVER_PORT below. # skip-networking # enable-named-pipe # shared-memory # shared-memory-base-name=MYSQL # The Pipe the MySQL Server will use # socket=MYSQL # The TCP/IP Port the MySQL Server will listen on port=3306 Yes?
– AmaranthAuburn
Dec 4 at 18:23
I am not sure that more than one bind-address parameter is allowed in your MySQL version... is it 8.0.13 or higher?
– Akina
Dec 5 at 4:27
add a comment |
I want to install MySQL Server 8.0 on my desktop computer. The operating system is Windows 10 Home. I want to prevent MySQL Server from connecting to the Internet. I assume that MySQL Server is connected to the following ports: port - 3306, x protocol port - 33060. I don't want to connect to MySQL Server via TCP/IP. In the my.ini file there are subsections [client] and [mysql].
How do I need to edit [client] subsection?
[client]
# pipe=
# socket=MYSQL
port=3306
How do I need to edit [mysqld] subsection?
[mysqld]
# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# shared-memory
# shared-memory-base-name=MYSQL
# The Pipe the MySQL Server will use
# socket=MYSQL
# The TCP/IP Port the MySQL Server will listen on
port=3306
mysql database
I want to install MySQL Server 8.0 on my desktop computer. The operating system is Windows 10 Home. I want to prevent MySQL Server from connecting to the Internet. I assume that MySQL Server is connected to the following ports: port - 3306, x protocol port - 33060. I don't want to connect to MySQL Server via TCP/IP. In the my.ini file there are subsections [client] and [mysql].
How do I need to edit [client] subsection?
[client]
# pipe=
# socket=MYSQL
port=3306
How do I need to edit [mysqld] subsection?
[mysqld]
# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# shared-memory
# shared-memory-base-name=MYSQL
# The Pipe the MySQL Server will use
# socket=MYSQL
# The TCP/IP Port the MySQL Server will listen on
port=3306
mysql database
mysql database
asked Dec 3 at 18:52
AmaranthAuburn
1
1
2
I don't want to connect to MySQL Server via TCP/IP. Usingport=3306
without using both pipe and socket means you WILL connect to server via TCP/IP. To disable external connections setbind-address = 127.0.0.1
– Akina
Dec 3 at 18:55
@Akina Thank you, Akina. Where I need to add instruction bind-address = 127.0.0.1 in [mysqld] subsection?
– AmaranthAuburn
Dec 3 at 21:15
As documentation claims mysqld reads options from the [mysqld] and [server] groups. mysqld_safe reads options from the [mysqld], [server], [mysqld_safe], and [safe_mysqld] groups. mysql.server reads options from the [mysqld] and [mysql.server] groups. So the only section used by all possible processes is [mysqld], and bind-address setting must be placed into it. But I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file.
– Akina
Dec 4 at 4:35
@Akina Thank you, Akina. I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file I undersand you. I want to try both variants. mysqld group will be: [mysqld] bind-address="127.0.0.1" bind-address = ::1 # The next three options are mutually exclusive to SERVER_PORT below. # skip-networking # enable-named-pipe # shared-memory # shared-memory-base-name=MYSQL # The Pipe the MySQL Server will use # socket=MYSQL # The TCP/IP Port the MySQL Server will listen on port=3306 Yes?
– AmaranthAuburn
Dec 4 at 18:23
I am not sure that more than one bind-address parameter is allowed in your MySQL version... is it 8.0.13 or higher?
– Akina
Dec 5 at 4:27
add a comment |
2
I don't want to connect to MySQL Server via TCP/IP. Usingport=3306
without using both pipe and socket means you WILL connect to server via TCP/IP. To disable external connections setbind-address = 127.0.0.1
– Akina
Dec 3 at 18:55
@Akina Thank you, Akina. Where I need to add instruction bind-address = 127.0.0.1 in [mysqld] subsection?
– AmaranthAuburn
Dec 3 at 21:15
As documentation claims mysqld reads options from the [mysqld] and [server] groups. mysqld_safe reads options from the [mysqld], [server], [mysqld_safe], and [safe_mysqld] groups. mysql.server reads options from the [mysqld] and [mysql.server] groups. So the only section used by all possible processes is [mysqld], and bind-address setting must be placed into it. But I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file.
– Akina
Dec 4 at 4:35
@Akina Thank you, Akina. I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file I undersand you. I want to try both variants. mysqld group will be: [mysqld] bind-address="127.0.0.1" bind-address = ::1 # The next three options are mutually exclusive to SERVER_PORT below. # skip-networking # enable-named-pipe # shared-memory # shared-memory-base-name=MYSQL # The Pipe the MySQL Server will use # socket=MYSQL # The TCP/IP Port the MySQL Server will listen on port=3306 Yes?
– AmaranthAuburn
Dec 4 at 18:23
I am not sure that more than one bind-address parameter is allowed in your MySQL version... is it 8.0.13 or higher?
– Akina
Dec 5 at 4:27
2
2
I don't want to connect to MySQL Server via TCP/IP. Using
port=3306
without using both pipe and socket means you WILL connect to server via TCP/IP. To disable external connections set bind-address = 127.0.0.1
– Akina
Dec 3 at 18:55
I don't want to connect to MySQL Server via TCP/IP. Using
port=3306
without using both pipe and socket means you WILL connect to server via TCP/IP. To disable external connections set bind-address = 127.0.0.1
– Akina
Dec 3 at 18:55
@Akina Thank you, Akina. Where I need to add instruction bind-address = 127.0.0.1 in [mysqld] subsection?
– AmaranthAuburn
Dec 3 at 21:15
@Akina Thank you, Akina. Where I need to add instruction bind-address = 127.0.0.1 in [mysqld] subsection?
– AmaranthAuburn
Dec 3 at 21:15
As documentation claims mysqld reads options from the [mysqld] and [server] groups. mysqld_safe reads options from the [mysqld], [server], [mysqld_safe], and [safe_mysqld] groups. mysql.server reads options from the [mysqld] and [mysql.server] groups. So the only section used by all possible processes is [mysqld], and bind-address setting must be placed into it. But I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file.
– Akina
Dec 4 at 4:35
As documentation claims mysqld reads options from the [mysqld] and [server] groups. mysqld_safe reads options from the [mysqld], [server], [mysqld_safe], and [safe_mysqld] groups. mysql.server reads options from the [mysqld] and [mysql.server] groups. So the only section used by all possible processes is [mysqld], and bind-address setting must be placed into it. But I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file.
– Akina
Dec 4 at 4:35
@Akina Thank you, Akina. I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file I undersand you. I want to try both variants. mysqld group will be: [mysqld] bind-address="127.0.0.1" bind-address = ::1 # The next three options are mutually exclusive to SERVER_PORT below. # skip-networking # enable-named-pipe # shared-memory # shared-memory-base-name=MYSQL # The Pipe the MySQL Server will use # socket=MYSQL # The TCP/IP Port the MySQL Server will listen on port=3306 Yes?
– AmaranthAuburn
Dec 4 at 18:23
@Akina Thank you, Akina. I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file I undersand you. I want to try both variants. mysqld group will be: [mysqld] bind-address="127.0.0.1" bind-address = ::1 # The next three options are mutually exclusive to SERVER_PORT below. # skip-networking # enable-named-pipe # shared-memory # shared-memory-base-name=MYSQL # The Pipe the MySQL Server will use # socket=MYSQL # The TCP/IP Port the MySQL Server will listen on port=3306 Yes?
– AmaranthAuburn
Dec 4 at 18:23
I am not sure that more than one bind-address parameter is allowed in your MySQL version... is it 8.0.13 or higher?
– Akina
Dec 5 at 4:27
I am not sure that more than one bind-address parameter is allowed in your MySQL version... is it 8.0.13 or higher?
– Akina
Dec 5 at 4:27
add a comment |
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1380483%2fmysql-server-8-0-my-ini-file-editing-to-prevent-mysql-server-from-connecting-t%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2fsuperuser.com%2fquestions%2f1380483%2fmysql-server-8-0-my-ini-file-editing-to-prevent-mysql-server-from-connecting-t%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
2
I don't want to connect to MySQL Server via TCP/IP. Using
port=3306
without using both pipe and socket means you WILL connect to server via TCP/IP. To disable external connections setbind-address = 127.0.0.1
– Akina
Dec 3 at 18:55
@Akina Thank you, Akina. Where I need to add instruction bind-address = 127.0.0.1 in [mysqld] subsection?
– AmaranthAuburn
Dec 3 at 21:15
As documentation claims mysqld reads options from the [mysqld] and [server] groups. mysqld_safe reads options from the [mysqld], [server], [mysqld_safe], and [safe_mysqld] groups. mysql.server reads options from the [mysqld] and [mysql.server] groups. So the only section used by all possible processes is [mysqld], and bind-address setting must be placed into it. But I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file.
– Akina
Dec 4 at 4:35
@Akina Thank you, Akina. I recommend to set this parameter from the command line - when you need to alter this setting it will be more simple than edit ini-file I undersand you. I want to try both variants. mysqld group will be: [mysqld] bind-address="127.0.0.1" bind-address = ::1 # The next three options are mutually exclusive to SERVER_PORT below. # skip-networking # enable-named-pipe # shared-memory # shared-memory-base-name=MYSQL # The Pipe the MySQL Server will use # socket=MYSQL # The TCP/IP Port the MySQL Server will listen on port=3306 Yes?
– AmaranthAuburn
Dec 4 at 18:23
I am not sure that more than one bind-address parameter is allowed in your MySQL version... is it 8.0.13 or higher?
– Akina
Dec 5 at 4:27