config root man

Current Path : /compat/linux/proc/self/root/home/usr.opt/mysql57/mysql-test/include/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/home/usr.opt/mysql57/mysql-test/include/ndb_not_readonly.inc

# Check that server has come out ot readonly mode
#
# wait for server to connect properly to cluster
#

--disable_query_log

set @saved_log = @@sql_log_bin;
set sql_log_bin = 0;
--error 0,ER_NO_SUCH_TABLE,ER_OPEN_AS_READONLY,ER_GET_ERRMSG,ER_TABLE_DEF_CHANGED,ER_NOT_FORM_FILE,ER_KEY_NOT_FOUND
delete from mysql.ndb_schema where db="" and name="";
let $mysql_errno= 1;
let $counter= 600;
while ($mysql_errno)
{
  # Table is readonly until the mysqld has connected properly
  --error 0,ER_NO_SUCH_TABLE,ER_OPEN_AS_READONLY,ER_GET_ERRMSG,ER_TABLE_DEF_CHANGED,ER_NOT_FORM_FILE,
  replace into mysql.ndb_schema values("","",0,"",0,0,0,0,0);
  if ($mysql_errno)
  {
    if (!$counter)
    {
      die Failed while waiting for mysqld to come out of readonly mode;
    }
    dec $counter;
    --sleep 0.1
  }
}
delete from mysql.ndb_schema where db="" and name="";
set sql_log_bin = @saved_log;

--enable_query_log

#
# connected
#

Man Man