AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[sql](ubuntu)

Martin Hope
newbiecoder
Asked: 2019-11-19 00:47:19 +0800 CST

Postgresql 删除角色命令不起作用

  • 0

删除角色命令在我的 postgresql 11 中不起作用。我无法删除名为 'ckdev' 的角色。

 Role name |                         Attributes                         | Member of 
-----------+------------------------------------------------------------+-----------
 ckdev |                                                            | {}
 postgres  | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

postgres-# drop role ckdev
postgres-# \du
                                   List of roles
 Role name |                         Attributes                         | Member of 
-----------+------------------------------------------------------------+-----------
 ckdev |                                                            | {}
 postgres  | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
command-line postgresql 16.04 sql
  • 1 个回答
  • 702 Views
Martin Hope
John Ronald
Asked: 2019-11-16 12:07:19 +0800 CST

SQL 服务器连接字符串

  • 0

是否有可能以某种方式获取到我的 SQL 服务器的连接字符串?它在本地运行,与我需要使用 sql server 的应用程序在同一台计算机上运行。

到目前为止,该应用程序一直在 Windows 上运行,带有连接字符串:

Data Source=JOHN-PC\\SQLEXPRESS01;Initial Catalog=knihovna;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False;
server mysql sql
  • 1 个回答
  • 1528 Views
Martin Hope
Display name
Asked: 2019-08-20 08:21:10 +0800 CST

如何禁止 MySQL 服务器在后台持续运行?

  • 6

该网站解释了 Ubuntu 18.04 中的 MySQL 服务器安装。基本上你发出命令sudo apt install mysql-server。同一网站随后解释说:

安装完成后,MySQL服务会自动启动。要检查 MySQL 服务器是否正在运行,请键入: sudo systemctl status mysql

这是否意味着一旦我安装mysql-server它,它将始终在后台运行,除非我在每次重新启动时明确终止该进程?

我想mysql-server偶尔玩一下,但不希望它一直在后台运行。

server mysql sql
  • 1 个回答
  • 6377 Views
Martin Hope
Ahmad Farhan
Asked: 2019-06-21 00:06:14 +0800 CST

在ubuntu中获取sql server数据

  • 0

如何在 ubuntu 中获取 Sql server 的数据。我最近从我们有 Sql 服务器管理工​​作室的 Windows 转移来执行此任务。在 ubuntu 中是否有它的替代方案。我知道有人问过这个问题的一些不同版本,但它们不能满足我的需要。

connection sql
  • 2 个回答
  • 219 Views
Martin Hope
Kaushal Suthar
Asked: 2019-05-17 23:38:34 +0800 CST

加载共享库时出错:libqjson.so.0

  • 4

我已经安装了 sqlprofiler,但出现以下错误

$ sqlprofiler
sqlprofiler: error while loading shared libraries: libqjson.so.0: cannot open shared object file: No such file or directory

Ubuntu 64 位 18.04

software-installation sql
  • 1 个回答
  • 1342 Views
Martin Hope
ckapilla
Asked: 2019-05-08 15:24:25 +0800 CST

LetsEncrypt for Linux 上的 SQL Server

  • 3

我找到了关于

  • 如何在 Linux 上为 NGINX 安装 LetsEncrypt(有效)
  • 如何在 Windows 上安装 LetsEncrypt for SQL Server(它依赖于 GUI 工具,所以没用),以及
  • 如何在 Linux 上为 SQL Server 安装其他证书

但我在 Linux 上找不到有关 LetsEncrypt for SQL Server 的任何信息。无论我尝试什么,我都会收到此错误消息:
Error: 49940, Severity: 16, State: 1.Unable to open one or more of the user-specified certificate file(s). Verify that the certificate file(s) exist with read permissions for the user and group running SQL Server.

看来这应该是可能的,任何人都可以提供一些提示吗?[编辑]
我已验证这两个 LetsEncrypt 文件具有适当的权限。我复制并重命名了它们,它们由 /var/opt/mssql/mssql.conf 的网络部分中的 tlscert 和 tlskey 键指向。

[network]
tlscert = /etc/ssl/certs/mssql.pem
tlskey = /etc/ssl/private/mssql.key
tlsprotocols = 1.2
forceencryption = 1

