質問するログイン新規登録

質問編集履歴

1

追記

2021/09/30 04:48

投稿

ryo-dev
ryo-dev

スコア437

title CHANGED
File without changes
body CHANGED
@@ -43,4 +43,144 @@
43
43
 
44
44
  ```
45
45
 
46
- この状態でSSHのアクセスは出来ているので問題は無いと思います…
46
+ この状態でSSHのアクセスは出来ているので問題は無いと思います…
47
+
48
+ ### 追記
49
+ /etc/mysql/mariadb.conf.d/50-server.cnf に設定ファイルらしきものを発見して、回答いただいた記述を追加しました。
50
+ bind-address = 127.0.0.1は元々あったのでその下に一行追加した感じです。
51
+ ```file
52
+ #
53
+ # These groups are read by MariaDB server.
54
+ # Use it for options that only the server (but not clients) should see
55
+ #
56
+ # See the examples of server my.cnf files in /usr/share/mysql
57
+
58
+ # this is read by the standalone daemon and embedded servers
59
+ [server]
60
+
61
+ # this is only for the mysqld standalone daemon
62
+ [mysqld]
63
+
64
+ #
65
+ # * Basic Settings
66
+ #
67
+ user = mysql
68
+ pid-file = /run/mysqld/mysqld.pid
69
+ socket = /run/mysqld/mysqld.sock
70
+ port = 3306
71
+ basedir = /usr
72
+ datadir = /var/lib/mysql
73
+ tmpdir = /tmp
74
+ lc-messages-dir = /usr/share/mysql
75
+ #skip-external-locking
76
+
77
+ # Instead of skip-networking the default is now to listen only on
78
+ # localhost which is more compatible and is not less secure.
79
+ bind-address = 127.0.0.1
80
+ bind-address = 192.168.100.1
81
+
82
+ #
83
+ # * Fine Tuning
84
+ #
85
+ #key_buffer_size = 16M
86
+ #max_allowed_packet = 16M
87
+ #thread_stack = 192K
88
+ #thread_cache_size = 8
89
+ # This replaces the startup script and checks MyISAM tables if needed
90
+ # the first time they are touched
91
+ #myisam_recover_options = BACKUP
92
+ #max_connections = 100
93
+ #table_cache = 64
94
+ #thread_concurrency = 10
95
+
96
+ #
97
+ # * Query Cache Configuration
98
+ #
99
+ #query_cache_limit = 1M
100
+ query_cache_size = 16M
101
+
102
+ #
103
+ # * Logging and Replication
104
+ #
105
+ # Both location gets rotated by the cronjob.
106
+ # Be aware that this log type is a performance killer.
107
+ # As of 5.1 you can enable the log at runtime!
108
+ #general_log_file = /var/log/mysql/mysql.log
109
+ #general_log = 1
110
+ #
111
+ # Error log - should be very few entries.
112
+ #
113
+ log_error = /var/log/mysql/error.log
114
+ #
115
+ # Enable the slow query log to see queries with especially long duration
116
+ #slow_query_log_file = /var/log/mysql/mariadb-slow.log
117
+ #long_query_time = 10
118
+ #log_slow_rate_limit = 1000
119
+ #log_slow_verbosity = query_plan
120
+ #log-queries-not-using-indexes
121
+ #
122
+ # The following can be used as easy to replay backup logs or for replication.
123
+ # note: if you are setting up a replication slave, see README.Debian about
124
+ # other settings you may need to change.
125
+ #server-id = 1
126
+ #log_bin = /var/log/mysql/mysql-bin.log
127
+ expire_logs_days = 10
128
+ #max_binlog_size = 100M
129
+ #binlog_do_db = include_database_name
130
+ #binlog_ignore_db = exclude_database_name
131
+
132
+ #
133
+ # * Security Features
134
+ #
135
+ # Read the manual, too, if you want chroot!
136
+ #chroot = /var/lib/mysql/
137
+ #
138
+ # For generating SSL certificates you can use for example the GUI tool "tinyca".
139
+ #
140
+ #ssl-ca = /etc/mysql/cacert.pem
141
+ #ssl-cert = /etc/mysql/server-cert.pem
142
+ #ssl-key = /etc/mysql/server-key.pem
143
+ #
144
+ # Accept only connections using the latest and most secure TLS protocol version.
145
+ # ..when MariaDB is compiled with OpenSSL:
146
+ #ssl-cipher = TLSv1.2
147
+ # ..when MariaDB is compiled with YaSSL (default in Debian):
148
+ #ssl = on
149
+
150
+ #
151
+ # * Character sets
152
+ #
153
+ # MySQL/MariaDB default is Latin1, but in Debian we rather default to the full
154
+ # utf8 4-byte character set. See also client.cnf
155
+ #
156
+ character-set-server = utf8mb4
157
+ collation-server = utf8mb4_general_ci
158
+
159
+ #
160
+ # * InnoDB
161
+ #
162
+ # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
163
+ # Read the manual for more InnoDB related options. There are many!
164
+
165
+ #
166
+ # * Unix socket authentication plugin is built-in since 10.0.22-6
167
+ #
168
+ # Needed so the root database user can authenticate without a password but
169
+ # only when running as the unix root user.
170
+ #
171
+ # Also available for other users if required.
172
+ # See https://mariadb.com/kb/en/unix_socket-authentication-plugin/
173
+
174
+ # this is only for embedded server
175
+ [embedded]
176
+
177
+ # This group is only read by MariaDB servers, not by MySQL.
178
+ # If you use the same .cnf file for MySQL and MariaDB,
179
+ # you can put MariaDB-only options here
180
+ [mariadb]
181
+
182
+ # This group is only read by MariaDB-10.3 servers.
183
+ # If you use the same .cnf file for MariaDB of different versions,
184
+ # use this group for options that older servers don't understand
185
+ [mariadb-10.3]
186
+ ```