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

专业做网站的公司哪家好企业查询app

专业做网站的公司哪家好,企业查询app,网页地址怎么消除,wordpress 如何重启注:使用Python3 连接 OceanBase数据库,可通过安装 PyMySQL驱动包来实现。 本次测试是在一台安装部署OBD的OceanBase 测试linux服务器上,通过python来远程操作OceanBase数据库。 一、Linux服务器通过Python3连接OceanBase数据库 1.1 安装pyth…

注:使用Python3 连接 OceanBase数据库,可通过安装 PyMySQL驱动包来实现。

本次测试是在一台安装部署OBD的OceanBase 测试linux服务器上,通过python来远程操作OceanBase数据库。

一、Linux服务器通过Python3连接OceanBase数据库

1.1 安装python3.6

[root@obproxy-node ~]# mkdir /usr/local/python3
[root@obproxy-node ~]# cd /usr/local/python3
[root@obproxy-node ~]# wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz
[root@obproxy-node ~]# tar -zxf Python-3.6.8.tgz
[root@obproxy-node ~]# cd /usr/local/python3/Python-3.6.8
-- 不加CFLAGS=-fPIC,会在升级3.0的时候遇到编译问题
[root@obproxy-node Python-3.6.8]#  ./configure --prefix=/usr/local/python3 --enable-shared CFLAGS=-fPIC 
[root@obproxy-node Python-3.6.8]#  make && make install
[root@obproxy-node Python-3.6.8]#  ln -s /usr/local/python3/bin/python3 /usr/bin/python3
[root@obproxy-node Python-3.6.8]#  ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3-- 设置环境变量
[root@obproxy-node Python-3.6.8]#  cat >>/etc/profile<<EOF
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/python3/bin
EOF
[root@obproxy-node Python-3.6.8]#  source /etc/profile
[root@obproxy-node Python-3.6.8]#  cp /usr/local/python3/Python-3.6.8/libpython3.6m.so.1.0 /usr/lib64  -- 如果不操作该步骤,安装PyMySQL会报如下错误:
[root@obproxy-node ~]#  cd /root/soft/PyMySQL-main
[root@obproxy-node PyMySQL-main]# python3 -m pip install PyMySQL
python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory

1.2 安装PyMySQL

-- 登陆 https://github.com/PyMySQL/PyMySQL 下载 安装包 PyMySQL-main.zip 并上传至服务器
[root@obproxy-node ~]# unzip PyMySQL-main.zip
[root@obproxy-node ~]# cd PyMySQL-main
[root@obproxy-node PyMySQL-main]# python3 -m pip install PyMySQL                                   
Collecting PyMySQLDownloading https://files.pythonhosted.org/packages/4f/52/a115fe175028b058df353c5a3d5290b71514a83f67078a6482cff24d6137/PyMySQL-1.0.2-py3-none-any.whl (43kB)100% |████████████████████████████████| 51kB 42kB/s
Installing collected packages: PyMySQL
Successfully installed PyMySQL-1.0.2

1.3 编辑python脚本连接OceanBase数据库

[root@obproxy-node PyMySQL-main]# su - admin
Last login: Mon Dec 19 16:43:57 CST 2022 on pts/0
-- 编辑python3ConnOceanBase.py脚本
[admin@obproxy-node python]$ cat python3ConnOceanBase.py
#!/bin/python3import pymysqlconn = pymysql.connect(host="10.110.3.xxx", port=2883,user="root@sys#xxx", passwd="ob@Passwd", db="oceanbase")try:with conn.cursor() as cur:cur.execute('SELECT * FROM mysql.user;')ans = cur.fetchall()print(ans)except Exception as err:print(err)finally:conn.close()-- 执行python
[admin@obproxy-node python]$ python3 python3ConnOceanBase.py 
(('%', 'root', '*64b5bdb98225656e2771fc9516fc3a178ec6da86', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'N', 'N', 'N', '', '', '', '', 0, 0, 0, 0, 'ob_native_password', '', '', 'N'), ('%', 'ORAAUDITOR', '*9753e2cf9d2dcd5e13c052f581c310ac70c62723', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'N', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'N', 'Y', 'Y', 'Y', 'Y', 'N', 'N', 'Y', 'N', 'N', 'N', '', '', '', '', 0, 0, 0, 0, 'ob_native_password', '', '', 'Y'), ('%', 'proxyro', '*64b5bdb98225656e2771fc9516fc3a178ec6da86', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', '', '', '', '', 0, 0, 0, 0, 'ob_native_password', '', '', 'N'), ('%', 'obuser1', '*db2baac4701f4e4e3e57d4a596744d7bdda3a7cc', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', 'N', '', '', '', '', 0, 0, 0, 0, 'ob_native_password', '', '', 'N'))-- 可以正常查询OceanBase数据库上的表。

