Git view local branch
                            

git branch

class:Git views:146

Git clone remote repository, rename
                            

git clone https://github.com/cmdhelp/test test_react

class:Git views:118

Mysql create table
                            

use db_name; CREATE TABLE `tb`( `id` INT UNSIGNED AUTO_INCREMENT, `title` VARCHAR(100) NOT NULL, `author` VARCHAR(40) NOT NULL, `date` DATE, PRIMARY KEY ( `id` ) )ENGINE=InnoDB DEFAULT CHARSET=utf8;

class:Mysql views:105

MongoDB batch modify values
                            

db.getCollection('rule').update({"key":".$"},{$set:{"key":"\\\\.$"}},false, true)

class:MongoDB views:126

Linux searches for files ending in'.d'
                            

find /lib/dracut/ -name \*.d

class:Linux views:109

MongoDB deletes a field in the table
                            

db.cninfo2006.update({"fieldname":{$exists: true} },{$unset:{"fieldname":1}},false,true);

class:MongoDB views:106

Mysql delete database and delete table
                            

drop database db_name; drop table table_name;

class:Mysql views:96

Linux delete empty directories
                            

rmdir -pv /root/newdir2/newdir3

class:Linux views:103

Linux move files or folders
                            

mv -f -v test.zip test

class:Linux views:111

Mysql data table rename
                            

alter table tb rename tb1;

class:Mysql views:108

Linux switch directory
                            

cd /home

class:Linux views:105

MongoDB queries data for a field that is not empty
                            

db.neeq2008.find({"name":{"$ne":null}})

class:MongoDB views:101

Mysql export a table
                            

mysqldump -h localhost -u root -p mydb mytable>e:\MySQL\mytable.sql

class:Mysql views:83

MongoDB adds default values in batches
                            

db.neeq2006.update({}, {$set:{"name":""}}, false, true)

class:MongoDB views:90

Mysql delete a column
                            

ALTER TABLE tb1 DROP COLUMN title;

class:Mysql views:93

docker set mongo memory
                            

docker run -d --name company-mongo -p 28018:27017 --restart=on-failure:3 -v /home/docker/mongo/db:/data/db --privileged=true mongo --wiredTigerCacheSizeGB 25

class:Docker views:103

Docker view container log
                            

docker logs -f --tail=100 containerName/containerId

class:Docker views:93

This platform is gradually under construction, more development orders are gradually included, any questions or Suggestions can be Contact Us