質問編集履歴

3

追加

2019/09/06 07:20

投稿

yoyu
yoyu

スコア5

test CHANGED
File without changes
test CHANGED
@@ -132,6 +132,58 @@
132
132
 
133
133
 
134
134
 
135
+ ```
136
+
137
+ 'Datasources' => [
138
+
139
+ 'default' => [
140
+
141
+ 'className' => Connection::class,
142
+
143
+ 'driver' => Mysql::class,
144
+
145
+ 'persistent' => false,
146
+
147
+ 'host' => 'localhost',
148
+
149
+ /*
150
+
151
+ * CakePHP will use the default DB port based on the driver selected
152
+
153
+ * MySQL on MAMP uses port 8889, MAMP users will want to uncomment
154
+
155
+ * the following line and set the port accordingly
156
+
157
+ */
158
+
159
+ //'port' => 'non_standard_port_number',
160
+
161
+ 'username' => 'root',
162
+
163
+ 'password' => 'hogehoge',
164
+
165
+ 'database' => 'mysql',
166
+
167
+ /*
168
+
169
+ * You do not need to set this flag to use full utf-8 encoding (internal default since CakePHP 3.6).
170
+
171
+ */
172
+
173
+ //'encoding' => 'utf8mb4',
174
+
175
+ 'timezone' => 'UTC',
176
+
177
+ 'flags' => [],
178
+
179
+ 'cacheMetadata' => true,
180
+
181
+ 'log' => false,
182
+
183
+ ```
184
+
185
+
186
+
135
187
  ### 試したこと
136
188
 
137
189
 

2

文法の修正

2019/09/06 07:20

投稿

yoyu
yoyu

スコア5

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
 
27
- '''controller
27
+ ```
28
28
 
29
29
 
30
30
 
@@ -62,11 +62,11 @@
62
62
 
63
63
  ?>
64
64
 
65
- '''
65
+ ```
66
66
 
67
67
 
68
68
 
69
- '''model
69
+ ```
70
70
 
71
71
 
72
72
 
@@ -96,11 +96,11 @@
96
96
 
97
97
  }
98
98
 
99
- '''
99
+ ```
100
100
 
101
101
 
102
102
 
103
- '''view
103
+ ```
104
104
 
105
105
 
106
106
 
@@ -128,7 +128,7 @@
128
128
 
129
129
  </table>
130
130
 
131
- '''
131
+ ```
132
132
 
133
133
 
134
134
 

1

タイトル変更

2019/09/06 06:40

投稿

yoyu
yoyu

スコア5

test CHANGED
@@ -1 +1 @@
1
- SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mysql.tbl_histories' doesn't existうエラー
1
+ SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mysql.tbl_histories' doesn't exist を直した
test CHANGED
File without changes