Skip to content

Tag: database

Shell Script : MongoDB Dump

I’m creating a shell script to automatically dump the database. I have the current code below. The problem is when I’m opening the zip file it shows a single binary file. Usually, when I dump manually it consists of bson and json files. I don’t know what I’m doing wrong I’m expec…

MySQL Alter Table DB Freezes

I’m using Ubuntu 16.04.3 and mysql Ver 14.14 Distrib 5.7.22. When I try to alter my db table column with the following command the database appears to freeze; mysql> alter table records modify column name varchar(150); Table size is 2.8MiB (6,000 records). I’m simply trying to change the varcha…