Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iparamr/sheridan-gallery-php-mysql
PHP MySQL, class project, Sheridan College 2007
https://github.com/iparamr/sheridan-gallery-php-mysql
css docker html mysql php php8 sheridan-college sql
Last synced: about 2 months ago
JSON representation
PHP MySQL, class project, Sheridan College 2007
- Host: GitHub
- URL: https://github.com/iparamr/sheridan-gallery-php-mysql
- Owner: iparamr
- Created: 2024-07-30T08:12:18.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-01T02:29:59.000Z (5 months ago)
- Last Synced: 2024-08-01T12:11:37.990Z (5 months ago)
- Topics: css, docker, html, mysql, php, php8, sheridan-college, sql
- Language: PHP
- Homepage:
- Size: 5.52 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Art Gallery
Sheridan College Class Project, 2007 `Application Development` `Semester 1`
```
**********************************************************
**********************************************************
****** Param Randhawa ******
****** Application Development: Project ******
****** December 7, 2007 ******
**********************************************************
**********************************************************
```
```
Student: Param Randhawa
For: Ian Wood and Andrew Smyk
Date: December 7, 2007
-----------------------------------------------------
```- The PHP project is in this repo and I have made a backup of the database in art_gallery.sql
- The project can be viewed at http://oa-s139-07.sheridanc.on.ca/myProj/index.html- For the admin section of the site you will have to use the Username: admin, Password: sheridan
## Prerequisties:
- Docker
- MySQL
- phpMyAdmin## MYSQL:
MySQL is an open-source relational database management system.## PhpMyAdmin:
phpMyAdmin is a free and open source administration tool for MySQL and MariaDB.
As a portable web application written primarily in PHP## Pull MySQL Docker image
```
docker pull mysql:lts
```
```
docker run --name dev-mysql -e MYSQL_ROOT_PASSWORD=dev123 -d mysql:lts
```
## After MySQL server is running let us pull the phpMyAdmin image and create the container```
docker pull phpmyadmin/phpmyadmin:latest
```
```
docker run --name dev-phpmyadmin -d --link dev-mysql:db -p 8081:80 phpmyadmin/phpmyadmin:latest
```## Access phpMyAdmin http://localhost:8081/
- user: root
- pass: dev123## Create database within phpMyAdmin
- create database names art_gallery
- import data dump## Copy art-gallery php project files to the container
```
docker cp art-gallery/. dev-phpmyadmin:/var/www/html/art-gallery/
```## Get MySQL server IP Address to setup DB connection within PHP application
```
docker inspect dev-mysql | grep IPAddress
```## Access using CLI
```
docker exec -it dev-mysql bashmysql -u root -p
select now();
select current_timestamp();
select current_date,curdate(),current_date();
```