我不清楚的一件事是 .pem 格式的 Letsencrypt 私钥是否需要提取到 .key 文件中,所以我两种方式都试过了。无论哪种方式,我都会遇到相同的错误。
这些错误显示在 mssql/log/errorlog 文件中。
这是要求的结果

ls -l  /etc/ssl/certs/mssql.pem:
-rw------- 1 mssql mssql 3586 May  3 22:20 /etc/ssl/certs/mssql.pem
ls -l  /etc/ssl/private/mssql.key
-rw------- 1 mssql mssql 1679 May  3 22:42 /etc/ssl/private/mssql.key

mssql.pem 最初是 fullchain.pem 和 mssql.key 最初是 privkey.pem,它们是 Nginx 所需的文件并且适用于它。

server letsencrypt sql
  • 1 个回答
  • 844 Views
Martin Hope
Hossein Bajan
Asked: 2019-03-28 22:10:45 +0800 CST

无法在 Ubuntu 18.04 上安装 msodbcsql17

  • 19

我根据Microsoft 文档安装了 sqlserver 。以下命令正确执行。

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"

sudo apt-get update
sudo apt-get install -y mssql-server

sudo /opt/mssql/bin/mssql-conf setup

systemctl status mssql-server

sql server 状态

但是当我尝试安装 SQL Server 命令行工具时,出现以下错误。

sudo apt-get install mssql-tools unixodbc-dev


Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mssql-tools : Depends: msodbcsql17 (>= 17.3.0.0) but it is not going 
 to be installed
           Depends: msodbcsql17 (< 17.4.0.0) but it is not going to be 
  installed
 E: Unable to correct problems, you have held broken packages.

我的操作系统是 Linux Ubuntu 18.04.1 LTS

sql mssql
  • 5 个回答
  • 36897 Views
Martin Hope
Amar Singh
Asked: 2018-09-04 08:20:44 +0800 CST

如何在 lubuntu 18.04 上安装 sql developer(.rpm 文件)

  • 9

如何在 lubuntu 18.04 上安装 sql developer

我尝试了来自 Oracle 的以下链接(在您下载 sql developer 时用作安装说明),但该链接有效。

https://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/sqldev-install-linux-1969676.html

错误:

错误:

Oracle 现在提供 .rpm 文件而不是 .zip 并且此站点上的所有答案都可以帮助您使用 .zip 而不是 .rpm

software-installation lubuntu oracle sql sqldeveloper
  • 3 个回答
  • 27548 Views
Martin Hope
Juan Carlos Arqueros Vírseda
Asked: 2018-07-26 05:49:58 +0800 CST

设置环境变量 UBUNTU 18.04 (bionic) - Crontab

  • 4

首先,对不起我的英语。

我的情况是:

  • 有一个 Ubuntu 18.04
  • 想用 crontab python & sh 脚本执行
  • 结果:/usr/lib/oracle/12.2/client64/bin/sqlplus:加载共享库时出错:libsqlplus.so:无法打开共享对象文件:没有这样的文件或目录

我要添加的变量定义如下:

export ORACLE_HOME=/usr/lib/oracle/12.2/client64
export PATH=$PATH:$ORACLE_HOME/bin
export OCI_LIB_DIR=$ORACLE_HOME/lib
export OCI_INC_DIR=/usr/include/oracle/12.2/client64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME

我以多种方式配置环境变量以避免此错误:

  • ~/.bashrc
  • ~/.profile
  • /etc/环境
  • 在 /etc/profile.d 中创建myvars.sh文件

问题是当我为我的用户配置变量(例如在 ~/.profile 中)并在终端上执行一个使用 SQL 连接的 python 或 sh 脚本时,结果很好并且没有给出任何错误。但是当通过crontab执行python时,日志中会出现错误:

/usr/lib/oracle/12.2/client64/bin/sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

我在其他论坛线程中阅读了~./bash_profile用于定义环境变量但没有此文件的内容。谢谢

bash environment-variables cron sql
  • 2 个回答
  • 22188 Views
Martin Hope
Raakh
Asked: 2018-07-14 01:01:06 +0800 CST

Sqlcmd:错误:Microsoft ODBC Driver 17 for SQL Server

  • 7

我无法运行sqlcmd命令
我的操作系统(18.04)是

$ uname -a Linux Linux 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ sqlcmd -S localhost -U SA -P 'password'
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Error code 0x2749.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..
drivers database odbc sql mssql
  • 1 个回答
  • 23767 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve