Exemple #1
0
 def setup(self):
     cmd = [
         environment.mysqlctl_binary,
         '-alsologtostderr',
         '-tablet_uid',
         '1',
         '-mysql_port',
         str(self._port),
         '-db-config-dba-charset',
         'utf8',
         '-db-config-dba-uname',
         'vt_dba',
         'init',
         '-init_db_sql_file',
         os.path.join(os.environ['VTTOP'], 'config/init_db.sql'),
     ]
     env = os.environ
     env['VTDATAROOT'] = self._directory
     my_cnf = mysql_flavor().my_cnf()
     if self._extra_my_cnf:
         my_cnf += ':%s' % self._extra_my_cnf
     env['EXTRA_MY_CNF'] = my_cnf
     result = subprocess.call(cmd, env=env)
     if result != 0:
         raise Exception('mysqlctl failed', result)
Exemple #2
0
 def setup(self):
   cmd = [
       environment.mysqlctl_binary,
       '-alsologtostderr',
       '-tablet_uid', '1',
       '-mysql_port', str(self._port),
       '-db-config-dba-charset', 'utf8',
       '-db-config-dba-uname', 'vt_dba',
       'init',
       '-bootstrap_archive', mysql_flavor().bootstrap_archive(),
   ]
   env = os.environ
   env['VTDATAROOT'] = self._directory
   env['EXTRA_MY_CNF'] = mysql_flavor().my_cnf()
   result = subprocess.call(cmd, env=env)
   if result != 0:
     raise Exception('mysqlctl failed', result)
Exemple #3
0
 def setup(self):
     cmd = [
         environment.mysqlctl_binary,
         '-alsologtostderr',
         '-tablet_uid',
         '1',
         '-mysql_port',
         str(self._port),
         '-db-config-dba-charset',
         'utf8',
         '-db-config-dba-uname',
         'vt_dba',
         'init',
         '-bootstrap_archive',
         mysql_flavor().bootstrap_archive(),
     ]
     env = os.environ
     env['VTDATAROOT'] = self._directory
     env['EXTRA_MY_CNF'] = mysql_flavor().my_cnf()
     result = subprocess.call(cmd, env=env)
     if result != 0:
         raise Exception('mysqlctl failed', result)
 def setup(self):
   cmd = [
       environment.mysqlctl_binary,
       '-alsologtostderr',
       '-tablet_uid', '1',
       '-mysql_port', str(self._port),
       '-db-config-dba-charset', 'utf8',
       '-db-config-dba-uname', 'vt_dba',
       'init',
       '-init_db_sql_file',
       os.path.join(os.environ['VTTOP'], 'config/init_db.sql'),
   ]
   env = os.environ
   env['VTDATAROOT'] = self._directory
   my_cnf = mysql_flavor().my_cnf()
   if self._extra_my_cnf:
     my_cnf += ':%s' % self._extra_my_cnf
   env['EXTRA_MY_CNF'] = my_cnf
   result = subprocess.call(cmd, env=env)
   if result != 0:
     raise Exception('mysqlctl failed', result)