On Thu, Nov 25, 2004 at 10:42:13AM +0100, Marco Nenciarini wrote:
> I reported same problem installing phpbb2-conf-mysql
> I tried to remove the whole package and mysql and reinstall it, with no
> success.
> The db was created, but it remains empty.
>
> I've attached the output of postinst called with "sh -x", and the dump of db
> (empty).
Thanks
> If you need other infos please tell me.
What shell do you use? Can you do a 'ls -l /bin/sh'?
Reading the last few lines of your log, which are for the record:
| + which mysql
| + [ -z /usr/bin/mysql ]
| + eval mysql --password='qMMMfumtUgwQ' -u phpbb2
| + eval mysql --password='qMMMfumtUgwQ' -u phpbb2 -f phpbb2 -e "SELECT * FROM
phpbb_config"
| dpkg: errore processando phpbb2-conf-mysql (--configure):
| il sottoprocesso post-installation script ha restituito un codice di
| errore 1
(I hope that mysql root password was a temp one)
I have trouble understanding why this is the end of the postinst,
considering that in /usr/share/wwwconfig-common/mysql-ifnot-exec.sh,
which is where this code is, the following fragment of code corresponds
to this:
| elif [ -z $(which mysql) ] ; then
| error="No mysql client to execute, install the mysql client package and
| run 'dpkg-reconfigure -plow packagename'."
| elif ! eval $mysqlcmd </dev/null >/dev/null 2>&1 ; then
| error="Error when trying to connect to the mysql database.
| This error can occur if you have no database to connect to, or
| if the password was incorrect.
| use: dpkg-reconfigure -plow packagename to reconfigure."
| elif ! eval $mysqlcmd -f $dbname -e "\"$statement\"" >/dev/null 2>&1 ; then
| log="${log}Executing command to mysql."
| (...)
| else
| status=nothing
| fi
This should, even though set -e is enabled, NOT result in abortion of shell
execution.
--Jeroen
--
Jeroen van Wolffelaar
[EMAIL PROTECTED]
http://jeroen.A-Eskwadraat.nl
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]