質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -47,3 +47,47 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
どなたかわかる方、アドバイスいただけないでしょうか。
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
追記:
|
54
|
+
|
55
|
+
ちなみにmysqlの初期化コマンドで試してみました。
|
56
|
+
|
57
|
+
どうやらsendコマンドが機能していないようです。
|
58
|
+
|
59
|
+
使い方が間違っているのでしょうか?
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
```ss.sh
|
64
|
+
|
65
|
+
expect -c "
|
66
|
+
|
67
|
+
spawn mysql_secure_installation
|
68
|
+
|
69
|
+
expect \"Enter password for user root:\"
|
70
|
+
|
71
|
+
send \"Fjjrk195_\n\"
|
72
|
+
|
73
|
+
"
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
[vagrant@localhost tmp]$ sh ss.sh
|
82
|
+
|
83
|
+
spawn mysql_secure_installation
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
Securing the MySQL server deployment.
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
Enter password for user root: [vagrant@localhost tmp]$
|
92
|
+
|
93
|
+
```
|