/[gentoo-x86]/eclass/mysql.eclass
Gentoo

Diff of /eclass/mysql.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.182 Revision 1.183
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.182 2015/05/01 12:34:31 grknight Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/mysql.eclass,v 1.183 2015/05/24 04:35:49 vapier Exp $
4 4
5# @ECLASS: mysql.eclass 5# @ECLASS: mysql.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# MySQL Team <mysql-bugs@gentoo.org> 7# MySQL Team <mysql-bugs@gentoo.org>
8# Luca Longinotti <chtekk@gentoo.org> 8# Luca Longinotti <chtekk@gentoo.org>
1459 if [[ -r "${help_tables}" ]] ; then 1459 if [[ -r "${help_tables}" ]] ; then
1460 cat "${help_tables}" >> "${sqltmp}" 1460 cat "${help_tables}" >> "${sqltmp}"
1461 fi 1461 fi
1462 fi 1462 fi
1463 1463
1464 einfo "Creating the mysql database and setting proper" 1464 einfo "Creating the mysql database and setting proper permissions on it ..."
1465 einfo "permissions on it ..."
1466 1465
1467 local socket="${EROOT}/var/run/mysqld/mysqld${RANDOM}.sock" 1466 local socket="${EROOT}/var/run/mysqld/mysqld${RANDOM}.sock"
1468 local pidfile="${EROOT}/var/run/mysqld/mysqld${RANDOM}.pid" 1467 local pidfile="${EROOT}/var/run/mysqld/mysqld${RANDOM}.pid"
1469 local mysqld="${EROOT}/usr/sbin/mysqld \ 1468 local mysqld="${EROOT}/usr/sbin/mysqld \
1470 ${options} \ 1469 ${options} \
1500 --socket=${socket} \ 1499 --socket=${socket} \
1501 -hlocalhost \ 1500 -hlocalhost \
1502 -e "${sql}" 1501 -e "${sql}"
1503 eend $? 1502 eend $?
1504 1503
1505 ebegin "Loading \"zoneinfo\", this step may require a few seconds ..." 1504 ebegin "Loading \"zoneinfo\", this step may require a few seconds"
1506 "${EROOT}/usr/bin/mysql" \ 1505 "${EROOT}/usr/bin/mysql" \
1507 --socket=${socket} \ 1506 --socket=${socket} \
1508 -hlocalhost \ 1507 -hlocalhost \
1509 -uroot \ 1508 -uroot \
1510 --password="${MYSQL_ROOT_PASSWORD}" \ 1509 --password="${MYSQL_ROOT_PASSWORD}" \

Legend:
Removed from v.1.182  
changed lines
  Added in v.1.183

  ViewVC Help
Powered by ViewVC 1.1.20