ShowDatabaseConnect.html 31.8 KB
Newer Older
1
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2
<div class="t3js-module-content" data-installer-database-connect-execute-token="{executeDatabaseConnectToken}">
3
4
5
6
7
8
9
10
11
12
13
14
    <div class="typo3-install-content-body">
        <h2>Select database</h2>
        <f:if condition="{hasAtLeastOneOption}">
            <f:then>
                <p>
                    You will need to create a database user with the appropriate privileges to access your database.
                </p>
                <div class="typo3-install-content-spacer"></div>
                <div class="t3js-installer-databaseConnect-output"></div>
                <div class="typo3-install-content-spacer"></div>
                <div class="row">
                    <div class="col-md-12">
Benni Mack's avatar
Benni Mack committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
                        <form method="post">
                            <div class="row justify-content-center">
                                <div class="col-md-12 mb-3">
                                    <div class="form-floating">
                                        <select id="t3js-connect-database-driver" class="form-control" name="install[values][availableSet]" placeholder="sqlite">
                                            <f:if condition="{hasMysqliManualConfiguration}">
                                                <option
                                                    value="mysqliManualConfiguration"
                                                    {f:if(condition:'{activeAvailableOption} == mysqliManualConfiguration', then: 'selected="selected"')}
                                                >
                                                [MySQLi] Manually configured MySQL TCP/IP connection
                                                </option>
                                            </f:if>
                                            <f:if condition="{hasMysqliSocketManualConfiguration}">
                                                <option
                                                    value="mysqliSocketManualConfiguration"
                                                    {f:if(condition:'{activeAvailableOption} == mysqliSocketManualConfiguration', then: 'selected="selected"')}
                                                >
                                                [MySQLi] Manually configured MySQL socket connection
                                                </option>
                                            </f:if>
                                            <f:if condition="{hasPdoMysqlManualConfiguration}">
                                                <option
                                                    value="pdoMysqlManualConfiguration"
                                                    {f:if(condition:'{activeAvailableOption} == pdoMysqlManualConfiguration', then: 'selected="selected"')}
                                                >
                                                [PDO] Manually configured MySQL TCP/IP connection
                                                </option>
                                            </f:if>
                                            <f:if condition="{hasPdoMysqlSocketManualConfiguration}">
                                                <option
                                                    value="pdoMysqlSocketManualConfiguration"
                                                    {f:if(condition:'{activeAvailableOption} == pdoMysqlSocketManualConfiguration', then: 'selected="selected"')}
                                                >
                                                [PDO] Manually configured MySQL socket connection
                                                </option>
                                            </f:if>
                                            <f:if condition="{hasPostgresManualConfiguration}">
                                                <option
                                                    value="postgresManualConfiguration"
                                                    {f:if(condition:'{activeAvailableOption} == postgresManualConfiguration', then: 'selected="selected"')}
                                                >
                                                Manually configured PostgreSQL connection
                                                </option>
                                            </f:if>
                                            <f:if condition="{hasSqliteManualConfiguration}">
                                                <option
                                                    value="sqliteManualConfiguration"
                                                    {f:if(condition:'{activeAvailableOption} == sqliteManualConfiguration', then: 'selected="selected"')}
                                                >
                                                Manually configured SQLite connection
                                                </option>
                                            </f:if>
                                            <f:if condition="{hasConfigurationFromEnvironment}">
                                                <option
                                                    value="configurationFromEnvironment"
                                                    {f:if(condition:'{activeAvailableOption} == configurationFromEnvironment', then: 'selected="selected"')}
                                                >
                                                Configuration from environment variables
                                                </option>
                                            </f:if>
                                        </select>
                                        <label for="t3js-connect-database-driver" class="form-label">Connection</label>
                                    </div>
79
80
                                </div>
                            </div>
81

82
83
84
                            <f:if condition="{hasMysqliManualConfiguration}">
                                <div id="mysqliManualConfiguration" class="t3-install-driver-data">
                                    <input type="hidden" value="mysqli" name="install[values][driver]"/>
Benni Mack's avatar
Benni Mack committed
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
                                    <div class="row justify-content-center">
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-mysqliManualConfiguration-username"
                                                    class="form-control"
                                                    type="text"
                                                    value="{mysqliManualConfigurationOptions.username}"
                                                    name="install[values][username]"
                                                    autocomplete="off"
                                                    placeholder="db-user"
                                                />
                                                <label for="t3-install-step-mysqliManualConfiguration-username" class="form-label">
                                                    Username
                                                </label>
                                            </div>
