当前位置:网站首页>Mysql database connection / query index and other common syntax
Mysql database connection / query index and other common syntax
2022-07-26 08:34:00 【ZenPower】
- Connect mysql database
mysql -u user name -p password -h host IP
mysql -u root -p 123456 -h 10.77.77.77
or
mysql -uroot -p123456 -h10.77.77.77
notes : For general security reasons, do not directly enter password plaintext , Enter only -p, Then enter the password at the command prompt - Get table index information
show index/keys from Table name ;
show index from TABLE;
show keys from TABLE;- Get before a date / after N God / The date of the month
-- Get before the current date / after 7 The date of day
select date_sub(now(), interval 7 day);
select date_add(now(), interval 7 day);
-- Get before the current date / after 7 The date of the month
select date_sub(now(), interval 7 month);
select date_add(now(), interval 7 month);- other
边栏推荐
- Basic music theory rhythm connection problem, very important
- Shell programming
- Does flinkcdc now support sqlserver instance name connection?
- NLP (natural language processing) natural language processing learning
- Number of briquettes & Birthday Candles & building blocks
- [time complexity, space complexity]
- Memory management based on C language - Simulation of dynamic partition allocation
- 第三天作业
- 苹果强硬新规:用第三方支付也要抽成,开发者亏大了!
- 【C语言】程序员筑基功法——《函数栈帧的创建与销毁》
猜你喜欢

Mycat2 deploy master-slave MariaDB

QT uses QSS to make a beautiful login interface (hand-in-hand teaching)

Why reserve a capacitor station on the clock output?
![[time complexity, space complexity]](/img/f2/f82c7e0a6ab9f893023c2ddbac3431.png)
[time complexity, space complexity]

QSS add resource file of QT

NLP (natural language processing) natural language processing learning

【EndNote】文献模板编排语法详解

mysql函数汇总之日期和时间函数

Sub Chocolate & paint area

The second lesson is the construction of development environment
随机推荐
内存管理-动态分区分配方式模拟
Please tell me if there is any way to increase the write out rate when the Flink SQL client is in the sink table. When synchronizing through sink table
为什么要在时钟输出上预留电容的工位?
Flutter compilation fails
When developing flutter, idea_ ID cannot solve the problem
Take out brother is the biggest support in this society
Apple's tough new rule: third-party payment also requires a percentage, and developers lose a lot!
第三天作业
23.10 Admin features
Storage of drawings (refined version)
日常一记(11)--word公式输入任意矩阵
23.2 customizing the banner control display hidden banner modify banner
基于Raft共识协议的KV数据库
Flutter WebView three fingers rush or freeze the screen
【时间复杂度空间复杂度】
Mycat2 deploy master-slave MariaDB
Vscode utility shortcut
Mysql8 one master one slave +mycat2 read write separation
吉他五线谱联系 茉莉花
2022-024ARTS:最长有效括号