Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Setting up mysql-server-5.0 (5.0.38-0ubuntu1.1) ...
- . /usr/share/debconf/confmodule
- + . /usr/share/debconf/confmodule
- #!/bin/sh
- # This is a shell library to interface to the Debian configuration management
- # system.
- ###############################################################################
- # Initialization.
- # Check to see if a FrontEnd is running.
- if [ ! "$DEBIAN_HAS_FRONTEND" ]; then
- PERL_DL_NONLAZY=1
- export PERL_DL_NONLAZY
- # Since there is no FrontEnd, this program execs a FrontEnd.
- # It will then run a new copy of $0 that can talk to it.
- if [ "$DEBCONF_USE_CDEBCONF" ]; then
- exec /usr/lib/cdebconf/debconf $0 "$@"
- else
- exec /usr/share/debconf/frontend $0 "$@"
- fi
- fi
- ++ '[' '!' '' ']'
- ++ PERL_DL_NONLAZY=1
- ++ export PERL_DL_NONLAZY
- ++ '[' '' ']'
- ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/mysql-server-5.0.postinst configure 5.0.38-0ubuntu1
- . /usr/share/debconf/confmodule
- + . /usr/share/debconf/confmodule
- #!/bin/sh
- # This is a shell library to interface to the Debian configuration management
- # system.
- ###############################################################################
- # Initialization.
- # Check to see if a FrontEnd is running.
- if [ ! "$DEBIAN_HAS_FRONTEND" ]; then
- PERL_DL_NONLAZY=1
- export PERL_DL_NONLAZY
- # Since there is no FrontEnd, this program execs a FrontEnd.
- # It will then run a new copy of $0 that can talk to it.
- if [ "$DEBCONF_USE_CDEBCONF" ]; then
- exec /usr/lib/cdebconf/debconf $0 "$@"
- else
- exec /usr/share/debconf/frontend $0 "$@"
- fi
- fi
- ++ '[' '!' 1 ']'
- # Only do this once.
- if [ -z "$DEBCONF_REDIR" ]; then
- # Redirect standard output to standard error. This prevents common
- # mistakes by making all the output of the postinst or whatever
- # script is using this library not be parsed as confmodule commands.
- #
- # To actually send something to standard output, send it to fd 3.
- exec 3>&1
- if [ "$DEBCONF_USE_CDEBCONF" ]; then
- exec 1>&5
- else
- exec 1>&2
- fi
- DEBCONF_REDIR=1
- export DEBCONF_REDIR
- fi
- ++ '[' -z '' ']'
- ++ exec
- ++ '[' '' ']'
- ++ exec
- ++ DEBCONF_REDIR=1
- ++ export DEBCONF_REDIR
- ###############################################################################
- # Commands.
- _db_cmd () {
- IFS=' ' printf '%s\n' "$*" >&3
- # Set to newline to get whole line.
- IFS='
- ' read -r _db_internal_line
- # Disgusting, but it's the only good way to split the line,
- # preserving all other whitespace.
- RET="${_db_internal_line#[! ][ ]}"
- case ${_db_internal_line%%[ ]*} in
- 1) # escaped data
- RET="$(printf '%s' "$RET" | debconf-escape -u)"
- return 0
- ;;
- esac
- return ${_db_internal_line%%[ ]*}
- }
- db_capb () { _db_cmd "CAPB $@"; }
- db_set () { _db_cmd "SET $@"; }
- db_reset () { _db_cmd "RESET $@"; }
- db_title () { _db_cmd "TITLE $@"; }
- db_input () { _db_cmd "INPUT $@"; }
- db_beginblock () { _db_cmd "BEGINBLOCK $@"; }
- db_endblock () { _db_cmd "ENDBLOCK $@"; }
- db_go () { _db_cmd "GO $@"; }
- db_get () { _db_cmd "GET $@"; }
- db_register () { _db_cmd "REGISTER $@"; }
- db_unregister () { _db_cmd "UNREGISTER $@"; }
- db_subst () { _db_cmd "SUBST $@"; }
- db_fset () { _db_cmd "FSET $@"; }
- db_fget () { _db_cmd "FGET $@"; }
- db_purge () { _db_cmd "PURGE $@"; }
- db_metaget () { _db_cmd "METAGET $@"; }
- db_version () { _db_cmd "VERSION $@"; }
- db_clear () { _db_cmd "CLEAR $@"; }
- db_settitle () { _db_cmd "SETTITLE $@"; }
- db_previous_module () { _db_cmd "PREVIOUS_MODULE $@"; }
- db_info () { _db_cmd "INFO $@"; }
- db_progress () { _db_cmd "PROGRESS $@"; }
- # An old alias for input.
- db_text () {
- db_input $@
- }
- # Cannot read a return code, since there is none and it would block.
- db_stop () {
- echo STOP >&3
- }
- if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
- + '[' -n '' ']'
- ${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*" 1>&2 }
- export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin
- + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/bin:/usr/bin
- + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/bin:/usr/bin
- # This command can be used as pipe to syslog. With "-s" it also logs to stderr.
- ERR_LOGGER="logger -p daemon.err -t mysqld_safe -i"
- + ERR_LOGGER='logger -p daemon.err -t mysqld_safe -i'
- invoke() {
- if [ -x /usr/sbin/invoke-rc.d ]; then
- invoke-rc.d mysql $1
- else
- /etc/init.d/mysql $1
- fi
- }
- MYSQL_BOOTSTRAP="/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --skip-bdb --skip-innodb "
- + MYSQL_BOOTSTRAP='/usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --skip-bdb --skip-innodb '
- test_mysql_access() {
- mysql --no-defaults -u root -h localhost </dev/null >/dev/null 2>&1
- }
- # call with $1 = "online" to connect to the server, otherwise it bootstraps
- set_mysql_rootpw() {
- # forget we ever saw the password. don't use reset to keep the seen status
- db_set mysql-server/root_password ""
- tfile=`mktemp`
- if [ ! -f "$tfile" ]; then
- return 1
- fi
- # this avoids us having to call "test" or "[" on $rootpw
- cat << EOF > $tfile
- USE mysql;
- UPDATE user SET password=PASSWORD("$rootpw") WHERE user='root';
- FLUSH PRIVILEGES;
- EOF
- if grep -q 'PASSWORD("")' $tfile; then
- retval=0
- elif [ "$1" = "online" ]; then
- mysql --no-defaults -u root -h localhost <$tfile >/dev/null
- retval=$?
- else
- $MYSQL_BOOTSTRAP <$tfile
- retval=$?
- fi
- rm -f $tfile
- return $retval
- }
- # This is necessary because mysql_install_db removes the pid file in /var/run
- # and because changed configuration options should take effect immediately.
- # In case the server wasn't running at all it should be ok if the stop
- # script fails. I can't tell at this point because of the cleaned /var/run.
- set +e; invoke stop; set -e
- + set +e
- + invoke stop
- + '[' -x /usr/sbin/invoke-rc.d ']'
- + invoke-rc.d mysql stop
- * Stopping MySQL database server mysqld
- ...done.
- + set -e
- case "$1" in
- configure)
- mysql_cnf=/etc/mysql/my.cnf
- mysql_datadir=/usr/share/mysql
- mysql_statedir=/var/lib/mysql
- mysql_rundir=/var/run/mysqld
- mysql_logdir=/var/log
- mysql_cfgdir=/etc/mysql
- mysql_newlogdir=/var/log/mysql
- mysql_upgradedir=/var/lib/mysql-upgrade
- # first things first, if the following symlink exists, it is a preserved
- # copy the old data dir from a mysql upgrade that would have otherwise
- # been replaced by an empty mysql dir. this should restore it.
- for dir in DATADIR LOGDIR; do
- if [ "$dir" = "DATADIR" ]; then targetdir=$mysql_statedir; else targetdir=$mysql_newlogdir; fi
- savelink="$mysql_upgradedir/$dir.link"
- if [ -L "$savelink" ]; then
- # If the targetdir was a symlink before we upgraded it is supposed
- # to be either still be present or not existing anymore now.
- if [ -L "$targetdir" ]; then
- rm "$savelink"
- elif [ ! -d "$targetdir" ]; then
- mv "$savelink" "$targetdir"
- else
- # this should never even happen, but just in case...
- mysql_tmp=`mktemp -d -t mysql-symlink-restore-XXXXXX`
- echo "this is very strange! see $mysql_tmp/README..." >&2
- mv "$targetdir" "$mysql_tmp"
- cat << EOF > "$mysql_tmp/README"
- if you're reading this, it's most likely because you had replaced /var/lib/mysql
- with a symlink, then upgraded to a new version of mysql, and then dpkg
- removed your symlink (see #182747 and others). the mysql packages noticed
- that this happened, and as a workaround have restored it. however, because
- /var/lib/mysql seems to have been re-created in the meantime, and because
- we don't want to rm -rf something we don't know as much about, we're going
- to leave this unexpected directory here. if your database looks normal,
- and this is not a symlink to your database, you should be able to blow
- this all away.
- EOF
- fi
- fi
- rmdir $mysql_upgradedir 2>/dev/null || true
- done
- # Ensure the existence and right permissions for the database and
- # log files.
- if [ ! -d "$mysql_statedir" -a ! -L "$mysql_statedir" ]; then mkdir "$mysql_statedir"; fi
- if [ ! -d "$mysql_statedir/mysql" -a ! -L "$mysql_statedir/mysql" ]; then mkdir "$mysql_statedir/mysql"; fi
- if [ ! -d "$mysql_newlogdir" -a ! -L "$mysql_newlogdir" ]; then mkdir "$mysql_newlogdir"; fi
- # When creating an ext3 jounal on an already mounted filesystem like e.g.
- # /var/lib/mysql, you get a .journal file that is not modifyable by chown.
- # The mysql_datadir must not be writable by the mysql user under any
- # circumstances as it contains scripts that are executed by root.
- set +e
- chown -R 0.0 $mysql_datadir
- chown -R mysql $mysql_statedir
- chown -R mysql $mysql_rundir
- chown -R mysql:adm $mysql_newlogdir; chmod 2750 $mysql_newlogdir;
- for i in log err; do
- touch $mysql_logdir/mysql.$i
- chown mysql:adm $mysql_logdir/mysql.$i
- chmod 0640 $mysql_logdir/mysql.$i
- done
- set -e
- # This is important to avoid dataloss when there is a removed
- # mysql-server version from Woody lying around which used the same
- # data directory and then somewhen gets purged by the admin.
- db_set mysql-server/postrm_remove_database false || true
- # So that mysql-server (4.0) can check if it's safe to install.
- touch $mysql_statedir/debian-5.0.flag
- # On dist-upgrades, we ensure that the old_password setting is updated
- # before passwords are changed. Except for that my.cnf is taboo!
- db_get mysql-server-5.0/need_sarge_compat_done || true
- if [ "$RET" = "false" ]; then
- db_get mysql-server-5.0/need_sarge_compat
- echo -e "# created by debconf\n[mysqld]\nold_passwords = $RET" > /etc/mysql/conf.d/old_passwords.cnf
- fi
- db_set mysql-server-5.0/need_sarge_compat_done true
- # initiate databases. Output is not allowed by debconf :-(
- # Debian: beware of the bashisms...
- # Debian: can safely run on upgrades with existing databases
- set +e
- /bin/bash /usr/bin/mysql_install_db --rpm 2>&1 | $ERR_LOGGER
- if [ "$?" != "0" ]; then
- echo "ATTENTION: An error has occured. More info is in the syslog!"
- fi
- set -e
- ## On every reconfiguration the maintenance user is recreated.
- #
- # - It is easier to regenerate the password every time but as people
- # use fancy rsync scripts and file alteration monitors, the existing
- # password is used and existing files not touched.
- # - The mysqld statement is like that in mysql_install_db because the
- # server is not already running. This has some implications:
- # - The amount of newlines and semicolons in the query is important!
- # - GRANT is not possible with --skipt-grant-tables and "INSERT
- # (user,host..) VALUES" is not --ansi compliant
- # - The echo is just for readability. ash's buildin has no "-e" so use /bin/echo.
- # - The Super_priv, Show_db_priv, Create_tmp_table_priv and Lock_tables_priv
- # may not be present as old Woody 3.23 databases did not have it and the
- # admin might not already have run mysql_upgrade which adds them.
- # As the binlog cron scripts to need at least the Super_priv, I do first
- # the old query which always succeeds and then the new which may or may not.
- # recreate the credentials file if not present or without mysql_upgrade stanza
- dc=$mysql_cfgdir/debian.cnf;
- if [ -e "$dc" -a -n "`fgrep mysql_upgrade $dc 2>/dev/null`" ]; then
- pass="`sed -n 's/password *= *// p' $dc | head -n 1`"
- else
- pass=`perl -e 'print map{("a".."z","A".."Z",0..9)[int(rand(62))]}(1..16)'`;
- if [ ! -d "$mysql_cfgdir" ]; then install -o 0 -g 0 -m 0755 -d $mysql_cfgdir; fi
- cat /dev/null > $dc
- echo "# Automatically generated for Debian scripts. DO NOT TOUCH!" >>$dc
- echo "[client]" >>$dc
- echo "host = localhost" >>$dc
- echo "user = debian-sys-maint" >>$dc
- echo "password = $pass" >>$dc
- echo "socket = $mysql_rundir/mysqld.sock" >>$dc
- echo "[mysql_upgrade]" >>$dc
- echo "user = debian-sys-maint" >>$dc
- echo "password = $pass" >>$dc
- echo "socket = $mysql_rundir/mysqld.sock" >>$dc
- echo "basedir = /usr" >>$dc
- fi
- # If this dir chmod go+w then the admin did it. But this file should not.
- chown 0:0 $dc
- chmod 0600 $dc
- # update privilege and timezone tables
- password_column_fix_query=`/bin/echo -e \
- "USE mysql\n" \
- "ALTER TABLE user CHANGE password Password varchar(41) collate utf8_bin NOT NULL default ''"`;
- replace_query=`/bin/echo -e \
- "USE mysql\n" \
- "REPLACE INTO user SET " \
- " host='localhost', user='debian-sys-maint', password=password('$pass'), " \
- " Select_priv='Y', Insert_priv='Y', Update_priv='Y', Delete_priv='Y', " \
- " Create_priv='Y', Drop_priv='Y', Reload_priv='Y', Shutdown_priv='Y', " \
- " Process_priv='Y', File_priv='Y', Grant_priv='Y', References_priv='Y', " \
- " Index_priv='Y', Alter_priv='Y' __EXTRA_PRIVS__"`;
- extra_privs=`/bin/echo -e \
- ", Show_db_priv='Y' " \
- ", Super_priv='Y' " \
- ", Create_tmp_table_priv='Y' " \
- ", Lock_tables_priv='Y' " \
- ", Execute_priv='Y' " \
- ", Repl_slave_priv='Y' " \
- ", Repl_client_priv='Y' "`;
- # Upgrade password column format before the root password gets set.
- echo "$password_column_fix_query" | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
- db_get mysql-server/root_password && rootpw="$RET"
- if ! set_mysql_rootpw; then
- password_error="yes"
- fi
- echo "$replace_query" | sed "s/__EXTRA_PRIVS__//" | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
- set +e
- echo "$replace_query" | sed "s/__EXTRA_PRIVS__/$extra_privs/" | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
- set -e
- mysql_tzinfo_to_sql /usr/share/zoneinfo/ 2>&1 | egrep -v 'Skipping it.$' | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
- # The Sarge package "mysql-server" which used to include the mysqld daemon
- # may still be in unselected-configured state (i.e. after a remove but not
- # purge) in which case its now obsolete cronscript has to be moved away.
- for i in /etc/cron.daily/mysql-server /etc/cron.daily/mysql-server-41 /etc/mysql/debian-log-rotate.conf; do
- if [ -f $i ]; then mv $i $i.dpkg-old; fi
- done
- ;;
- abort-upgrade|abort-remove|abort-configure)
- ;;
- *)
- echo "postinst called with unknown argument '$1'" 1>&2
- exit 1
- ;;
- esac
- + case "$1" in
- + mysql_cnf=/etc/mysql/my.cnf
- + mysql_datadir=/usr/share/mysql
- + mysql_statedir=/var/lib/mysql
- + mysql_rundir=/var/run/mysqld
- + mysql_logdir=/var/log
- + mysql_cfgdir=/etc/mysql
- + mysql_newlogdir=/var/log/mysql
- + mysql_upgradedir=/var/lib/mysql-upgrade
- + for dir in DATADIR LOGDIR
- + '[' DATADIR = DATADIR ']'
- + targetdir=/var/lib/mysql
- + savelink=/var/lib/mysql-upgrade/DATADIR.link
- + '[' -L /var/lib/mysql-upgrade/DATADIR.link ']'
- + rmdir /var/lib/mysql-upgrade
- + true
- + for dir in DATADIR LOGDIR
- + '[' LOGDIR = DATADIR ']'
- + targetdir=/var/log/mysql
- + savelink=/var/lib/mysql-upgrade/LOGDIR.link
- + '[' -L /var/lib/mysql-upgrade/LOGDIR.link ']'
- + rmdir /var/lib/mysql-upgrade
- + true
- + '[' '!' -d /var/lib/mysql -a '!' -L /var/lib/mysql ']'
- + '[' '!' -d /var/lib/mysql/mysql -a '!' -L /var/lib/mysql/mysql ']'
- + '[' '!' -d /var/log/mysql -a '!' -L /var/log/mysql ']'
- + set +e
- + chown -R 0.0 /usr/share/mysql
- + chown -R mysql /var/lib/mysql
- + chown -R mysql /var/run/mysqld
- + chown -R mysql:adm /var/log/mysql
- + chmod 2750 /var/log/mysql
- + for i in log err
- + touch /var/log/mysql.log
- + chown mysql:adm /var/log/mysql.log
- + chmod 0640 /var/log/mysql.log
- + for i in log err
- + touch /var/log/mysql.err
- + chown mysql:adm /var/log/mysql.err
- + chmod 0640 /var/log/mysql.err
- + set -e
- + db_set mysql-server/postrm_remove_database false
- + _db_cmd 'SET mysql-server/postrm_remove_database' false
- + IFS=' '
- + printf '%s\n' 'SET mysql-server/postrm_remove_database false'
- + IFS='
- '
- + read -r _db_internal_line
- + RET='10 mysql-server/postrm_remove_database doesn'\''t exist'
- + case ${_db_internal_line%%[ ]*} in
- + return 10
- + true
- + touch /var/lib/mysql/debian-5.0.flag
- + db_get mysql-server-5.0/need_sarge_compat_done
- + _db_cmd 'GET mysql-server-5.0/need_sarge_compat_done'
- + IFS=' '
- + printf '%s\n' 'GET mysql-server-5.0/need_sarge_compat_done'
- + IFS='
- '
- + read -r _db_internal_line
- + RET=true
- + case ${_db_internal_line%%[ ]*} in
- + return 0
- + '[' true = false ']'
- + db_set mysql-server-5.0/need_sarge_compat_done true
- + _db_cmd 'SET mysql-server-5.0/need_sarge_compat_done' true
- + IFS=' '
- + printf '%s\n' 'SET mysql-server-5.0/need_sarge_compat_done true'
- + IFS='
- '
- + read -r _db_internal_line
- + RET='value set'
- + case ${_db_internal_line%%[ ]*} in
- + return 0
- + set +e
- + /bin/bash /usr/bin/mysql_install_db --rpm
- + logger -p daemon.err -t mysqld_safe -i
- + '[' 0 '!=' 0 ']'
- + set -e
- + dc=/etc/mysql/debian.cnf
- fgrep mysql_upgrade $dc 2>/dev/null
- ++ fgrep mysql_upgrade /etc/mysql/debian.cnf
- + '[' -e /etc/mysql/debian.cnf -a -n '[mysql_upgrade]' ']'
- sed -n 's/password *= *// p' $dc | head -n 1
- ++ sed -n 's/password *= *// p' /etc/mysql/debian.cnf
- ++ head -n 1
- + pass=MNM28tHZWURQCvfs
- + chown 0:0 /etc/mysql/debian.cnf
- + chmod 0600 /etc/mysql/debian.cnf
- /bin/echo -e "USE mysql\n" "ALTER TABLE user CHANGE password Password varchar(41) collate utf8_bin NOT NULL default ''"
- ++ /bin/echo -e 'USE mysql\n' 'ALTER TABLE user CHANGE password Password varchar(41) collate utf8_bin NOT NULL default '\'''\'''
- + password_column_fix_query='USE mysql
- ALTER TABLE user CHANGE password Password varchar(41) collate utf8_bin NOT NULL default '\'''\'''
- /bin/echo -e "USE mysql\n" "REPLACE INTO user SET " " host='localhost', user='debian-sys-maint', password=password('$pass'), " " Select_priv='Y', Insert_priv='Y', Update_priv='Y', Delete_priv='Y', " " Create_priv='Y', Drop_priv='Y', Reload_priv='Y', Shutdown_priv='Y', " " Process_priv='Y', File_priv='Y', Grant_priv='Y', References_priv='Y', " " Index_priv='Y', Alter_priv='Y' __EXTRA_PRIVS__"
- ++ /bin/echo -e 'USE mysql\n' 'REPLACE INTO user SET ' ' host='\''localhost'\'', user='\''debian-sys-maint'\'', password=password('\''MNM28tHZWURQCvfs'\''), ' ' Select_priv='\''Y'\'', Insert_priv='\''Y'\'', Update_priv='\''Y'\'', Delete_priv='\''Y'\'', ' ' Create_priv='\''Y'\'', Drop_priv='\''Y'\'', Reload_priv='\''Y'\'', Shutdown_priv='\''Y'\'', ' ' Process_priv='\''Y'\'', File_priv='\''Y'\'', Grant_priv='\''Y'\'', References_priv='\''Y'\'', ' ' Index_priv='\''Y'\'', Alter_priv='\''Y'\'' __EXTRA_PRIVS__'
- + replace_query='USE mysql
- REPLACE INTO user SET host='\''localhost'\'', user='\''debian-sys-maint'\'', password=password('\''MNM28tHZWURQCvfs'\''), Select_priv='\''Y'\'', Insert_priv='\''Y'\'', Update_priv='\''Y'\'', Delete_priv='\''Y'\'', Create_priv='\''Y'\'', Drop_priv='\''Y'\'', Reload_priv='\''Y'\'', Shutdown_priv='\''Y'\'', Process_priv='\''Y'\'', File_priv='\''Y'\'', Grant_priv='\''Y'\'', References_priv='\''Y'\'', Index_priv='\''Y'\'', Alter_priv='\''Y'\'' __EXTRA_PRIVS__'
- /bin/echo -e ", Show_db_priv='Y' " ", Super_priv='Y' " ", Create_tmp_table_priv='Y' " ", Lock_tables_priv='Y' " ", Execute_priv='Y' " ", Repl_slave_priv='Y' " ", Repl_client_priv='Y' "
- ++ /bin/echo -e ', Show_db_priv='\''Y'\'' ' ', Super_priv='\''Y'\'' ' ', Create_tmp_table_priv='\''Y'\'' ' ', Lock_tables_priv='\''Y'\'' ' ', Execute_priv='\''Y'\'' ' ', Repl_slave_priv='\''Y'\'' ' ', Repl_client_priv='\''Y'\'' '
- + extra_privs=', Show_db_priv='\''Y'\'' , Super_priv='\''Y'\'' , Create_tmp_table_priv='\''Y'\'' , Lock_tables_priv='\''Y'\'' , Execute_priv='\''Y'\'' , Repl_slave_priv='\''Y'\'' , Repl_client_priv='\''Y'\'' '
- + echo 'USE mysql
- ALTER TABLE user CHANGE password Password varchar(41) collate utf8_bin NOT NULL default '\'''\'''
- + /usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --skip-bdb --skip-innodb
- + logger -p daemon.err -t mysqld_safe -i
- + db_get mysql-server/root_password
- + _db_cmd 'GET mysql-server/root_password'
- + IFS=' '
- + printf '%s\n' 'GET mysql-server/root_password'
- + IFS='
- '
- + read -r _db_internal_line
- + RET=
- + case ${_db_internal_line%%[ ]*} in
- + return 0
- + rootpw=
- + set_mysql_rootpw
- + db_set mysql-server/root_password ''
- + _db_cmd 'SET mysql-server/root_password' ''
- + IFS=' '
- + printf '%s\n' 'SET mysql-server/root_password '
- + IFS='
- '
- + read -r _db_internal_line
- + RET='value set'
- + case ${_db_internal_line%%[ ]*} in
- + return 0
- mktemp
- ++ mktemp
- + tfile=/tmp/tmp.zVCtyM9269
- + '[' '!' -f /tmp/tmp.zVCtyM9269 ']'
- + cat
- + grep -q 'PASSWORD("")' /tmp/tmp.zVCtyM9269
- + retval=0
- + rm -f /tmp/tmp.zVCtyM9269
- + return 0
- + echo 'USE mysql
- REPLACE INTO user SET host='\''localhost'\'', user='\''debian-sys-maint'\'', password=password('\''MNM28tHZWURQCvfs'\''), Select_priv='\''Y'\'', Insert_priv='\''Y'\'', Update_priv='\''Y'\'', Delete_priv='\''Y'\'', Create_priv='\''Y'\'', Drop_priv='\''Y'\'', Reload_priv='\''Y'\'', Shutdown_priv='\''Y'\'', Process_priv='\''Y'\'', File_priv='\''Y'\'', Grant_priv='\''Y'\'', References_priv='\''Y'\'', Index_priv='\''Y'\'', Alter_priv='\''Y'\'' __EXTRA_PRIVS__'
- + sed s/__EXTRA_PRIVS__//
- + /usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --skip-bdb --skip-innodb
- + logger -p daemon.err -t mysqld_safe -i
- + set +e
- + echo 'USE mysql
- REPLACE INTO user SET host='\''localhost'\'', user='\''debian-sys-maint'\'', password=password('\''MNM28tHZWURQCvfs'\''), Select_priv='\''Y'\'', Insert_priv='\''Y'\'', Update_priv='\''Y'\'', Delete_priv='\''Y'\'', Create_priv='\''Y'\'', Drop_priv='\''Y'\'', Reload_priv='\''Y'\'', Shutdown_priv='\''Y'\'', Process_priv='\''Y'\'', File_priv='\''Y'\'', Grant_priv='\''Y'\'', References_priv='\''Y'\'', Index_priv='\''Y'\'', Alter_priv='\''Y'\'' __EXTRA_PRIVS__'
- + sed 's/__EXTRA_PRIVS__/, Show_db_priv='\''Y'\'' , Super_priv='\''Y'\'' , Create_tmp_table_priv='\''Y'\'' , Lock_tables_priv='\''Y'\'' , Execute_priv='\''Y'\'' , Repl_slave_priv='\''Y'\'' , Repl_client_priv='\''Y'\'' /'
- + /usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --skip-bdb --skip-innodb
- + logger -p daemon.err -t mysqld_safe -i
- + set -e
- + mysql_tzinfo_to_sql /usr/share/zoneinfo/
- + egrep -v 'Skipping it.$'
- + /usr/sbin/mysqld --bootstrap --user=mysql --skip-grant-tables --skip-bdb --skip-innodb
- + logger -p daemon.err -t mysqld_safe -i
- + for i in /etc/cron.daily/mysql-server /etc/cron.daily/mysql-server-41 /etc/mysql/debian-log-rotate.conf
- + '[' -f /etc/cron.daily/mysql-server ']'
- + for i in /etc/cron.daily/mysql-server /etc/cron.daily/mysql-server-41 /etc/mysql/debian-log-rotate.conf
- + '[' -f /etc/cron.daily/mysql-server-41 ']'
- + for i in /etc/cron.daily/mysql-server /etc/cron.daily/mysql-server-41 /etc/mysql/debian-log-rotate.conf
- + '[' -f /etc/mysql/debian-log-rotate.conf ']'
- # Automatically added by dh_installinit
- if [ -x "/etc/init.d/mysql-ndb-mgm" ]; then
- update-rc.d mysql-ndb-mgm defaults 17 23 >/dev/null || exit $?
- fi
- + '[' -x /etc/init.d/mysql-ndb-mgm ']'
- + update-rc.d mysql-ndb-mgm defaults 17 23
- # End automatically added section
- # Automatically added by dh_installinit
- if [ -x "/etc/init.d/mysql-ndb" ]; then
- update-rc.d mysql-ndb defaults 18 22 >/dev/null || exit $?
- fi
- + '[' -x /etc/init.d/mysql-ndb ']'
- + update-rc.d mysql-ndb defaults 18 22
- # End automatically added section
- # Automatically added by dh_installinit
- if [ -x "/etc/init.d/mysql" ]; then
- update-rc.d mysql defaults 19 21 >/dev/null
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d mysql start || exit $?
- else
- /etc/init.d/mysql start || exit $?
- fi
- fi
- + '[' -x /etc/init.d/mysql ']'
- + update-rc.d mysql defaults 19 21
- which invoke-rc.d 2>/dev/null
- ++ which invoke-rc.d
- + '[' -x /usr/sbin/invoke-rc.d ']'
- + invoke-rc.d mysql start
- * Starting MySQL database server mysqld
- ...fail!
- invoke-rc.d: initscript mysql, action "start" failed.
- + exit 1
- dpkg: error processing mysql-server-5.0 (--configure):
- subprocess post-installation script returned error exit status 1
- dpkg: dependency problems prevent configuration of mysql-server:
- mysql-server depends on mysql-server-5.0; however:
- Package mysql-server-5.0 is not configured yet.
- dpkg: error processing mysql-server (--configure):
- dependency problems - leaving unconfigured
- Errors were encountered while processing:
- mysql-server-5.0
- mysql-server
- E: Sub-process /usr/bin/dpkg returned an error code (1)
Add Comment
Please, Sign In to add comment