Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 491348
Collapse All | Expand All

(-)/usr/portage/dev-db/mysql-init-scripts/files/mysql-5.1.67-init.d (-2 / +9 lines)
Lines 59-66 Link Here
59
	fi
59
	fi
60
60
61
	if [ ! -d "${datadir}"/mysql ] ; then
61
	if [ ! -d "${datadir}"/mysql ] ; then
62
		eerror "You don't appear to have the mysql database installed yet."
62
		# find which package is installed to report an error
63
		eerror "Please run /usr/bin/mysql_install_db to have this done..."
63
		local EROOT=$(portageq envvar EROOT)
64
		local DBPKG_P=$(portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql))
65
		if [[ -z ${DBPKG_P} ]] ; then
66
			eerror "You don't appear to have a server package installed yet."
67
		else
68
			eerror "You don't appear to have the mysql database installed yet."
69
			eerror "Please run \`emerge --config =${DBPKG_P}\` to have this done..."
70
		fi
64
		return 1
71
		return 1
65
	fi
72
	fi
66
73

Return to bug 491348