On 2016-11-06.22:48, Pirate Praveen wrote:
> With the recent upload of mysql-server 5.7, mysql_install_db is
> deprecated, we are supposed to use mysqld --initialize.
>
> I tried replacing mysql_init_db with /usr/sbin/mysqld --initialize, but
> the options are not a one to one map. Can anyone help with this?
>
This patch seems to get it building (--no-defaults has to be the first
argument):
diff --git a/debian/start_mysqld_and_auto_install.sh b/debian/start_mysqld_and_auto_install.sh
index 93e5ff5..7090746 100755
--- a/debian/start_mysqld_and_auto_install.sh
+++ b/debian/start_mysqld_and_auto_install.sh
@@ -17,7 +17,7 @@ DO_MYSQL_PASS=
DO_MYSQL_DBNAME=carrierwave_test
DO_MYSQL_DATABASE=/${DO_MYSQL_DBNAME}
-mysql_install_db --no-defaults --datadir=${MYTEMP_DIR} --force --skip-name-resolve --user=${DO_MYSQL_USER}
+/usr/sbin/mysqld --no-defaults --initialize-insecure --datadir=${MYTEMP_DIR} --skip-name-resolve --user=${DO_MYSQL_USER}
/usr/sbin/mysqld --no-defaults --user=${DO_MYSQL_USER} --socket=${MYSQL_UNIX_PORT} --datadir=${MYTEMP_DIR} --skip-networking &
echo -n pinging mysqld.
attempts=0
But then lintian says:
E: ruby-carrierwave source: build-depends-on-obsolete-package build-depends: mysql-server => default-mysql-server
I have no idea if that's the right solution for this package, and I
couldn't get it building with default-mysql-server (which now pulls in
mariadb-server-10.0)
--
Regards,
Scott.
Attachment:
signature.asc
Description: Digital signature