Database project - IMDb Clone
- Download x64 Thread Safe zip from windows.php.net.
- Unzip to
C:\Program Files\PHP. - Rename
php.ini-developmenttophp.ini. - Edit
php.inito uncomment:extension_dir = "ext"extension=mysqli
- PHP is no longer pre-installed on macOS Monterey and later. Install via Homebrew:
brew install php. - The configuration file is typically located at
/usr/local/etc/php/8.x/php.ini(Intel) or/opt/homebrew/etc/php/8.x/php.ini(Apple Silicon). - Ensure the
mysqliextension is enabled in the configuration. - Verify installation by running
php -vin the terminal.
- Install MySQL Community Server and MySQL Workbench.
- Execute the script in
/sql/schema.sql(coming soon) to initialize the database. - Create a user matching the schema name.
- Grant
SELECT, INSERT, UPDATE, DELETEpermissions to that user.
- Open the project.
- Navigate to File > Settings (Windows) or PhpStorm > Settings (macOS).
- Go to Languages & Frameworks > PHP.
- Set the CLI Interpreter to the path of your
phpexecutable.
/sql: Database schema scripts and ERD exports./data: Source CSV files for ETL operations.
Import the data in this order
- User-production-language data
- Movie-genre-soundtrack data
- Show-episode-person data
CSVs are available in the data folder and also on the shared drive: CSVS