2 [% INCLUDE 'doc-head-open.inc' %]<title>Database settings › Web installer › Koha</title>
3 [% INCLUDE 'installer-doc-head-close.inc' %]
6 <body id="installer" class="installer">
7 <div class="container-fluid">
9 <div id="installer-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
12 <div id="logo"><a href="#">Koha</a></div>
13 <h1>Web installer › Database settings</h1>
17 <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Choose your language</li>
18 <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Check Perl dependencies</li>
19 <li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Database settings</li>
20 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Set up database</li>
21 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Install basic configuration settings</li>
22 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding</li>
26 <h3>Database settings:</h3>
28 <li><em>Database type: </em> [%- dbms | $HtmlTags tag=>'code' -%]</li>
29 <li><em>Database name: </em> [%- dbname | $HtmlTags tag=>'code' -%]</li>
30 <li><em>Database host: </em> [%- hostname | $HtmlTags tag=>'code' -%]</li>
31 <li><em>Database port: </em> [%- port| $HtmlTags tag=>'code' -%] (probably okay if blank)</li>
32 <li><em>Database user: </em> [%- user | $HtmlTags tag=>'code' -%]</li>
35 [% IF ( dbconnection ) %]
36 <form name="checkdbparameters" method="post" action="install.pl">
37 [% IF ( checkdatabaseaccess ) %]
38 <div class="alert alert-success" role="alert"><p>Connection established.</p></div>
39 [% IF ( checkdatabasecreated ) %]
41 <li>Database [% dbname | $HtmlTags tag=>'code' %] exists.</li>
42 [% IF ( checkgrantaccess ) %]
43 <li>User [% user | $HtmlTags tag=>'code' %] has all required privileges on database [% dbname | $HtmlTags tag=>'code' %].</li>
47 <p class="error">User [% user | $HtmlTags tag=>'code' %] doesn't have enough privilege on database [% dbname | $HtmlTags tag=>'code' %].</p>
48 <p class="tip">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>
49 <p>Need help? For help with granting permissions, please search online for "[% dbms | $HtmlTags tag=>'code' %] manual grant permissions"
53 <div class="alert alert-danger" role="alert"><p>No database named [% dbname | $HtmlTags tag=>'code' %] detected.</p></div>
54 <p>Please create the database before continuing.</p>
57 <div class="alert alert-warning" role="alert">[% error | html %] : [% message | html %]</div>
60 <li>Check that your database is running.</li>
61 <li>Check your database settings in [% 'koha-conf.xml' | $HtmlTags Tag=>'code' %].</li>
62 <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>
65 <p>Please correct these errors. <a href="/cgi-bin/koha/installer/install.pl">Then start the installer again.</a>
67 [% UNLESS ( error ) %]
68 <input type="hidden" name="step" value="3" />
69 <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
73 <form name="checkinformation" method="post" action="install.pl">
74 <input type="hidden" name="step" value="2" />
75 <input type="hidden" name="checkdb" value="1" />
76 <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
78 [% END # / IF dbconnection %]
79 </div> <!-- / #installer-step2 -->
80 </div> <!-- / .row -->
81 </div><!-- / .container-fluid -->
83 [% INCLUDE 'installer-intranet-bottom.inc' %]