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 an interactive 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>
30 <refsect1><title>Description</title>
31 <para>Provide an interactive mysql shell set up for the specified Koha instance.</para>
34 <refsect1><title>Example usage</title>
37 <term>Send an SQL query to MySQL</term>
39 <para>"Some SQL query" | <command>koha-mysql</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg></para>
43 <term>Load a database dump (e.g. one produced by mysqldump) into the database of the given instance</term>
45 <para><command>koha-mysql</command> <arg choice="req" rep="norepeat"><replaceable>instancename</replaceable></arg> < /path/to/mysqldump.sql</para>
51 <refsect1><title>See also</title>
52 <simplelist type="inline">
53 <member><command>koha-dump-defaults(8)</command></member>
54 <member><command>koha-reset-passwd(8)</command></member>
55 <member><command>koha-upgrade-schema(8)</command></member>