mysql5/mysql-5.7.27/sql/bootstrap.h

35 lines
1.1 KiB
C

/* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
#ifndef BOOTSTRAP_H
#define BOOTSTRAP_H
#include "my_global.h"
typedef struct st_mysql_file MYSQL_FILE;
/**
Execute all commands from a file. Used by the mysql_install_db script to
create MySQL privilege tables without having to start a full MySQL server.
*/
int bootstrap(MYSQL_FILE *file);
/**
Execute a single SQL command.
*/
int bootstrap_single_query(const char* query);
#endif // BOOTSTRAP_H