Kayıtlar

Haziran, 2022 tarihine ait yayınlar gösteriliyor

https://gunceljava.blogspot.com/

https://gunceljava.blogspot.com/ https://gunceljava.blogspot.com/

How To Create a MySQL Database, Tables and Insert Data on Terminal

ref: https://www.cyberciti.biz/faq/howto-linux-unix-creating-database-and-table/ https://www.cyberciti.biz/faq/howto-linux-unix-creating-database-and-table/ https://www.cyberciti.biz/faq/howto-linux-unix-creating-database-and-table/ Procedure for creating a database and a sample table Login as the mysql root user to create database: $ mysql -u root -p Sample outputs: mysql> Add a database called books, enter: mysql> CREATE DATABASE books; Now, database is created. Use a database with use command, type: mysql> USE books; Next, create a table called authors with name, email and id as fields: mysql> CREATE TABLE authors (id INT, name VARCHAR(20), email VARCHAR(20)); To display your tables in books database, enter: mysql> SHOW TABLES; Sample outputs: +-----------------+ | Tables_in_books | +-----------------+ | authors | +-----------------+ 1 row in set (0.00 sec) Finally, add a data i.e. row to table books using INSERT statement, run: mysql> INSERT INTO...

[Docker] What is Docker ?

Docker Komutları docker pull imageName // imageName= ornegin redis dediğmizde docker hub ' tan localimize redisin imageini inidiri docker run imageName // indirilen image 'ten bir instance container olarak calıştırılır. docker ps // ps process manasında olabilir calisan containerleri listeler docker ps -a // durdurulmus containerleride gösterir docker rm [name or id] // remove eder kaldırır docker container rm $(docker container ls -aq) // tumunu silmek için bash komutu docker run -it name dummy_ubuntu ubuntu // tag name vermek icin docker run redis:5 // 5 nolu versiyonu indir calistir demek docker run -d redis // arkaplanda calısması icin detach mode docker run attach contanerId // arkaplandakini ön plana ceker :) detach modu devre dışı bırakıyor docker container logs containerID // görmediğimiz logları getir demek docker run -it imageName // it interaktif terminal olarak calıstırır olaki terminalden RGUMAN VS ALIYOSAN SENİ ETKİLESİME GECİRİR docker run -p disPort:icPort...