101
                                        </div>
Benni Mack's avatar
Benni Mack committed
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-mysqliManualConfiguration-password"
                                                    class="form-control"
                                                    type="password"
                                                    value="{mysqliManualConfigurationOptions.password}"
                                                    name="install[values][password]"
                                                    autocomplete="off"
                                                    placeholder="password"
                                                />
                                                <label for="t3-install-step-mysqliManualConfiguration-password" class="form-label">
                                                    Password
                                                </label>
                                            </div>
117
118
                                        </div>
                                    </div>
Benni Mack's avatar
Benni Mack committed
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
                                    <div class="row justify-content-center">
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-mysqliManualConfiguration-host"
                                                    class="t3-install-form-input-text form-control"
                                                    type="text"
                                                    value="{mysqliManualConfigurationOptions.host}"
                                                    name="install[values][host]"
                                                    placeholder="127.0.0.1"
                                                />
                                                <label for="t3-install-step-mysqliManualConfiguration-host" class="form-label">
                                                    Host
                                                </label>
                                            </div>
134
                                        </div>
Benni Mack's avatar
Benni Mack committed
135
136
137
138
139
140
141
142
143
144
145
146
147
148
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-mysqliManualConfiguration-port"
                                                    class="t3-install-form-input-text form-control"
                                                    type="text"
                                                    value="{mysqliManualConfigurationOptions.port}"
                                                    name="install[values][port]"
                                                    placeholder="3306"
                                                />
                                                <label for="t3-install-step-mysqliManualConfiguration-port" class="form-label">
                                                    Port
                                                </label>
                                            </div>
149
150
151
152
                                        </div>
                                    </div>
                                </div>
                            </f:if>
153

154
155
156
                            <f:if condition="{hasMysqliSocketManualConfiguration}">
                                <div id="mysqliSocketManualConfiguration" class="t3-install-driver-data">
                                    <input type="hidden" value="mysqli" name="install[values][driver]"/>
Benni Mack's avatar
Benni Mack committed
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
                                    <div class="row">
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-mysqliSocketManualConfiguration-username"
                                                    class="form-control"
                                                    type="text"
                                                    value="{mysqliSocketManualConfigurationOptions.username}"
                                                    name="install[values][username]"
                                                    autocomplete="off"
                                                    placeholder="db-user"
                                                />
                                                <label for="t3-install-step-mysqliSocketManualConfiguration-username" class="form-label">
                                                    Username
                                                </label>
                                            </div>
173
                                        </div>
Benni Mack's avatar
Benni Mack committed
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-mysqliSocketManualConfiguration-password"
                                                    class="form-control"
                                                    type="password"
                                                    value="{mysqliSocketManualConfigurationOptions.password}"
                                                    name="install[values][password]"
                                                    autocomplete="off"
                                                    placeholder="password"
                                                />
                                                <label for="t3-install-step-mysqliSocketManualConfiguration-password" class="form-label">
                                                    Password
                                                </label>
                                            </div>
189
190
191
                                        </div>
                                    </div>
                                    <input type="hidden" value="localhost" name="install[values][host]"/>
Benni Mack's avatar
Benni Mack committed
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
                                    <div class="row">
                                        <div class="col-md-12 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-mysqliSocketManualConfiguration-socket"
                                                    class="t3-install-form-input-text form-control"
                                                    type="text"
                                                    value="{mysqliSocketManualConfigurationOptions.socket}"
                                                    name="install[values][socket]"
                                                    placeholder="Default socket or enter name"
                                                />
                                                <label for="t3-install-step-mysqliSocketManualConfiguration-socket" class="form-label">
                                                    Socket
                                                </label>
                                            </div>
207
208
209
210
211
212
213
214
                                        </div>
                                    </div>
                                </div>
                            </f:if>

                            <f:if condition="{hasPdoMysqlManualConfiguration}">
                                <div id="pdoMysqlManualConfiguration" class="t3-install-driver-data">
                                    <input type="hidden" value="pdo_mysql" name="install[values][driver]"/>
