Lines 1-3
Link Here
|
|
|
1 |
[% USE HtmlTags %] |
2 |
[% BLOCK txt_continue %]Continue to the next step[% END %] |
1 |
[% INCLUDE 'doc-head-open.inc' %]<title>Koha › Web installer › Database settings</title> |
3 |
[% INCLUDE 'doc-head-open.inc' %]<title>Koha › Web installer › Database settings</title> |
2 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
4 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
3 |
</head> |
5 |
</head> |
Lines 11-21
Link Here
|
11 |
<h2>Web installer › Database settings</h2> |
13 |
<h2>Web installer › Database settings</h2> |
12 |
<h3>Database settings:</h3> |
14 |
<h3>Database settings:</h3> |
13 |
<ul> |
15 |
<ul> |
14 |
<li><em>Database type : </em> <code>[% dbms %]</code></li> |
16 |
<li><em>Database type: </em> [%- dbms | $HtmlTags tag=>'code' -%]</li> |
15 |
<li><em>Database name : </em> <code>[% dbname %]</code></li> |
17 |
<li><em>Database name: </em> [%- dbname | $HtmlTags tag=>'code' -%]</li> |
16 |
<li><em>Database host : </em> <code>[% hostname %]</code></li> |
18 |
<li><em>Database host: </em> [%- hostname | $HtmlTags tag=>'code'-%]</li> |
17 |
<li><em>Database port : </em> <code>[% port %]</code> (probably okay if blank)</li> |
19 |
<li><em>Database port: </em> [%- port| $HtmlTags tag=>'code' -%] (probably okay if blank)</li> |
18 |
<li><em>Database user : </em> <code>[% user %]</code></li> |
20 |
<li><em>Database user: </em> [%- user | $HtmlTags tag=>'code' -%]</li> |
19 |
</ul> |
21 |
</ul> |
20 |
|
22 |
|
21 |
[% IF ( dbconnection ) %] |
23 |
[% IF ( dbconnection ) %] |
Lines 24-46
Link Here
|
24 |
<div class="alert alert-success" role="alert"><p>Connection established.</p></div> |
26 |
<div class="alert alert-success" role="alert"><p>Connection established.</p></div> |
25 |
[% IF ( checkdatabasecreated ) %] |
27 |
[% IF ( checkdatabasecreated ) %] |
26 |
<ul> |
28 |
<ul> |
27 |
<li>Database <code>[% dbname %]</code> exists.</li> |
29 |
<li>Database [% dbname | $HtmlTags tag=>'code'%] exists.</li> |
28 |
[% IF ( checkgrantaccess ) %] |
30 |
[% IF ( checkgrantaccess ) %] |
29 |
<li>User <code>[% user %]</code> has all required privileges on database <code>[% dbname %]</code>.</li> |
31 |
<li>User [% user | $HtmlTags tag=>'code' %] has all required privileges on database [% dbname | $HtmlTags tag=>'code' %].</li> |
30 |
</ul> |
32 |
</ul> |
31 |
[% ELSE %] |
33 |
[% ELSE %] |
32 |
</ul> |
34 |
</ul> |
33 |
<p class="error">user <code>[% user %]</code> doesn't have enough privilege on database <code>[% dbname %]</code> </p> |
35 |
<p class="error">User [% user | $HtmlTags tag=>'code' %] doesn't have enough privilege on database [% dbname | $HtmlTags tag=>'code'%].</p> |
34 |
<p class="tip"> Ask for or make a change in the user's privileges. Need help? See [% IF ( mysql ) %] |
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> |
35 |
<a href="http://dev.mysql.com/doc/refman/4.1/en/grant.html"> |
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> |
36 |
[% ELSE %] |
39 |
[% ELSE %] |
37 |
<a href="http://www.postgresql.org/docs/8.2/interactive/sql-createrole.html"> |
40 |
<a href="http://www.postgresql.org/docs/8.2/interactive/sql-createrole.html">PostgreSQL</a> |
38 |
[% END %] |
41 |
[% END %] |
39 |
this page</a>. User <code>[% user %]</code> must have USAGE, INSERT, UPDATE, DELETE, DROP and CREATE privileges on <code>[% dbname %]</code> |
|
|
40 |
</p> |
42 |
</p> |
41 |
[% END %] |
43 |
[% END %] |
42 |
[% ELSE %] |
44 |
[% ELSE %] |
43 |
<div class="alert alert-danger" role="alert"><p>No database named <code>[% dbname %]</code> detected.</p></div> |
45 |
<div class="alert alert-danger" role="alert"><p>No database named [% dbname | $HtmlTags tag=>'code' %] detected.</p></div> |
44 |
<p>Please create the database before continuing.</p> |
46 |
<p>Please create the database before continuing.</p> |
45 |
[% END %] |
47 |
[% END %] |
46 |
[% ELSE %] |
48 |
[% ELSE %] |
Lines 48-70
Link Here
|
48 |
<div class="tip"> |
50 |
<div class="tip"> |
49 |
<ul> |
51 |
<ul> |
50 |
<li>Check that your database is running.</li> |
52 |
<li>Check that your database is running.</li> |
51 |
<li>Check your database settings in <code>koha-conf.xml</code>. </li> |
53 |
<li>Check your database settings in [% 'koha-conf.xml' | $HtmlTags Tag=>'code'-%].</li> |
52 |
<li>Check the hostname setting in <code>koha-conf.xml</code>. |
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> |
53 |
Some database servers require <code>127.0.0.1</code> rather than <code>localhost</code>.</li> |
|
|
54 |
</ul> |
55 |
</ul> |
55 |
</div> |
56 |
</div> |
56 |
<p>Please correct these errors and <a href="/cgi-bin/koha/installer/install.pl">start the installer</a> again. |
57 |
<p>Please correct these errors. <a href="/cgi-bin/koha/installer/install.pl">Then start the installer again.</a> |
57 |
[% END %] |
58 |
[% END %] |
58 |
[% UNLESS ( error ) %] |
59 |
[% UNLESS ( error ) %] |
59 |
<input type="hidden" name="step" value="3" /> |
60 |
<input type="hidden" name="step" value="3" /> |
60 |
<p> <input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p> |
61 |
<p><input value="[%- INCLUDE txt_continue -%]" class="btn btn-primary" type="submit" /></p> |
61 |
[% END %] |
62 |
[% END %] |
62 |
</form> |
63 |
</form> |
63 |
[% ELSE %] |
64 |
[% ELSE %] |
64 |
<form name="checkinformation" method="post" action="install.pl"> |
65 |
<form name="checkinformation" method="post" action="install.pl"> |
65 |
<input type="hidden" name="step" value="2" /> |
66 |
<input type="hidden" name="step" value="2" /> |
66 |
<input type="hidden" name="checkdb" value="1" /> |
67 |
<input type="hidden" name="checkdb" value="1" /> |
67 |
<p> <input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p> |
68 |
<p><input value="[%- INCLUDE txt_continue -%]" class="btn btn-primary" type="submit" /> </p> |
68 |
</form> |
69 |
</form> |
69 |
[% END # / IF dbconnection %] |
70 |
[% END # / IF dbconnection %] |
70 |
</div> <!-- / #installer-step2 --> |
71 |
</div> <!-- / #installer-step2 --> |