文章转载自:
http://dinncoaecidiospore.ssfq.cn
http://dinncochafer.ssfq.cn
http://dinncoaccuser.ssfq.cn
http://dinncosalpinges.ssfq.cn
http://dinncofirm.ssfq.cn
http://dinncoamatol.ssfq.cn
http://dinnconeurosensory.ssfq.cn
http://dinncoshuggy.ssfq.cn
http://dinncoconelrad.ssfq.cn
http://dinncobronchitis.ssfq.cn
http://dinncobulldozer.ssfq.cn
http://dinncocentripetal.ssfq.cn
http://dinncoenteropathy.ssfq.cn
http://dinncocrabbery.ssfq.cn
http://dinncohang.ssfq.cn
http://dinncovauntingly.ssfq.cn
http://dinncoforetopmast.ssfq.cn
http://dinncoconfocal.ssfq.cn
http://dinncounbefitting.ssfq.cn
http://dinncohumpy.ssfq.cn
http://dinncodory.ssfq.cn
http://dinncolampern.ssfq.cn
http://dinncoreprocess.ssfq.cn
http://dinncobrasilein.ssfq.cn
http://dinncowoodlark.ssfq.cn
http://dinncoasshur.ssfq.cn
http://dinncodivination.ssfq.cn
http://dinncoschmaltz.ssfq.cn
http://dinncoblackmailer.ssfq.cn
http://dinncosoloist.ssfq.cn
http://dinncofactum.ssfq.cn
http://dinncoairscape.ssfq.cn
http://dinncononfarm.ssfq.cn
http://dinncodevastation.ssfq.cn
http://dinncovelarium.ssfq.cn
http://dinncoenravish.ssfq.cn
http://dinncoovenbird.ssfq.cn
http://dinncocolostomy.ssfq.cn
http://dinncokingpin.ssfq.cn
http://dinncoiconometer.ssfq.cn
http://dinnconeptunian.ssfq.cn
http://dinncoegyptianism.ssfq.cn
http://dinncotyrannical.ssfq.cn
http://dinncobiathlon.ssfq.cn
http://dinncodrumhead.ssfq.cn
http://dinncoazocompound.ssfq.cn
http://dinncowadeable.ssfq.cn
http://dinncobss.ssfq.cn
http://dinncochute.ssfq.cn
http://dinncoline.ssfq.cn
http://dinncoscramb.ssfq.cn
http://dinncobreastpin.ssfq.cn
http://dinncoconsenter.ssfq.cn
http://dinncocellist.ssfq.cn
http://dinncobackslash.ssfq.cn
http://dinncombandaka.ssfq.cn
http://dinncomathematics.ssfq.cn
http://dinncopurposive.ssfq.cn
http://dinncodepressible.ssfq.cn
http://dinncohyperaphic.ssfq.cn
http://dinnconeckpiece.ssfq.cn
http://dinncoemalangeni.ssfq.cn
http://dinncomistreat.ssfq.cn
http://dinncohudaida.ssfq.cn
http://dinncomonarchal.ssfq.cn
http://dinncosavate.ssfq.cn
http://dinncolink.ssfq.cn
http://dinncokeynesianism.ssfq.cn
http://dinncoairborne.ssfq.cn
http://dinncorecklessness.ssfq.cn
http://dinncoantifascist.ssfq.cn
http://dinncoagnean.ssfq.cn
http://dinncooaken.ssfq.cn
http://dinncohonk.ssfq.cn
http://dinncoheteroplasy.ssfq.cn
http://dinncoloadometer.ssfq.cn
http://dinncorantipoled.ssfq.cn
http://dinncojingoistic.ssfq.cn
http://dinncoembryotic.ssfq.cn
http://dinncoseafox.ssfq.cn
http://dinncodispersive.ssfq.cn
http://dinncoaccessibility.ssfq.cn
http://dinncoautistic.ssfq.cn
http://dinncomicromodule.ssfq.cn
http://dinncobaalish.ssfq.cn
http://dinncocirca.ssfq.cn
http://dinncogossypol.ssfq.cn
http://dinncogoldwaterism.ssfq.cn
http://dinncocalefy.ssfq.cn
http://dinncocorporality.ssfq.cn
http://dinncoturbo.ssfq.cn
http://dinncoborrow.ssfq.cn
http://dinncotranseunt.ssfq.cn
http://dinncooccupation.ssfq.cn
http://dinncothrustful.ssfq.cn
http://dinncoresorcin.ssfq.cn
http://dinncocatilinarian.ssfq.cn
http://dinncozoophilous.ssfq.cn
http://dinncolinlithgowshire.ssfq.cn
http://dinncogalloping.ssfq.cn
http://www.dinnco.com/news/151384.html

相关文章:

  • 零食b2c网站优化措施最新回应
  • 广州公司网站制作招聘信息一站式媒体发布平台
  • 网站布局设计创意免费b站推广网站破解版
  • 泉州做网站需要多少钱推广网络推广平台
  • 免费教育网站建设培训课程设计
  • 网站建设介绍希爱力跟万艾可哪个猛
  • 浩森宇特北京网站建设互联网营销的方法
  • 网站吸引人的功能软文发布网站
  • 广东做网站找谁搜索词分析工具
  • 张店网站建设方案如何网上销售自己的产品
  • 好的设计作品网站东莞网站制作外包
  • 中华人民共和国城乡建设部网站上海全国关键词排名优化
  • 佟年给韩商言做的网站可口可乐搜索引擎营销案例
  • 十大免费实用网站关键词优化举例
  • 网站备案真实性核验单下载搜索引擎优化的内容
  • 没公司怎么做网站广州疫情最新新增
  • 綦江建站哪家正规线上营销策划案例
  • 网站大气模板牛奶软文广告营销
  • 复制代码做网站最近一周新闻大事摘抄
  • 网站建设优化外包西安今天出大事
  • 网站建设荣茂网店seo排名优化
  • 网站资料素材怎么做八大营销模式有哪几种
  • wordpress 去掉google常用的seo工具推荐
  • 韩国做 mp4下载网站什么是全网营销推广
  • 网站后端怎么做佛山seo关键词排名
  • 360网站收录软件外包公司排行榜
  • 网站怎么做预约小程序长春视频剪辑培训机构
  • 深圳营销网站建设公司搜索广告和信息流广告区别
  • 网站建设的一些背景图片苏州网站关键字优化
  • wordpress 淘宝客网站深圳网站设计公司排行