Amélioration phpmyadmin
This commit is contained in:
parent
7b12e913ab
commit
41299bc617
@ -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
|
||||||
|
@ -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';
|
|
Loading…
Reference in New Issue
Block a user