2 [% BLOCK txt_continue %]Continue to the next step[% END %]
3 [% INCLUDE 'doc-head-open.inc' %]<title>Koha › Web installer › Database settings</title>
4 [% INCLUDE 'installer-doc-head-close.inc' %]
7 <body id="installer" class="installer">
8 <div class="container-fluid">
10 <div id="installer-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
12 <h1 id="logo"><a href="#">Koha</a></h1>
13 <h2>Web installer › Database settings</h2>
14 <h3>Database settings:</h3>
16 <li><em>Database type: </em> [%- dbms | $HtmlTags tag=>'code' -%]</li>
17 <li><em>Database name: </em> [%- dbname | $HtmlTags tag=>'code' -%]</li>
18 <li><em>Database host: </em> [%- hostname | $HtmlTags tag=>'code'-%]</li>
19 <li><em>Database port: </em> [%- port| $HtmlTags tag=>'code' -%] (probably okay if blank)</li>
20 <li><em>Database user: </em> [%- user | $HtmlTags tag=>'code' -%]</li>
23 [% IF ( dbconnection ) %]
24 <form name="checkdbparameters" method="post" action="install.pl">
25 [% IF ( checkdatabaseaccess ) %]
26 <div class="alert alert-success" role="alert"><p>Connection established.</p></div>
27 [% IF ( checkdatabasecreated ) %]
29 <li>Database [% dbname | $HtmlTags tag=>'code'%] exists.</li>
30 [% IF ( checkgrantaccess ) %]
31 <li>User [% user | $HtmlTags tag=>'code' %] has all required privileges on database [% dbname | $HtmlTags tag=>'code' %].</li>
35 <p class="error">User [% user | $HtmlTags tag=>'code' %] doesn't have enough privilege on database [% dbname | $HtmlTags tag=>'code'%].</p>
36 <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>
37 <p>Need help? See manual for [% IF ( mysql ) %]
38 <a href="http://dev.mysql.com/doc/refman/4.1/en/grant.html">MySQL</a>
40 <a href="http://www.postgresql.org/docs/8.2/interactive/sql-createrole.html">PostgreSQL</a>
45 <div class="alert alert-danger" role="alert"><p>No database named [% dbname | $HtmlTags tag=>'code' %] detected.</p></div>
46 <p>Please create the database before continuing.</p>
49 <div class="alert alert-warning" role="alert">[% error %] : [% message %]</div>
52 <li>Check that your database is running.</li>
53 <li>Check your database settings in [% 'koha-conf.xml' | $HtmlTags Tag=>'code' %].</li>
54 <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>
57 <p>Please correct these errors. <a href="/cgi-bin/koha/installer/install.pl">Then start the installer again.</a>
59 [% UNLESS ( error ) %]
60 <input type="hidden" name="step" value="3" />
61 <p><input value="[% INCLUDE txt_continue %]" class="btn btn-primary" type="submit" /></p>
65 <form name="checkinformation" method="post" action="install.pl">
66 <input type="hidden" name="step" value="2" />
67 <input type="hidden" name="checkdb" value="1" />
68 <p><input value="[% INCLUDE txt_continue %]" class="btn btn-primary" type="submit" /> </p>
70 [% END # / IF dbconnection %]
71 </div> <!-- / #installer-step2 -->
72 </div> <!-- / .row -->
74 [% INCLUDE 'intranet-bottom.inc' %]