Docker Commands

MySQL docker > docker run –name docker-mysql -v /var/lib/mysql-lively-data:/var/lib/mysql -e MYSQL_ROOT_HOST=% -e MYSQL_ROOT_PASSWORD=oplink456 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -d -p:3306:3306 –net livelyhealth –restart always mysql:8 –default-authentication-plugin=mysql_native_password >

Read More »

Linux search

Search file by name find . -iname “*abc.txt” Search ‘text’ in any file grep -rnw “/path/to/somewhere/” -e “pattern” -r or -R is recursive, -n is line number, and

Read More »

Criteria Query with Join

Using Join with Criteria queries insert into course(id, name, created_date, last_updated_date) values(10001, ‘JPA in 5 Steps’, LOCALTIMESTAMP, LOCALTIMESTAMP); insert into course(id, name, created_date, last_updated_date)

Read More »

Criteria Queries

Use of Criteria queries instead of writing the SQL queries insert into course(id, name, created_date, last_updated_date) values(10001, ‘JPA in 5 Steps’, LOCALTIMESTAMP, LOCALTIMESTAMP); insert

Read More »