~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/include/ndb_master-slave.inc

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Replication tests need binlog
 
2
source include/have_log_bin.inc;
 
3
 
 
4
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,);
 
5
connect (master1,127.0.0.1,root,,test,$MASTER_MYPORT,);
 
6
connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,);
 
7
connect (slave1,127.0.0.1,root,,test,$SLAVE_MYPORT,);
 
8
 
 
9
connection slave;
 
10
# Check that server is compiled and started with support for NDB
 
11
disable_query_log;
 
12
--require r/true.require
 
13
select (support = 'YES' or support = 'DEFAULT') as `TRUE` from information_schema.engines where engine = 'ndbcluster';
 
14
--source include/ndb_not_readonly.inc
 
15
enable_query_log;
 
16
 
 
17
-- source include/master-slave-reset.inc
 
18
 
 
19
# Set the default connection to 'master'
 
20
connection master;