Skip to content

Harbaz-Ahmed/PFE-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carrental-docker-mysql-php

$ docker-compose up -d $ docker-compose ps

Activate apache2 config site

$ docker exec -ti carrental bash $ cd /etc/apache2/sites-available $ a2dissite default.conf && a2ensite carrental.conf $ service apache2 reload

Change db connexion /includes/config.php

Create a user for Mysql 'carrentaluser' // The default MySQL installation only creates the root administrative account, which has

unlimited privileges on the database server. In general, it’s better to avoid using the root administrative account when interacting with the database. Instead, let’s create a dedicated database user for our application’s Laravel database. $ docker exec -ti carrental-db bash $ mysql -uroot -p mysql> show databases; mysql> GRANT ALL ON carrental.* TO 'carrentaluser'@'%' IDENTIFIED BY 'carrental123'; mysql> FLUSH PRIVILEGES; // Flush the privileges to notify the MySQL server of the changes mysql > exit;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •