1 <article xmlns='http://docbook.org/ns/docbook'>
2 <title>koha-mysql</title>
4 <productname>Koha</productname> is the first free software library automation package.
6 <orgname>The Koha Community</orgname>
7 <uri>http://koha-community.org/</uri>
11 <refentry xml:id="koha-mysql">
14 <refentrytitle>koha-mysql</refentrytitle>
15 <manvolnum>8</manvolnum>
19 <refname>koha-mysql</refname>
20 <refpurpose>Provide a mysql shell set up for the specified Koha instance.</refpurpose>
21 <refclass>UNIX/Linux</refclass>
26 <command>koha-mysql</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg> <arg choice="opt" rep="repeat">mysql option</arg>
30 <refsect1><title>Description</title>
31 <para>Provide a mysql shell set up for the specified Koha instance.</para>
34 <refsect1><title>Example usage</title>
37 <term>Run interactive mysql shell for speicified Koha instance</term>
39 <para><command>koha-mysql</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg></para>
43 <term>Run a query given as an argument without launching mysql shell</term>
45 <para><command>koha-mysql</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg> -e "SOME SQL QUERY"</para>
49 <term>Run a query, skip column names on output</term>
51 <para><command>koha-mysql</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg> -e "SOME SQL QUERY" --skip-column-names</para>
55 <term>Load a database dump (e.g. one produced by mysqldump) into the database of the given instance</term>
57 <para><command>koha-mysql</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg> < /path/to/mysqldump.sql</para>
63 <refsect1><title>See also</title>
64 <simplelist type="inline">
65 <member><command>mysql (1)</command></member>
66 <member><command>koha-dump-defaults(8)</command></member>
67 <member><command>koha-reset-passwd(8)</command></member>
68 <member><command>koha-upgrade-schema(8)</command></member>