Benni Mack's avatar
Benni Mack committed
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
                                    <div class="row">
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-pdoMysqlManualConfiguration-username"
                                                    class="form-control"
                                                    type="text"
                                                    value="{mysqliManualConfigurationOptions.username}"
                                                    name="install[values][username]"
                                                    autocomplete="off"
                                                    placeholder="db-user"
                                                />
                                                <label for="t3-install-step-pdoMysqlManualConfiguration-username" class="form-label">
                                                    Username
                                                </label>
                                            </div>
231
                                        </div>
Benni Mack's avatar
Benni Mack committed
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-pdoMysqlManualConfiguration-password"
                                                    class="form-control"
                                                    type="password"
                                                    value="{pdoMysqlManualConfigurationOptions.password}"
                                                    name="install[values][password]"
                                                    autocomplete="off"
                                                    placeholder="password"
                                                />
                                                <label for="t3-install-step-pdoMysqlManualConfiguration-password" class="form-label">
                                                    Password
                                                </label>
                                            </div>
247
248
                                        </div>
                                    </div>
Benni Mack's avatar
Benni Mack committed
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
                                    <div class="row">
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-pdoMysqlManualConfiguration-host"
                                                    class="t3-install-form-input-text form-control"
                                                    type="text"
                                                    value="{pdoMysqlManualConfigurationOptions.host}"
                                                    name="install[values][host]"
                                                    placeholder="127.0.0.1"
                                                />
                                                <label for="t3-install-step-pdoMysqlManualConfiguration-host" class="form-label">
                                                    Host
                                                </label>
                                            </div>
264
                                        </div>
Benni Mack's avatar
Benni Mack committed
265
266
267
268
269
270
271
272
273
274
275
276
277
278
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-pdoMysqlManualConfiguration-port"
                                                    class="t3-install-form-input-text form-control"
                                                    type="text"
                                                    value="{pdoMysqlManualConfigurationOptions.port}"
                                                    name="install[values][port]"
                                                    placeholder="port"
                                                />
                                                <label for="t3-install-step-pdoMysqlManualConfiguration-port" class="form-label">
                                                    Port
                                                </label>
                                            </div>
279
280
281
282
283
284
285
286
                                        </div>
                                    </div>
                                </div>
                            </f:if>

                            <f:if condition="{hasPdoMysqlSocketManualConfiguration}">
                                <div id="pdoMysqlSocketManualConfiguration" class="t3-install-driver-data">
                                    <input type="hidden" value="pdo_mysql" name="install[values][driver]"/>
Benni Mack's avatar
Benni Mack committed
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
                                    <div class="row">
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-pdoMysqlSocketManualConfiguration-username"
                                                    class="form-control"
                                                    type="text"
                                                    value="{pdoMysqlSocketManualConfigurationOptions.username}"
                                                    name="install[values][username]"
                                                    autocomplete="off"
                                                    placeholder="db-user"
                                                />
                                                <label for="t3-install-step-pdoMysqlSocketManualConfiguration-username" class="form-label">
                                                    Username
                                                </label>
                                            </div>
303
                                        </div>
Benni Mack's avatar
Benni Mack committed
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-pdoMysqlSocketManualConfiguration-password"
                                                    class="form-control"
                                                    type="password"
                                                    value="{pdoMysqlSocketManualConfigurationOptions.password}"
                                                    name="install[values][password]"
                                                    autocomplete="off"
                                                    placeholder="password"
                                                />
                                                <label for="t3-install-step-pdoMysqlSocketManualConfiguration-password" class="form-label">
                                                    Password
                                                </label>
                                            </div>
319
320
321
                                        </div>
                                    </div>
                                    <input type="hidden" value="localhost" name="install[values][host]"/>
Benni Mack's avatar
Benni Mack committed
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
                                    <div class="row">
                                        <div class="col-md-12 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-pdoMysqlSocketManualConfiguration-socket"
                                                    class="t3-install-form-input-text form-control"
                                                    type="text"
                                                    value="{pdoMysqlSocketManualConfigurationOptions.socket}"
                                                    name="install[values][socket]"
                                                    placeholder="Default socket or enter name"
                                                />
                                                <label for="t3-install-step-pdoMysqlSocketManualConfiguration-socket" class="form-label">
                                                    Socket
                                                </label>
                                            </div>
