Amélioration phpmyadmin

This commit is contained in:
Michael RICOIS 2016-01-15 11:04:29 +01:00
parent 7b12e913ab
commit 41299bc617
2 changed files with 2 additions and 3 deletions

View File

@ -120,8 +120,8 @@ then
if [ -f "/home/vagrant/$PHPMYADMIN_DIR.tar.xz" ] if [ -f "/home/vagrant/$PHPMYADMIN_DIR.tar.xz" ]
then then
tar xJvf "/home/vagrant/$PHPMYADMIN_DIR.tar.xz" --directory /home/vhosts/ tar xJvf "/home/vagrant/$PHPMYADMIN_DIR.tar.xz" --directory /home/vhosts/
mysql -hlocalhost -uroot -p$MYSQL_PASS < $DIRDATA/Apps/phpmyadmin.sql
mysql -hlocalhost -uroot -p$MYSQL_PASS < /home/vhosts/$PHPMYADMIN_DIR/sql/create_tables.sql mysql -hlocalhost -uroot -p$MYSQL_PASS < /home/vhosts/$PHPMYADMIN_DIR/sql/create_tables.sql
mysql -hlocalhost -uroot -p$MYSQL_PASS < $DIRDATA/Apps/phpmyadmin.sql
sudo service mysql restart sudo service mysql restart
cp $DIRDATA/Apps/config.inc.php /home/vhosts/$PHPMYADMIN_DIR/ cp $DIRDATA/Apps/config.inc.php /home/vhosts/$PHPMYADMIN_DIR/
chmod 0444 /home/vhosts/$PHPMYADMIN_DIR/config.inc.php chmod 0444 /home/vhosts/$PHPMYADMIN_DIR/config.inc.php

View File

@ -1,2 +1 @@
CREATE DATABASE IF NOT EXISTS `phpmyadmin` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; GRANT SELECT, INSERT, DELETE, UPDATE, ALTER ON phpmyadmin.* TO 'pma'@'%' IDENTIFIED BY 'pmapass';
GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO 'pma'@'%' IDENTIFIED BY 'pmapass';