Database Connection

{form legend="Please enter your database connection information"}
{if $warning or $error or $success} {if $warning}

We have already set up a working connection with your database. Change these settings at your own peril.

{elseif $error}

Database connection could not be established.

{if $errorMsg}

The returned error message is:
{$errorMsg}

{/if} {/if} {/if}
{formlabel label="Database type" for="db"} {forminput} {if $section eq 'Upgrade'}

If you intend to upgrade an existing MySQL database, the required server version is greater than 4.1.

{/if} {if $dbservers} {html_options name='db' options=$dbservers id=db selected=$gBitDbType class="form-control"} {formhelp note="The type of database you intend to use."} {if $mysqlWarning}

Versions of MySQL less than 4.1 are not supported by some packages due to the lack of subquery support. Notable among these are the Boards and Messages packages. Other packages may also have issues. It is recommended that you use MySQL version 4.1 or higher for the best experience with Bitweaver. It may be possible to use a lower versions of MySQL if you do not install these packages.

{/if} {else}

You currently have no database installed that works here. If you feel this is wrong, please contact the Bitweaver team.

{/if}

If the database you wish to use is not listed above, the version of PHP on this server does not have support for that database installed or compiled in.

{/forminput}
{formlabel label="Host" for="host"} {forminput} {formhelp note="Hostname or IP for your MySQL database, example:
Use 'localhost' if your database is on the same machine as your server.
If you use Oracle, insert your TNS name here.
If you use SQLite, insert the path and filename to your database file.
If you are not sure what to put in here, try using localhost."} {/forminput}
{formlabel label="User" for="user"} {forminput} {formhelp note="Database user"} {/forminput}
{formlabel label="Password" for="pass"} {forminput} {formhelp note="Database password"} {/forminput}
{formlabel label="Database name" for="name"} {forminput} {if $fbpath} {formhelp note="The name of the database where Bitweaver will create tables. You can create a Firebird alias for the Bitweaver database in aliases.conf and then use that aliase as the database name, or provide a full path and file name to create the database in an existing directory."} {else} {formhelp note="The name of the database where Bitweaver will create tables. You can create the database using mysqladmin, or PHPMyAdmin or ask your hosting service to create a MySQL database. Normally, Bitweaver tables won't conflict with other product names."} {/if} {/forminput}
{if $fbpath} {formhelp note="Do not use Prefix with Firebird, as the field and table names are already up to 30 characters."} {/if} {formlabel label="Database prefix" for="prefix"} {forminput} {formhelp note="This prefix will be prepended to the begining of every table name to allow multiple independent install to share a single database. To ensure problem free usage of Bitweaver with other applications in the same database, we highly recommend using a prefix. If you are NOT running MySQL (i.e. Postgres, Oracle, etc.) you can end the prefix string with a '.' (period) to use a schema in systems that support it. MySQL does NOT support schemas."} {/forminput}
{if $fbpath}
{formlabel label="Firebird installation path" for="fbpath"} {forminput} {formhelp note="If you have modified your Firebird installation from the default please enter the correct path to the base Firebird directory. This is used to find isql in order to create the initial blank database and should be maintained in the correct format for your operating system."} {/forminput}
{/if}
{formlabel label="Site base URL" for="baseurl"} {forminput} {formhelp note="This is the path from the server root to your Bitweaver location.
i.e. if you access Bitweaver as http://MyServer.com/applications/new/wiki/index.php you should enter /applications/new/"} {/forminput}
{forminput label="checkbox"} Auto submit bugs {formhelp note="Checking this box will automatically submit fatal database errors to the Bitweaver team. If you are running a live site, consider checking this box, as it will also avoid fatal error messages from appearing to the user."} {/forminput}
{forminput label="checkbox"} Site is live {formhelp note="Checking this will make debugging quite difficult as it will hide errors. Only check if your site is being used in a live environment right after installation."} {/forminput}
{forminput} {/forminput}
{/form}