linux的db命令 linux打開db文件的命令

工作中總結(jié)的常用linux命令(Ⅱ)

[1] 每兩行合并在一起

創(chuàng)新互聯(lián)主營臨沂網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,成都app軟件開發(fā),臨沂h5微信平臺小程序開發(fā)搭建,臨沂網(wǎng)站營銷推廣歡迎臨沂等地區(qū)企業(yè)咨詢

@dahuawk 'ORS=NR%2?" ":"\n"{print}'

[2] 每三行合并在一起

@dahuawk 'ORS=NR%3?" ":"\n"{print}'

[3] 每四行合并在一起

@dahuawk 'ORS=NR%4?" ":"\n"{print}'

[4] 統(tǒng)計std cell和sRam占的面積

@dahusummaryReport

[5] 找出drc的port相關(guān)的數(shù)量

@dahucat postroute_opt.drc | grep -B1 Type: | grep -v Type: | grep "\[" |-

[6] 獲得選中的pin的名字

@innovusdbget selected.name

[7]? 對一個文件,多目標(biāo)刪除

@dahused -i 's/MODE1\|MODE2\|MODE3\|MODE4\|MODE5//g'

[8] 獲得不規(guī)則fplan的坐標(biāo)組

@innovusdbget top.fplan.boxes

[9] 在某個目錄下找到帶某個字符的文件[區(qū)分大小寫]

@dahufind -iname "*tcic*"

[10] 在某個目錄下,遍歷所有文件內(nèi)容,得到含有某個字符/字符串的行

@dahugrep -r 'insertion delay' ./

[11] 查看當(dāng)前的INNOVUS版本號

@dahuecho $INVS_VER

[12] 替換某個目錄下所有文件內(nèi)容

@dahused -i"s/查找的內(nèi)容/替換后的內(nèi)容/g"`grep -rl"查找的內(nèi)容"./`

[13] 在gui界面下highlight某條path

@dahu ctd_trace?-from * ?-to * ?-color *

[14] 引用${REV},為什么采用大括號{}

為了防止引用造成后面錯亂。

如:/fs/omp_com_03/RELEASE/top2hlb/R1/HLB_DEF/${REV}/${top}.def.gz

[15] 解壓命令

gzip -d FileName.gz

[16] 換某個cell的坐標(biāo) {AAA, BBB}

@innovus dbset [dbget top.inst.name XXXXXXXX].pt_x AAA

@innovus dbset [dbget top.inst.name XXXXXXXX].pt_y BBB

@innovus zoomSelected

[17] 設(shè)置某一個cell不用

@innovus set_dont_touch BUFF false

@innovus set_dont_touch BUFF true

[18] 找某個性質(zhì)

@innovus dbSet [].?h

[19] 刪去空白行

vim 中:g/^s*$/d

簡單解釋一下:

g :全區(qū)命令

/ :分隔符

^s*$ :匹配空行,其中^表示行首,s表示空字符,包括空格和制表符,*重復(fù)0到n個前面的字符,$表示行尾。連起來就是匹配只有空字符的行,也就是空行。

/d :刪除該行

[20] echo 寫入帶有雙引號""的內(nèi)容。

echo ‘ “AAAbbb” ’ 1.tcl

[21] echo 寫入帶有單引號‘’的內(nèi)容。

echo “ ‘AAAbbb' ” 1.tcl

[22] keep CPU 數(shù)目

@innovussetMultiCpuUsage -localCpu 16

@innovushistory keep 999999

[23] 打開xlsm文件

openoffice.org 文件

[24] 顯示clock path路徑

@innovus report_timing -to XXX -path_type full_clock

[25]報出沒有被約束到的path

@innovus report_timing -to XXX -uncounstrained

[26]報出穿過path中的某一點

@innovus report_timing -to XXX -view

view = MODE + corner

[27] vim 全選(高亮顯示 ):按esc后,然后ggvG或者ggVG

