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

質問編集履歴

5

追記4

2018/02/06 12:28

投稿

seen
seen

スコア49

title CHANGED
File without changes
body CHANGED
@@ -152,4 +152,32 @@
152
152
  * remi-safe: mirrors.thzhost.com
153
153
  * updates: ftp.tsukuba.wide.ad.jp
154
154
  エラー: 表示するパッケージはありません
155
- ```
155
+ ```
156
+
157
+ SCLにてインストールを試みました。
158
+ 追記4
159
+ ---
160
+ 依存性関連をインストールしました:
161
+ 完了しました!
162
+ [vagrant@localhost ~]$ scl enable rh-mariadb102 bash
163
+ [vagrant@localhost ~]$ service rh-mariadb102-mariadb start
164
+ Starting rh-mariadb102-mariadb: [失敗]
165
+ [vagrant@localhost ~]$ mysql
166
+ Welcome to the MariaDB monitor. Commands end with ; or \g.
167
+ Your MySQL connection id is 4
168
+ Server version: 5.6.38 MySQL Community Server (GPL)
169
+
170
+ Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
171
+
172
+ Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
173
+
174
+ MySQL [(none)]> ;
175
+ ERROR: No query specified
176
+
177
+ MySQL [(none)]> exit
178
+ Bye
179
+ [vagrant@localhost ~]$ mysql –version
180
+ ERROR 1044 (42000): Access denied for user ''@'localhost' to database '–version'
181
+ [vagrant@localhost ~]$ [vagrant@localhost ~]$ mysql –version
182
+ bash: [vagrant@localhost: コマンドが見つかりません
183
+ [vagrant@localhost ~]$

4

追記

2018/02/06 12:28

投稿

seen
seen

スコア49

title CHANGED
File without changes
body CHANGED
@@ -59,7 +59,7 @@
59
59
 
60
60
  ご教示いただけるとたすかります。 よろしくお願いします。
61
61
 
62
- 追記
62
+ 追記1
63
63
  ---
64
64
  コメントにてご教示いただき、まずはリポジトリの追加に成功したかと思います。確信まだありませんがコマンドを追記します。
65
65
  ```
@@ -89,7 +89,7 @@
89
89
  コード
90
90
  ```
91
91
 
92
- 追記
92
+ 追記2
93
93
  ---
94
94
  上記作業後インストールしてみましたが冒頭と同じエラーがでました。
95
95
  まだ何か間違っていますでしょうか...
@@ -118,4 +118,38 @@
118
118
  パッケージ MariaDB-client は利用できません。
119
119
  エラー: 何もしません
120
120
  [vagrant@localhost ~]$
121
+ ```
122
+ 追記3
123
+ ---
124
+ 別の質問で教えていただいたコマンドで確認したところやはりリポジトリファイルの追加が出来ていないとも思います。 今どういった状況なのでしょうか...
125
+ ```
126
+ [vagrant@localhost ~]$ yum list MariaDB*
127
+ 読み込んだプラグイン:fastestmirror
128
+ Loading mirror speeds from cached hostfile
129
+ * base: ftp.tsukuba.wide.ad.jp
130
+ * epel: mirror01.idc.hinet.net
131
+ * extras: ftp.tsukuba.wide.ad.jp
132
+ * remi-safe: mirror.bebout.net
133
+ * updates: ftp.tsukuba.wide.ad.jp
134
+ エラー: 表示するパッケージはありません
135
+ [vagrant@localhost ~]$ yum list 'MariaDB*'
136
+ 読み込んだプラグイン:fastestmirror
137
+ Loading mirror speeds from cached hostfile
138
+ * base: ftp.tsukuba.wide.ad.jp
139
+ * epel: mirror01.idc.hinet.net
140
+ * extras: ftp.tsukuba.wide.ad.jp
141
+ * remi-safe: mirror.bebout.net
142
+ * updates: ftp.tsukuba.wide.ad.jp
143
+ エラー: 表示するパッケージはありません
144
+ [vagrant@localhost ~]$ su -
145
+ パスワード:
146
+ [root@localhost ~]# yum list MariaDB*
147
+ 読み込んだプラグイン:fastestmirror
148
+ Loading mirror speeds from cached hostfile
149
+ * base: ftp.tsukuba.wide.ad.jp
150
+ * epel: ftp.riken.jp
151
+ * extras: ftp.tsukuba.wide.ad.jp
152
+ * remi-safe: mirrors.thzhost.com
153
+ * updates: ftp.tsukuba.wide.ad.jp
154
+ エラー: 表示するパッケージはありません
121
155
  ```

3

解決策後も解決せず、そのエラーコードの追記

2018/02/04 15:33

投稿

seen
seen

スコア49

title CHANGED
File without changes
body CHANGED
@@ -87,4 +87,35 @@
87
87
  repolist: 23,026
88
88
  [vagrant@localhost ~]$
89
89
  コード
90
+ ```
91
+
92
+ 追記
93
+ ---
94
+ 上記作業後インストールしてみましたが冒頭と同じエラーがでました。
95
+ まだ何か間違っていますでしょうか...
96
+ ```
97
+ [vagrant@localhost ~]$ sudo yum install MariaDB-server MariaDB-client
98
+ 読み込んだプラグイン:fastestmirror
99
+ インストール処理の設定をしています
100
+ Loading mirror speeds from cached hostfile
101
+ epel/metalink | 7.1 kB 00:00
102
+ * base: ftp.tsukuba.wide.ad.jp
103
+ * epel: ftp.riken.jp
104
+ * extras: ftp.tsukuba.wide.ad.jp
105
+ * remi-safe: mirrors.thzhost.com
106
+ * updates: ftp.tsukuba.wide.ad.jp
107
+ base | 3.7 kB 00:00
108
+ extras | 3.4 kB 00:00
109
+ mariadb | 2.9 kB 00:00
110
+ mariadb/primary_db | 22 kB 00:00
111
+ mysql-connectors-community | 2.5 kB 00:00
112
+ mysql-tools-community | 2.5 kB 00:00
113
+ mysql56-community | 2.5 kB 00:00
114
+ nodesource | 2.5 kB 00:00
115
+ remi-safe | 2.9 kB 00:00
116
+ updates | 3.4 kB 00:00
117
+ パッケージ MariaDB-server は利用できません。
118
+ パッケージ MariaDB-client は利用できません。
119
+ エラー: 何もしません
120
+ [vagrant@localhost ~]$
90
121
  ```

2

解決方法の実行結果

2018/02/04 15:05

投稿

seen
seen

スコア49

title CHANGED
File without changes
body CHANGED
@@ -57,4 +57,34 @@
57
57
  そして冒頭のインストールを実行しましたがエラーになりました。
58
58
  リポジトリは追加できていないのでしょうか?
59
59
 
60
- ご教示いただけるとたすかります。 よろしくお願いします。
60
+ ご教示いただけるとたすかります。 よろしくお願いします。
61
+
62
+ 追記
63
+ ---
64
+ コメントにてご教示いただき、まずはリポジトリの追加に成功したかと思います。確信まだありませんがコマンドを追記します。
65
+ ```
66
+ [vagrant@localhost ~]$ yum repolist enabled
67
+ 読み込んだプラグイン:fastestmirror
68
+ Loading mirror speeds from cached hostfile
69
+ * base: ftp.tsukuba.wide.ad.jp
70
+ * epel: mirror01.idc.hinet.net
71
+ * extras: ftp.tsukuba.wide.ad.jp
72
+ * remi-safe: mirror.bebout.net
73
+ * updates: ftp.tsukuba.wide.ad.jp
74
+ mariadb | 2.9 kB 00:00
75
+ mariadb/primary_db | 22 kB 00:00
76
+ リポジトリー ID リポジトリー名 状態
77
+ base CentOS-6 - Base 6,706
78
+ epel Extra Packages for Enterprise Linux 6 - x86_64 12,448
79
+ extras CentOS-6 - Extras 47
80
+ mariadb MariaDB 20
81
+ mysql-connectors-community MySQL Connectors Community 45
82
+ mysql-tools-community MySQL Tools Community 55
83
+ mysql56-community MySQL 5.6 Community Server 415
84
+ nodesource Node.js Packages for Enterprise Linux 6 - x86_ 61
85
+ remi-safe Safe Remi's RPM repository for Enterprise Linu 2,284
86
+ updates CentOS-6 - Updates 945
87
+ repolist: 23,026
88
+ [vagrant@localhost ~]$
89
+ コード
90
+ ```

1

誤字

2018/02/04 14:54

投稿

seen
seen

スコア49

title CHANGED
File without changes
body CHANGED
@@ -54,7 +54,7 @@
54
54
  [vagrant@localhost /]$
55
55
 
56
56
  ```
57
- そして冒頭のインストールを実行しましたがえらーになりました。
57
+ そして冒頭のインストールを実行しましたがエラーになりました。
58
58
  リポジトリは追加できていないのでしょうか?
59
59
 
60
60
  ご教示いただけるとたすかります。 よろしくお願いします。