当前位置:网站首页>People's Congress Jincang database login, view database
People's Congress Jincang database login, view database
2022-08-08 10:02:00 【Drinking Water Siyuan 09】
Start database service test
1. View the data storage directory
[[email protected] ~]# su - kingbase
Last login: Mon Mar 1 18:00:48 CST 2021 on pts/2
[[email protected] ~]$ cd /data/kingbase/v8/data/
[[email protected] data]$ ls -lh

Copy after login
[[email protected] bin]$ ./ksql -U system -W test
Password:
ksql (V8.0)
Type "help" for help.
test=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+--------+------------+-------------+-------------+-------------------
security | system | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 |
template0 | system | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/system +
| system=CTc/system
test | system | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 |
(4 rows)
test=# create database prod;
CREATE DATABASE
test=# \c prod
Password:
You are now connected to database "prod" as user "system".
prod=# create table t1 (id int,name varchar(10));
CREATE TABLE
prod=# \d t1
Table "public.t1"
Column | Type | Collation | Nullable| Default
--------+----------------------------+-----------+----------+---------
id | integer | |p>
prod=# insert into t1 values (10,'tom'),(20,'jerry'),(30,'rose');
INSERT 0 3
prod=# select * from t1;
id | name
----+-------
10 | tom
20 | jerry
30 | rose
(3 rows)
-----------------------------------
边栏推荐
猜你喜欢
随机推荐
数据库不推荐使用外键的9个理由!
面试突击72:输入URL之后会执行什么流程?
Mobile/Embedded-CV Model-2018: MobileFaceNets
语音聊天app开发——对用户更具吸引力的设计
牛刀小试基本语法,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang基本语法和变量的使用EP02
Loadrunner12.0.2 installation and Chinese language pack installation (Chinese)
巧用Prometheus来扩展kubernetes调度器
左益豪:用代码创造一个新世界|OneFlow U
Multi-scalar multiplication: state of the art & new ideas
SVN基本操作--文字解析版
各种attention的代码实现
Recommended download software
小白求助,关于Go编译的顺序
A small test of basic grammar, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, basic grammar of go lang and the use of variables EP02
What is intrinsic safety?
22-08-06 Xi'an EasyExcel implements dictionary table import and export
A concise tutorial on expanding (increasing capacity) of VMWare Esxi virtual system data storage
牛客收藏上万的神作!这份阿里P8手写的MySQL主从原理手册真的牛
2.5W 字详解线程与锁了,面试随便问!!
简单混合运算计算器









