mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Renamed Database roles
This commit is contained in:
		| @@ -14,7 +14,7 @@ The following environment variables need to be defined for successful operation: | ||||
|  | ||||
| To completely reset Friendica, including its database and volumes, run: | ||||
| ```bash | ||||
| docker exec -i {{applications['rdbms-mariadb'].hostname }} mariadb -u root -p"${DB_ROOT_PASSWORD}" -e "DROP DATABASE IF EXISTS friendica; CREATE DATABASE friendica;" | ||||
| docker exec -i {{applications['mariadb'].hostname }} mariadb -u root -p"${DB_ROOT_PASSWORD}" -e "DROP DATABASE IF EXISTS friendica; CREATE DATABASE friendica;" | ||||
| docker compose down | ||||
| rm -rv /mnt/hdd/data/docker/volumes/friendica_data | ||||
| docker volume rm friendica_data | ||||
| @@ -25,7 +25,7 @@ docker volume rm friendica_data | ||||
| ## Manual Method: | ||||
| 1. Connect to the MariaDB instance: | ||||
|    ```bash | ||||
|    docker exec -it {{applications['rdbms-mariadb'].hostname }} mariadb -u root -p | ||||
|    docker exec -it {{applications['mariadb'].hostname }} mariadb -u root -p | ||||
|    ``` | ||||
| 2. Run the following commands: | ||||
|    ```sql | ||||
| @@ -37,7 +37,7 @@ docker volume rm friendica_data | ||||
| ## Automatic Method: | ||||
| ```bash | ||||
| DB_ROOT_PASSWORD="your_root_password" | ||||
| docker exec -i {{applications['rdbms-mariadb'].hostname }} mariadb -u root -p"${DB_ROOT_PASSWORD}" -e "DROP DATABASE IF EXISTS friendica; CREATE DATABASE friendica;" | ||||
| docker exec -i {{applications['mariadb'].hostname }} mariadb -u root -p"${DB_ROOT_PASSWORD}" -e "DROP DATABASE IF EXISTS friendica; CREATE DATABASE friendica;" | ||||
| ``` | ||||
|  | ||||
| ## Enter the Application Container 🔍 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user