質問編集履歴
3
my.cnfを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -33,4 +33,46 @@
|
|
33
33
|
2018-06-25T17:02:21.702237Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.11) MySQL Community Server - GPL.
|
34
34
|
```
|
35
35
|
検索してみると、前のバージョンによる原因のものが多かったのですが、MySQLは今回初めてインストールしたので有効な情報は見当たりませんでした。
|
36
|
-
解決策をご教授いただけると助かります。
|
36
|
+
解決策をご教授いただけると助かります。
|
37
|
+
|
38
|
+
追記 06/26 15:52
|
39
|
+
/etc/my.cnfを追記します。
|
40
|
+
/etc/mysql/my.cnfは削除しました。
|
41
|
+
```
|
42
|
+
# For advice on how to change settings please see
|
43
|
+
# http://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html
|
44
|
+
|
45
|
+
[mysqld]
|
46
|
+
#
|
47
|
+
# Remove leading # and set to the amount of RAM for the most important data
|
48
|
+
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
|
49
|
+
# innodb_buffer_pool_size = 128M
|
50
|
+
#
|
51
|
+
# Remove leading # to turn on a very important data integrity option: logging
|
52
|
+
# changes to the binary log between backups.
|
53
|
+
# log_bin
|
54
|
+
#
|
55
|
+
# Remove leading # to set options mainly useful for reporting servers.
|
56
|
+
# The server defaults are faster for transactions and fast SELECTs.
|
57
|
+
# Adjust sizes as needed, experiment to find the optimal values.
|
58
|
+
# join_buffer_size = 128M
|
59
|
+
# sort_buffer_size = 2M
|
60
|
+
# read_rnd_buffer_size = 2M
|
61
|
+
#
|
62
|
+
# Remove leading # to revert to previous value for default_authentication_plugin,
|
63
|
+
# this will increase compatibility with older clients. For background, see:
|
64
|
+
# https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin
|
65
|
+
# default-authentication-plugin=mysql_native_password
|
66
|
+
|
67
|
+
datadir=/var/lib/mysql
|
68
|
+
socket=/var/lib/mysql/mysql.sock
|
69
|
+
|
70
|
+
log-error=/var/log/mysqld.log
|
71
|
+
pid-file=/var/run/mysqld/mysqld.pid
|
72
|
+
|
73
|
+
log_timestamps=SYSTEM
|
74
|
+
skip-character-set-client-handshake
|
75
|
+
character-set-server=utf8mb4
|
76
|
+
explicit_defaults_for_timestamp=ON
|
77
|
+
|
78
|
+
```
|
2
一歩前進したものの、エラー
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,4 +15,22 @@
|
|
15
15
|
どうすればうまく起動するでしょうか?
|
16
16
|
|
17
17
|
バージョン
|
18
|
-
mysql Ver 8.0.11 for Linux on x86_64 (MySQL Community Server - GPL)
|
18
|
+
mysql Ver 8.0.11 for Linux on x86_64 (MySQL Community Server - GPL)
|
19
|
+
|
20
|
+
# 追記 上記の質問より一歩前進したものの、起動コマンドでエラー
|
21
|
+
上記の質問は`yum install mysql-server`でmysql-severをインストールしたことでひとまず前進したのですが、
|
22
|
+
起動コマンド`systemctl start mysqld.service`を実行すると、以下のエラー表示となりました。
|
23
|
+
```
|
24
|
+
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
|
25
|
+
```
|
26
|
+
|
27
|
+
/var/mysql/mysql.logを見てみると以下のエラーが記録されていました。
|
28
|
+
```
|
29
|
+
2018-06-25T17:02:21.365210Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.11) starting as process 6100
|
30
|
+
2018-06-25T17:02:21.666708Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.
|
31
|
+
2018-06-25T17:02:21.668088Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
|
32
|
+
2018-06-25T17:02:21.668774Z 0 [ERROR] [MY-010119] [Server] Aborting
|
33
|
+
2018-06-25T17:02:21.702237Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.11) MySQL Community Server - GPL.
|
34
|
+
```
|
35
|
+
検索してみると、前のバージョンによる原因のものが多かったのですが、MySQLは今回初めてインストールしたので有効な情報は見当たりませんでした。
|
36
|
+
解決策をご教授いただけると助かります。
|
1
バージョン追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,4 +12,7 @@
|
|
12
12
|
```
|
13
13
|
このようにしたのですが、出力もされません。
|
14
14
|
|
15
|
-
どうすればうまく起動するでしょうか?
|
15
|
+
どうすればうまく起動するでしょうか?
|
16
|
+
|
17
|
+
バージョン
|
18
|
+
mysql Ver 8.0.11 for Linux on x86_64 (MySQL Community Server - GPL)
|