login to database
mysql -u username -p'password' database_name
logout from database
Ctrl + D
list all database
SHOW DATABASES;
Create Database
CREATE DATABASE company;
enter database
USE database_name;
show current database (dual is dummy/virtual database provided by oracle)
SELECT DATABASE() FROM dual;
list all tables
SHOW TABLES;
list table pattern
SHOW TABLES LIKE '%table_substring%';
Create table
CREATE TABLE users(
id INT,
NAME VARCHAR(100) NOT NULL,
age TINYINT NOT NULL,
city VARCHAR(200) NOT NULL
);
Alter table
ALTER TABLE
users MODIFY id INT PRIMARY KEY AUTO_INCREMENT;
ALTER TABLE
users ADD added_at DATETIME AFTER `city`,
ADD updated_at DATETIME AFTER added_at;
show schema
DESC <table_name>;
SHOW CREATE TABLE <table_name>\G;
show running sql processes
SHOW FULL PROCESSLIST;
import database/table (RUN IN BASH TERMINAL)
NOTE: Make sure your database is present in mysql server if not create new one
mysql -u root -p'password' database_name < backup_file.sql
export database (all tables) (RUN IN BASH TERMINAL)
mysqldump -u root -p'password' database_name > backup_file.sql
export specific tables (RUN IN BASH TERMINAL)
mysqldump -u root -p'password' database_name tbl1 tbl2 tbl3 > backup_file.sql
export only schema without data
mysqldump -u root -p'password' database_name --no-data
run sql command in terminal
mysql -u root -p'password' -e "SELECT COUNT(*) FROM database_name.table_name"
copy table
CREATE TABLE copy_of_table AS SELECT * FROM existing_table_name;
copy only table structure
CREATE TABLE copy_of_table AS SELECT * FROM existing_table_name WHERE 1 > 2;
Create new database user
CREATE USER 'user'@'hostname' IDENTIFIED BY 'PassWord';
To give remote access
GRANT ALL ON database_name.* to 'database_username'@'10.24.96.%' IDENTIFIED BY 'database_password';
CRUD SQL
SELECT * FROM users ORDER BY id DESC;
DELETE FROM users WHERE id = 3;
INSERT INTO users (id, name, age, city, added_at, updated_at) VALUES (NULL, 'sonam gupta', 18, 'gorakhpur', NOW(), NOW());
UPDATE users SET name = 'Sonam Gupta', age = 20, city = 'Gorakhpur', updated_at = NOW() WHERE id = 5;
Ref Links:
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
лучшие фильмы онлайн сериалы hbo смотреть онлайн зфильм
смотря фильмы онлайн что посмотреть вечером из кино
the best adult generator adult fantasy ai chat create erotic videos, images, and virtual characters. flexible settings, high quality, instant results, and easy operation right in your browser. the best features for porn generation.
the best adult generator pornjourney nsfw create erotic videos, images, and virtual characters. flexible settings, high quality, instant results, and easy operation right in your browser. the best features for porn generation.
сервисы платных рассылок сервис рассылка писем по e mail
лучшие сервисы email рассылок сервис емейл рассылок россия
site web du casino melbet melbet apk
telecharger le site web melbet telecharger melbet apk
site web du casino 1win telecharger 1win apk
compte personnel 1win 1win apk
сколько стоит квартира цена светский лес сочи жк застройщик цена
цены на квартиры в сочи жк светский лес сочи цены официальный
полотенцесушитель установленный купить полотенцесушитель
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
ranklio site – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
adster – Content reads clearly, helpful examples made concepts easy to grasp.
reacho – Color palette felt calming, nothing distracting, just focused, thoughtful design.
offerorbit – Bookmarked this immediately, planning to revisit for updates and inspiration.
promova – Bookmarked this immediately, planning to revisit for updates and inspiration.
rankora – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
trendfunnel – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
scaleify – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
stackhq – Color palette felt calming, nothing distracting, just focused, thoughtful design.
cloudhq – Color palette felt calming, nothing distracting, just focused, thoughtful design.
bytehq – Content reads clearly, helpful examples made concepts easy to grasp.
stackops – Loved the layout today; clean, simple, and genuinely user-friendly overall.
devopsly – Navigation felt smooth, found everything quickly without any confusing steps.
kubeops – Navigation felt smooth, found everything quickly without any confusing steps.
cloudopsly – Appreciate the typography choices; comfortable spacing improved my reading experience.
keywordcraft – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
adscatalyst – Appreciate the typography choices; comfortable spacing improved my reading experience.
clickrevamp – Navigation felt smooth, found everything quickly without any confusing steps.
promoseeder – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
serpstudio – Loved the layout today; clean, simple, and genuinely user-friendly overall.
leadspike – Appreciate the typography choices; comfortable spacing improved my reading experience.
trafficcrafter – Found practical insights today; sharing this article with colleagues later.
auditpilot – Appreciate the typography choices; comfortable spacing improved my reading experience.
leadvero – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
authoritylab – Color palette felt calming, nothing distracting, just focused, thoughtful design.
datadev – Found practical insights today; sharing this article with colleagues later.
applabs – Loved the layout today; clean, simple, and genuinely user-friendly overall.
dataops – Content reads clearly, helpful examples made concepts easy to grasp.
trycloudy – Found practical insights today; sharing this article with colleagues later.
gobyte – Bookmarked this immediately, planning to revisit for updates and inspiration.
getbyte – Color palette felt calming, nothing distracting, just focused, thoughtful design.
getkube – Found practical insights today; sharing this article with colleagues later.
trystack – Color palette felt calming, nothing distracting, just focused, thoughtful design.
usekube – Content reads clearly, helpful examples made concepts easy to grasp.
usebyte – Appreciate the typography choices; comfortable spacing improved my reading experience.
getstackr – Color palette felt calming, nothing distracting, just focused, thoughtful design.
cloudster – Found practical insights today; sharing this article with colleagues later.
deployly – Found practical insights today; sharing this article with colleagues later.
usestackr – Bookmarked this immediately, planning to revisit for updates and inspiration.
byteworks – Color palette felt calming, nothing distracting, just focused, thoughtful design.
stackable – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
datavio – Appreciate the typography choices; comfortable spacing improved my reading experience.
devnex – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
bytevia – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
dataworks – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
cryptora – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
kubexa – Appreciate the typography choices; comfortable spacing improved my reading experience.
cloudiva – Appreciate the typography choices; comfortable spacing improved my reading experience.
stackora – Content reads clearly, helpful examples made concepts easy to grasp.
netlance – Color palette felt calming, nothing distracting, just focused, thoughtful design.
devonic – Found practical insights today; sharing this article with colleagues later.
apponic – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
securia – Color palette felt calming, nothing distracting, just focused, thoughtful design.
codefuse – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
codestackr – Bookmarked this immediately, planning to revisit for updates and inspiration.
devpush – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
codepushr – Appreciate the typography choices; comfortable spacing improved my reading experience.
gitpushr – Bookmarked this immediately, planning to revisit for updates and inspiration.
mergekit – Color palette felt calming, nothing distracting, just focused, thoughtful design.
shipkit – Navigation felt smooth, found everything quickly without any confusing steps.
debugkit – Loved the layout today; clean, simple, and genuinely user-friendly overall.
commitkit – Appreciate the typography choices; comfortable spacing improved my reading experience.
testkit – Found practical insights today; sharing this article with colleagues later.
flowbot – Color palette felt calming, nothing distracting, just focused, thoughtful design.
promptkit – Loved the layout today; clean, simple, and genuinely user-friendly overall.
modelops – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
databrain – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
logkit – Bookmarked this immediately, planning to revisit for updates and inspiration.
deploykit – Content reads clearly, helpful examples made concepts easy to grasp.
mlforge – Found practical insights today; sharing this article with colleagues later.
smartpipe – Color palette felt calming, nothing distracting, just focused, thoughtful design.
taskpipe – Content reads clearly, helpful examples made concepts easy to grasp.
opsbrain – Appreciate the typography choices; comfortable spacing improved my reading experience.
patchkit – Found practical insights today; sharing this article with colleagues later.
guardstack – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
securekit – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
authkit – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
pipelinesy – Bookmarked this immediately, planning to revisit for updates and inspiration.
zerotrusty – Bookmarked this immediately, planning to revisit for updates and inspiration.
keyvaulty – Bookmarked this immediately, planning to revisit for updates and inspiration.
threatlens – Bookmarked this immediately, planning to revisit for updates and inspiration.
shieldops – Content reads clearly, helpful examples made concepts easy to grasp.
secstackr – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
auditkit – Color palette felt calming, nothing distracting, just focused, thoughtful design.
smartbyte – Appreciate the typography choices; comfortable spacing improved my reading experience.
techsphere – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
cyberstack – Content reads clearly, helpful examples made concepts easy to grasp.
Услуги по настройке https://sysadmin.guru и администрированию серверов и компьютеров. Установка систем, настройка сетей, обслуживание серверной инфраструктуры, защита данных и техническая поддержка. Помогаем обеспечить стабильную работу IT-систем.
nanotechhub – Content reads clearly, helpful examples made concepts easy to grasp.
clicktechy – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
keyvaulty – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
bytetap – Appreciate the typography choices; comfortable spacing improved my reading experience.
quickbyte – Content reads clearly, helpful examples made concepts easy to grasp.
techvertex – Found practical insights today; sharing this article with colleagues later.
pixelengine – Bookmarked this immediately, planning to revisit for updates and inspiration.
logicforge – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
futurestack – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
bytelab – Loved the layout today; clean, simple, and genuinely user-friendly overall.
zyrotech – Bookmarked this immediately, planning to revisit for updates and inspiration.
omegabyte – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
techdock – Bookmarked this immediately, planning to revisit for updates and inspiration.
bitzone – Content reads clearly, helpful examples made concepts easy to grasp.
codehive – Loved the layout today; clean, simple, and genuinely user-friendly overall.
tronbyte – Color palette felt calming, nothing distracting, just focused, thoughtful design.
futurebyte – Content reads clearly, helpful examples made concepts easy to grasp.
cyberpulse – Bookmarked this immediately, planning to revisit for updates and inspiration.
codenova – Loved the layout today; clean, simple, and genuinely user-friendly overall.
bytenova – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
zybertech – Color palette felt calming, nothing distracting, just focused, thoughtful design.
vortexbyte – Navigation felt smooth, found everything quickly without any confusing steps.
zenixtech – Color palette felt calming, nothing distracting, just focused, thoughtful design.
technexus – Content reads clearly, helpful examples made concepts easy to grasp.
veloxtech – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
byterise – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
quantumforge – Color palette felt calming, nothing distracting, just focused, thoughtful design.
techcatalyst – Loved the layout today; clean, simple, and genuinely user-friendly overall.
devbyte – Found practical insights today; sharing this article with colleagues later.
dataforge – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
logicbyte – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
bytecore – Found practical insights today; sharing this article with colleagues later.
bitcore – Navigation felt smooth, found everything quickly without any confusing steps.
binaryforge – Bookmarked this immediately, planning to revisit for updates and inspiration.
seovault – Bookmarked this immediately, planning to revisit for updates and inspiration.
seoshift – Content reads clearly, helpful examples made concepts easy to grasp.
seonexus – Loved the layout today; clean, simple, and genuinely user-friendly overall.
clickrly – Bookmarked this immediately, planning to revisit for updates and inspiration.
seoradar – Navigation felt smooth, found everything quickly without any confusing steps.
reachrocket – Found practical insights today; sharing this article with colleagues later.
scalewave – Loved the layout today; clean, simple, and genuinely user-friendly overall.
convertcraft – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
boostsignals – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
ranktarget – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
rankstrategy – Content reads clearly, helpful examples made concepts easy to grasp.
searchmetrics – Appreciate the typography choices; comfortable spacing improved my reading experience.
adzio – Appreciate the typography choices; comfortable spacing improved my reading experience.
searchsignals – Navigation felt smooth, found everything quickly without any confusing steps.
devwave – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
xyrotech – Color palette felt calming, nothing distracting, just focused, thoughtful design.
cybernexus – Content reads clearly, helpful examples made concepts easy to grasp.
nexonbyte – Bookmarked this immediately, planning to revisit for updates and inspiration.
zentrotech – Appreciate the typography choices; comfortable spacing improved my reading experience.
vynextech – Navigation felt smooth, found everything quickly without any confusing steps.
techwave – Found practical insights today; sharing this article with colleagues later.
zylotech – Bookmarked this immediately, planning to revisit for updates and inspiration.
bytecraft – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
techsnap – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
growthmarketing – Bookmarked this immediately, planning to revisit for updates and inspiration.
socialmarketing – Navigation felt smooth, found everything quickly without any confusing steps.
convertio – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
adlify – Loved the layout today; clean, simple, and genuinely user-friendly overall.
ranksignal – Navigation felt smooth, found everything quickly without any confusing steps.
signaltrack – Content reads clearly, helpful examples made concepts easy to grasp.
Your article helped me a lot, is there any more related content? Thanks!
admark – Content reads clearly, helpful examples made concepts easy to grasp.
reachriver – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
analyticsreport – Overall, professional vibe here; trustworthy, polished, and pleasantly minimal throughout.
viralshift – Color palette felt calming, nothing distracting, just focused, thoughtful design.
leadcircuit – Loved the layout today; clean, simple, and genuinely user-friendly overall.
searchengineers – Mobile version looks perfect; no glitches, fast scrolling, crisp text.
marketingengine – Pages loaded fast, images appeared sharp, and formatting stayed consistent.
leadnest – Pages loaded fast, images appeared sharp, and formatting stayed consistent.