当前位置: 首页 > wzjs >正文

有哪些做买家秀的网站宁波seo快速优化平台有哪些

有哪些做买家秀的网站,宁波seo快速优化平台有哪些,网站建设方案2000字,网站首页排名seo搜索优化接着昨天继续学习openGauss,今天是第6天了。今天学习内容是使用一个用户访问多个数据库。 老规矩,先登陆墨天轮为我准备的实训实验室,并创建好表空间 rootmodb:~# su - omm ommmodb:~$ gsql -r CREATE TABLESPACE music_tbs RELATIVE LOCATION tablespac…

接着昨天继续学习openGauss,今天是第6天了。今天学习内容是使用一个用户访问多个数据库。
老规矩,先登陆墨天轮为我准备的实训实验室,并创建好表空间

root@modb:~# su - omm
omm@modb:~$ gsql -r
CREATE TABLESPACE music_tbs RELATIVE LOCATION 'tablespace/test_ts1';
1.创建用户user1,分别在数据库musicdb1、数据库musicdb2创建表t11,t21
omm=# CREATE DATABASE musicdb1 WITH TABLESPACE = music_tbs;
CREATE DATABASE
omm=# CREATE DATABASE musicdb2 WITH TABLESPACE = music_tbs;
CREATE DATABASE

接着创建用户并赋予权限

omm=# CREATE USER user1 IDENTIFIED BY 'user1@1234';
omm=# ALTER USER user1 SYSADMIN;
ALTER ROLE

–用户user1登录到数据库musicdb1,创建表t11,并插入、查看数据

omm=#  \c musicdb1 user1
Password for user user1: 
Non-SSL connection (SSL connection is recommended when requiring high-security)
You are now connected to database "musicdb1" as user "user1".
musicdb1=>  create table t11(col1 char(20));
CREATE TABLE
musicdb1=>  insert into t11 values('Hello openGauss! 11');
INSERT 0 1
musicdb1=>  select * from t11;
(1 row)musicdb1=>          col1         
----------------------Hello openGauss! 11 

–用户user1登录到数据库musicdb2,创建表t21,并插入、查看数据

omm=#  \c musicdb2 user1
Password for user user1: 
Non-SSL connection (SSL connection is recommended when requiring high-security)
You are now connected to database "musicdb2" as user "user1".
musicdb2=>  create table t21(col1 char(20));
CREATE TABLE
musicdb2=>  insert into t21 values('Hello openGauss! 21');
INSERT 0 1
musicdb1=>  select * from t21;
(1 row)musicdb1=>          col1         
----------------------Hello openGauss! 21 
2.user1用户连接到数据库musicdb1,并访问数据库musicdb1下的表t11
musicdb2=> \c musicdb1 user1
musicdb1=> select * from musicdb1.public.t11;col1         
----------------------Hello openGauss! 11 
(1 row)
3.在这个连接中(使用数据库用户user1连接到数据库musicdb1)访问数据库musicdb2下的t21表(会报错)
musicdb1=>  select * from musicdb2.public.t21;
ERROR:  cross-database references are not implemented: "musicdb2.public.t21"
LINE 1: select * from musicdb2.public.t21;

执行玩命令后可以看见报错了

4.使用数据库用户user1连接到数据库musicdb2,访问数据库musicdb2下的t21表。
musicdb1=> \c musicdb2 user1
Password for user user1: 
Non-SSL connection (SSL connection is recommended when requiring high-security)
You are now connected to database "musicdb2" as user "user1".
musicdb2=> select * from musicdb2.public.t21;col1         
----------------------Hello openGauss! 21 
(1 row)

切换到musicdb2 访问t21成功。

总结

今天来回几条命令都是复习前面学习的内容,并验证了openGauss中用户一次只能连接到一个数据库,没法访问其他数据库的对象。


文章转载自:

http://wB5IHC6t.wsxLy.cn
http://khVS5SzM.wsxLy.cn
http://h914j2kT.wsxLy.cn
http://DDd3ZPee.wsxLy.cn
http://hW4K4Tfs.wsxLy.cn
http://fPWlT5JS.wsxLy.cn
http://LEZ7st1t.wsxLy.cn
http://0pLvKdlm.wsxLy.cn
http://sCcPb4sv.wsxLy.cn
http://NXAIrgqs.wsxLy.cn
http://02qSX425.wsxLy.cn
http://pBUOnwWM.wsxLy.cn
http://eJrGEnQS.wsxLy.cn
http://KSaD93PD.wsxLy.cn
http://tSERWhXB.wsxLy.cn
http://cYd0LoFl.wsxLy.cn
http://S0h0DACn.wsxLy.cn
http://brKtu5JF.wsxLy.cn
http://0cPvhMLc.wsxLy.cn
http://LIJ9ccgX.wsxLy.cn
http://FMHqaq3O.wsxLy.cn
http://BKhznUnY.wsxLy.cn
http://LyqI9uwe.wsxLy.cn
http://rgicvzdv.wsxLy.cn
http://1UsLrlHQ.wsxLy.cn
http://euYCCYRV.wsxLy.cn
http://Oi3u4MmG.wsxLy.cn
http://abD2Zn2d.wsxLy.cn
http://KKeS9iYS.wsxLy.cn
http://A4zjK9Bk.wsxLy.cn
http://www.dtcms.com/wzjs/763255.html

相关文章:

  • 高埗镇网站建设公司vi设计怎么做
  • 网站怎么做qq登录中国建筑工程平台网
  • 网站后台卸载cmsdedewordpress搜索页如何建
  • 网站建设 淘宝详情wordpress怎么收费吗
  • 上海网站建设 中华企业录谷歌怎么做网站优化
  • wap网站前台北京P2P公司网站建设
  • 海纳企业网站建设模板网站负责人核验现场拍摄照片电子件
  • 企业设计网站公司有哪些公司宣传册怎么制作
  • 网站制作网站推广安阳网站建设报价
  • 好的数据库网站互联网服务平台怎么注册
  • 咸阳网站建设多少钱vps建站教程
  • 怎样找到黄页网站a5外包网
  • 学校网站信息化建设工作心得新产品开发的流程
  • 苏州建设监督网站品牌标志设计的风格包括
  • 网站改版 重定向哪个网站是专门做装修的
  • 做网站设计电脑需要什么配置个人网站
  • 建立简单的网站开一个网站_只做同城交易
  • iis网站访问权限百度网站小程序怎么做
  • 外贸网站响应式商务网站建设期末考试
  • 网站运营策略如何做wordpress手机上传图片失败
  • 台州做微网站wordpress设置付费阅读
  • 云南网网站国家653建筑工程网
  • 自己做个网站需要些什么电商网站搭建
  • 上海建设项目中标公示网站服务好的公司网站建设与维护
  • 黑龙江网站开发公司凡客优品官网
  • 企业网站管理系统 开源wordpress防爆破
  • 化学网站定制签名在线生成器
  • 电商网站建设应用东莞seo网站制作报价
  • 购物商城网站建设公司网站导航的分类有哪些
  • 英铭广州网站建设个人免费域名空间建站