~ubuntu-branches/ubuntu/hardy/mysql-dfsg-5.0/hardy-updates

« back to all changes in this revision

Viewing changes to mysql-test/install_test_db.sh

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-02 16:10:53 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070402161053-zkil9hjq9k5p1uzv
Tags: 5.0.37-0ubuntu1
* New upstream bugfix release.
  - Fixes replication failure with auto-increment and on duplicate key
    update, a regression introduced into 5.0.24. (LP: #95821)
* debian/control: Set Ubuntu maintainer.
* debian/rules: Change comments from 'Debian etch' to 'Ubuntu 7.04'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
# Copyright (C) 1997-2006 MySQL AB
3
 
# For a more info consult the file COPYRIGHT distributed with this file
 
3
 
4
# This program is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation; version 2 of the License.
 
7
 
8
# This program is distributed in the hope that it will be useful,
 
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
# GNU General Public License for more details.
 
12
 
13
# You should have received a copy of the GNU General Public License
 
14
# along with this program; if not, write to the Free Software
 
15
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
4
16
 
5
17
# This scripts creates the privilege tables db, host, user, tables_priv,
6
18
# columns_priv in the mysql database, as well as the func table.
55
67
mdata=$data/mysql
56
68
EXTRA_ARG=""
57
69
 
58
 
if test ! -x $execdir/mysqld
 
70
mysqld=
 
71
if test -x $execdir/mysqld
59
72
then
 
73
  mysqld=$execdir/mysqld
 
74
else
60
75
  if test ! -x $libexecdir/mysqld
61
76
  then
62
77
    echo "mysqld is missing - looked in $execdir and in $libexecdir"
63
78
    exit 1
64
79
  else
65
 
    execdir=$libexecdir
 
80
    mysqld=$libexecdir/mysqld
66
81
  fi
67
82
fi
68
83
 
88
103
EXTRA_ARG="--language=../sql/share/english/ --character-sets-dir=../sql/share/charsets/"
89
104
fi
90
105
 
91
 
mysqld_boot=" $execdir/mysqld --no-defaults --bootstrap --skip-grant-tables \
92
 
    --basedir=$basedir --datadir=$ldata --skip-innodb --skip-ndbcluster --skip-bdb \
 
106
mysqld_boot="${MYSQLD_BOOTSTRAP-$mysqld}"
 
107
 
 
108
mysqld_boot="$mysqld_boot --no-defaults --bootstrap --skip-grant-tables \
 
109
    --basedir=$basedir --datadir=$ldata \
 
110
    --skip-innodb --skip-ndbcluster --skip-bdb \
93
111
    $EXTRA_ARG"
94
112
echo "running $mysqld_boot"
95
113