1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00
phpmyadmin_ynh/conf/create_db.sql

28 lines
1 KiB
MySQL
Raw Normal View History

2014-01-14 22:57:44 +01:00
-- --------------------------------------------------------
-- SQL Commands to set up the pmadb as described in the documentation.
--
-- This file is meant for use with MySQL 5 and above!
--
-- This script expects the user pma to already be existing. If we would put a
-- line here to create him too many users might just use this script and end
-- up with having the same password for the controluser.
--
-- This user "pma" must be defined in config.inc.php (controluser/controlpass)
--
-- Please don't forget to set up the tablenames in config.inc.php
--
-- --------------------------------------------------------
2017-02-15 00:52:49 +01:00
DROP DATABASE `YNH_PMA_USER`;
2014-01-14 22:57:44 +01:00
--
2017-02-15 00:52:49 +01:00
-- Database : `YNH_PMA_USER`
2014-01-14 22:57:44 +01:00
--
2017-02-15 00:52:49 +01:00
CREATE DATABASE IF NOT EXISTS `YNH_PMA_USER`
2014-01-14 22:57:44 +01:00
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
2017-02-15 00:52:49 +01:00
USE YNH_PMA_USER;
2014-01-14 22:57:44 +01:00
2017-02-15 00:52:49 +01:00
GRANT SELECT, INSERT, DELETE, UPDATE ON `YNH_PMA_USER`.* TO
2014-01-14 22:57:44 +01:00
'YNH_PMA_USER'@localhost;