[28]

DB2數(shù)據(jù)庫在linux操作系統(tǒng)的指令有哪些?

DB2數(shù)據(jù)庫命令簡介 1.啟動數(shù)據(jù)庫 DB2start 2.停止數(shù)據(jù)庫 DB2stop DB2數(shù)據(jù)庫在linux相關(guān)指令之3.連接數(shù)據(jù)庫 DB2 connect to o_yd user DB2 using pwd 4.讀數(shù)據(jù)庫管理程序配置 DB2 get dbm cfg 5.寫數(shù)據(jù)庫管理程序配置 DB2 update dbm cfg using 參數(shù)名 參數(shù)值 6.讀數(shù)據(jù)庫的配置 DB2 connect to o_yd user DB2 using pwd DB2 get db cfg for o_yd 7.寫數(shù)據(jù)庫的配置 DB2 connect to o_yd user DB2 using pwd DB2 update db cfg for o_yd using 參數(shù)名 參數(shù)值 8.關(guān)閉所有應(yīng)用連接 DB2 force application all DB2 force application ID1,ID2,,,Idn MODE ASYNC (DB2 list application for db o_yd show detail) 9.備份數(shù)據(jù)庫 DB2 force application all DB2 backup db o_yd to d: (DB2 initialize tape on \.tape0) (DB2 rewind tape on \.tape0) DB2 backup db o_yd to \.tape0 10.恢復(fù)數(shù)據(jù)庫 DB2 restore db o_yd from d: to d: DB2 restore db o_yd from \.tape0 to d: DB2數(shù)據(jù)庫在linux相關(guān)指令之11.綁定存儲過程 DB2 connect to o_yd user DB2 using pwd DB2 bind c:dfplus.bnd 拷貝存儲過程到服務(wù)器上的C:sqllibfunction目錄中 12.整理表 DB2 connect to o_yd user DB2 using pwd DB2 reorg table ydd DB2 runstats on table ydd with distribution and indexes all 13.導(dǎo)出表數(shù)據(jù) DB2 export to c:dftz.txt of del select * from dftz DB2 export to c:dftz.ixf of ixf select * from dftz 14.導(dǎo)入表數(shù)據(jù) import from c:123.txt of del insert into ylbx.czyxx DB2 import to c:dftz.txt of del commitcount 5000 messages c:dftz.msg insert into dftz DB2 import to c:dftz.ixf of ixf commitcount 5000 messages c:dftz.msg insert into dftz DB2 import to c:dftz.ixf of ixf commitcount 5000 insert into dftz DB2 import to c:dftz.ixf of ixf commitcount 5000 insert_update into dftz DB2 import to c:dftz.ixf of ixf commitcount 5000 replace into dftz DB2 import to c:dftz.ixf of ixf commitcount 5000 create into dftz (僅IXF) DB2 import to c:dftz.ixf of ixf commitcount 5000 replace_create into dftz (僅IXF) 15.執(zhí)行一個批處理文件 DB2 -tf 批處理文件名 (文件中每一條命令用 ;結(jié)束) 16.自動生成批處理文件 建文本文件:temp.sql select 'runstats on table DB2.' || tabname || ' with distribution and detailed indexes all;' from syscat.tables where tabschema='DB2' and type='T'; DB2 -tf temp.sqlrunstats.sql 17.自動生成建表(視圖)語句 在服務(wù)器上:C:sqllibmisc目錄中 DB2 connect to o_yd user DB2 using pwd DB2look -d o_yd -u DB2 -e -p -c c:o_yd.txt DB2數(shù)據(jù)庫在linux相關(guān)指令之18.其他命令 grant dbadm on database to user bb 19select * from czyxx fetch first 1 rows only 20DB2look -d ylbx -u DB2admin -w -asd -a -e -o a.txt21. 顯示當(dāng)前用戶所有表 list tables 22.列出所有的系統(tǒng)表 list tables for system 23.查看表結(jié)構(gòu) DB2 describe select * from user.tables (實習(xí)編輯:HJ)

