Posts

Showing posts from February, 2024

drupal config aws full (ft error)

  Install Apache (WebServer): sudo apt-get update sudo apt-get install apache2 sudo nano /etc/apache2/apache2.conf Change 'server_domain_or_IP' to 'localhost:80' on this line: ServerName server_domain_or_IP Download Drupal (Code): https://www.drupal.org/download Put it in a directory of your choosing. Link Apache to Drupal sudo nano /etc/apache2/sites-enabled/000-default.conf Change to the directory you downloaded Drupal to Start Apache: sudo service apache2 start Install MySQL (Database) sudo apt-get install mysql-server Create a new Database: Login into MySQL CREATE DATABASE example; or  to import database   A common use of   mysqldump   is for making a backup of an entire database: mysqldump db_name > backup-file.sql You can load the dump file back into the server like this: Unix mysql db_name < backup-file.sql Install PHP (Coding language) sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql php-xml if stuck at database to input do the foll...

Save and backup database using linux with mysql commands

  A common use of   mysqldump   is for making a backup of an entire database: mysqldump db_name > backup-file.sql You can load the dump file back into the server like this: Unix mysql db_name < backup-file.sql Use the command 'SHOW DATABASES;' in the mysql-console like in the example above. Now copy the name of the database you want to delete.  To do delete a database you need the command 'DROP DATABASE' .