Generate MySQL database and user SQL queries generator
git clone git@github.com:podlom/generate-mysql-db-access.git
cd generate-mysql-db-access
composer install
PHP command line interface usage examples:
php mysql.php -pDbNamePrefix[ -hlocalhost][ -t1]
-pDbNamePrefix db and user names prefix
-hlocalhost (optional) db host name
-t1 (optioal) setup additional _test database
Build-in PHP web server example usage:
php -S localhost:8000
make user TCP port 8000 is free or use any other available port. Then open http://localhost:8000 to generate MySQL access information. It will serve index.php in the generate-mysql-db-access directory.
-
Clone your git repository source to a src folder using command below:
git clone git@github.com:podlom/generate-mysql-db-access.git ./src
-
Copy Dockerfile using command:
cp -fvp ./src/Dockerfile ./
-
Build docker image using command:
docker build -t generate-mysql-access-docker .
-
Run docker image using:
docker run -p 80:80 generate-mysql-access-docker
-
Open the app in your favorite browser by visiting URL: http://localhost/