linux進入數(shù)據(jù)庫命令

;?????在linux使用命令進入數(shù)據(jù)庫總共有兩個步驟,下面是具體操作:

1、首先打開linux系統(tǒng),啟動mysql數(shù)據(jù)庫。

2、然后輸入命令mysql-uroot-p1,即輸入賬號密碼等信息就能夠進入mysql數(shù)據(jù)庫了。

以上就是的分享了,希望能夠幫助到大家。

Linux查看數(shù)據(jù)庫備份腳步的配置信息命令

Copyright ? 1999-2020, CSDN.NET, All Rights Reserved

mysql

登錄

Linux 關(guān)于MYSQL數(shù)據(jù)庫命令(查看,備份等操作) 原創(chuàng)

2016-04-19 11:22:33

fuwen1989

碼齡7年

關(guān)注

1.Linux系統(tǒng)下啟動MySQL的命令:

/ect/init.d/mysql start (前面為mysql的安裝路徑)

2.linux下重啟mysql的命令:

/ect/init.d/mysql restart (前面為mysql的安裝路徑)

3.linux下關(guān)閉mysql的命令:

/ect/init.d/mysql shutdown (前面為mysql的安裝路徑)

4.連接本機上的mysql:

進入目錄mysql\bin,再鍵入命令mysql -u root -p, 回車后提示輸入密碼。

5.打開數(shù)據(jù)庫后的操作命令

查看數(shù)據(jù)庫的命令

mysql show databases;

打開mydb庫

mysql use mydb;

查看數(shù)據(jù)表的詳細(xì)結(jié)構(gòu)

mysql desc funtb;

新建數(shù)據(jù)庫

mysql create database school;

新建表

mysql create table user01(

- id varchar(20) NOT NULL,

- userName varchar(10) NOT NULL,

- age int(11) default'0',

- sex char(2) NOT NULL default'm',

- PRIMARY KEY (id)

- )TYPE=InnoDB;

Query OK, 0 rows affected, 1 warning (0.02 sec)

mysqldesc student;

插入

mysql insert into student(id,stuName) values('1','tomcat');

刪除

mysql delete from student where id='1';

刪除表中所有數(shù)據(jù)

mysql truncate table student;

刪除表

mysql drop table temp;

創(chuàng)建新用戶并給予權(quán)限

mysql grant all privileges on *.* to dbuser@localhost identified by '1234'

with grant option;

更改Mysql用戶密碼

c:\Mysql5.0\binmysqladmin -u root -p password 1234

Enter password: ****

備份數(shù)據(jù)庫及表(新版數(shù)據(jù)庫不加3306端口號)

c:\mysql\bin\mysqldump –u root –p mydb d:\backup.sql

執(zhí)行此語句將把數(shù)據(jù)庫mydb 備份到D盤的backup.sql文件中

備份多個數(shù)據(jù)庫表

c:\mysql\bin\mysqldump –u root –p 3306 school user01 user d:\backup.sql

此句的意思是把school庫中的user01表和user表的內(nèi)容和表的定義備份到D盤backup.sql文件中。

備份所有的數(shù)據(jù)庫

c:\myql\binmysqldump –u root –p 3306 –all –databased:backup.sql

還原Mysql數(shù)據(jù)庫

c:\mysql\bin\mysql –u root –p 3306 school

還原其中的一個表

mysql source d:\books.sql;

退出Mysql連接

mysqlquit(exit)

windows關(guān)閉mysql服務(wù)

C:\mysql\binnet mysql

分享標(biāo)題:linux的db命令 linux打開db文件的命令
鏈接URL:http://muchs.cn/article26/hjsojg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供Google、網(wǎng)站內(nèi)鏈、搜索引擎優(yōu)化虛擬主機、用戶體驗微信公眾號

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運營