337
338
339
340
                                        </div>
                                    </div>
                                </div>
                            </f:if>
341

342
343
344
                            <f:if condition="{hasPostgresManualConfiguration}">
                                <div id="postgresManualConfiguration" class="t3-install-driver-data">
                                    <input type="hidden" value="pdo_pgsql" name="install[values][driver]"/>
Benni Mack's avatar
Benni Mack committed
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
                                    <div class="row">
                                        <div class="col-md-12 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-postgresManualConfiguration-database"
                                                    class="t3-install-form-input-text form-control"
                                                    type="text"
                                                    value="{postgresManualConfigurationOptions.database}"
                                                    name="install[values][database]"
                                                    placeholder="database"
                                                />
                                                <label for="t3-install-step-postgresManualConfiguration-database" class="form-label">
                                                    Database
                                                </label>
                                            </div>
360
361
                                        </div>
                                    </div>
Benni Mack's avatar
Benni Mack committed
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
                                    <div class="row">
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-postgresManualConfiguration-username"
                                                    class="form-control"
                                                    type="text"
                                                    value="{postgresManualConfigurationOptions.username}"
                                                    name="install[values][username]"
                                                    autocomplete="off"
                                                    placeholder="db-user"
                                                />
                                                <label for="t3-install-step-postgresManualConfiguration-username" class="form-label">
                                                    Username
                                                </label>
                                            </div>
378
                                        </div>
Benni Mack's avatar
Benni Mack committed
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-postgresManualConfiguration-password"
                                                    class="form-control"
                                                    type="password"
                                                    value="{postgresManualConfigurationOptions.password}"
                                                    name="install[values][password]"
                                                    autocomplete="off"
                                                    placeholder="password"
                                                />
                                                <label for="t3-install-step-postgresManualConfiguration-password" class="form-label">
                                                    Password
                                                </label>
                                            </div>
394
395
                                        </div>
                                    </div>
Benni Mack's avatar
Benni Mack committed
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
                                    <div class="row">
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-postgresManualConfiguration-host"
                                                    class="t3-install-form-input-text form-control"
                                                    type="text"
                                                    value="{postgresManualConfigurationOptions.host}"
                                                    name="install[values][host]"
                                                    placeholder="127.0.0.1"
                                                />
                                                <label for="t3-install-step-postgresManualConfiguration-host" class="form-label">
                                                    Host
                                                </label>
                                            </div>
411
                                        </div>
Benni Mack's avatar
Benni Mack committed
412
413
414
415
416
417
418
419
420
421
422
423
424
425
                                        <div class="col-md-6 mb-3">
                                            <div class="form-floating">
                                                <input
                                                    id="t3-install-step-postgresManualConfiguration-port"
                                                    class="t3-install-form-input-text form-control"
                                                    type="text"
                                                    value="{postgresManualConfigurationOptions.port}"
                                                    name="install[values][port]"
                                                    placeholder=""
                                                />
                                                <label for="t3-install-step-postgresManualConfiguration-port" class="form-label">
                                                    Port
                                                </label>
                                            </div>
426
427
428
429
                                        </div>
                                    </div>
                                </div>
                            </f:if>
430

431
432
433
434
435
                            <f:if condition="{hasSqliteManualConfiguration}">
                                <div id="sqliteManualConfiguration" class="t3-install-driver-data">
                                    <input type="hidden" value="pdo_sqlite" name="install[values][driver]"/>
                                </div>
                            </f:if>
436

437
438
439
440
                            <f:if condition="{hasConfigurationFromEnvironment}">
                                <div id="configurationFromEnvironment" class="t3-install-driver-data">
                                </div>
                            </f:if>
441

Benni Mack's avatar
Benni Mack committed
442
443
444
                            <button class="btn btn-success pull-right t3js-installer-databaseConnect-execute">
                                Continue
                            </button>
445
446
447
448
                        </form>
                    </div>
                </div>
            </f:then>
449

450
451
452
453
454
455
456
457
            <f:else>
                <div class="t3js-message typo3-message alert alert-danger" role="alert">
                    <h4>No database driver found</h4>
                    <p class="messageText">You have no database driver installed or enabled. Please install a driver in order to complete the database connection.</p>
                </div>
            </f:else>
        </f:if>
    </div>
458
</div>
459
</html>