3 [% PROCESS 'i18n.inc' %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% FILTER collapse %]
6 [% t("Database settings") | html %] ›
7 [% t("Web installer") | html %] ›
10 [% INCLUDE 'installer-doc-head-close.inc' %]
13 <body id="installer" class="installer">
14 <div class="container-fluid">
16 <div id="installer-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
19 <div id="logo"><a href="#">Koha</a></div>
20 <h1>Web installer › Database settings</h1>
24 <li class="complete"><i class="fa fa-check-square" aria-hidden="true"></i> Choose your language</li>
25 <li class="complete"><i class="fa fa-check-square" aria-hidden="true"></i> Check Perl dependencies</li>
26 <li class="current open"><i class="fa fa-square" aria-hidden="true"></i> Database settings</li>
27 <li class="open"><i class="fa fa-square" aria-hidden="true"></i> Set up database</li>
28 <li class="open"><i class="fa fa-square" aria-hidden="true"></i> Install basic configuration settings</li>
29 <li class="open"><i class="fa fa-square" aria-hidden="true"></i> Onboarding</li>
33 <h3>Database settings:</h3>
35 <li><em>Database type: </em> [%- dbms | $HtmlTags tag=>'code' -%]</li>
36 <li><em>Database name: </em> [%- dbname | $HtmlTags tag=>'code' -%]</li>
37 <li><em>Database host: </em> [%- hostname | $HtmlTags tag=>'code' -%]</li>
38 <li><em>Database port: </em> [%- port| $HtmlTags tag=>'code' -%] (probably okay if blank)</li>
39 <li><em>Database user: </em> [%- user | $HtmlTags tag=>'code' -%]</li>
42 [% IF ( dbconnection ) %]
43 <form name="checkdbparameters" method="post" action="install.pl">
44 [% IF ( checkdatabaseaccess ) %]
45 <div class="alert alert-success" role="alert"><p>Connection established.</p></div>
46 [% IF ( checkdatabasecreated ) %]
48 <li>Database [% dbname | $HtmlTags tag=>'code' %] exists.</li>
49 [% IF ( checkgrantaccess ) %]
50 <li>User [% user | $HtmlTags tag=>'code' %] has all required privileges on database [% dbname | $HtmlTags tag=>'code' %].</li>
54 <p class="error">User [% user | $HtmlTags tag=>'code' %] doesn't have enough privilege on database [% dbname | $HtmlTags tag=>'code' %].</p>
55 <p class="hint">Ask for or make a change in the user's privileges. User [% user | $HtmlTags tag=>'code' %] must have USAGE, INSERT, UPDATE, DELETE, DROP and CREATE privileges on database [% dbname | $HtmlTags tag=>'code' %].</p>
56 <p>Need help? For help with granting permissions, please search online for "[% dbms | $HtmlTags tag=>'code' %] manual grant permissions"
59 [% IF ( warnDbRowFormat ) %]
60 <div class="alert alert-danger" role="alert">
61 <p>Database tables with a row format other than 'DYNAMIC': [% warnDbRowFormat | html %]</p>
62 <p>You may experience problems upgrading to newer versions of Koha unless you update the row format for your database tables.</p>
63 <p>To know how to avoid this problem see the related wiki page:
64 <a href="https://wiki.koha-community.org/wiki/Database_row_format">Database row format</a>
69 <div class="alert alert-danger" role="alert"><p>No database named [% dbname | $HtmlTags tag=>'code' %] detected.</p></div>
70 <p>Please create the database before continuing.</p>
73 <div class="alert alert-warning" role="alert">[% error | html %] : [% message | html %]</div>
76 <li>Check that your database is running.</li>
77 <li>Check your database settings in [% 'koha-conf.xml' | $HtmlTags Tag=>'code' %].</li>
78 <li>Check the hostname setting in [% INCLUDE txt_kohaconf_xml %]. Some database servers require [% '127.0.0.1' | $HtmlTags tag=>'code' %] rather than [% 'localhost' | $HtmlTags tag=>'code' %].</li>
81 <p>Please correct these errors. <a href="/cgi-bin/koha/installer/install.pl">Then start the installer again.</a>
83 [% UNLESS ( error ) %]
84 <input type="hidden" name="step" value="3" />
85 <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
89 <form name="checkinformation" method="post" action="install.pl">
90 <input type="hidden" name="step" value="2" />
91 <input type="hidden" name="checkdb" value="1" />
92 <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
94 [% END # / IF dbconnection %]
95 </div> <!-- / #installer-step2 -->
96 </div> <!-- / .row -->
97 </div><!-- / .container-fluid -->
99 [% INCLUDE 'installer-intranet-bottom.inc' %]