如何在 Ubuntu 20.04 中安装 PostgreSQL-13?
我正在使用 Ubuntu 14.04。我想导入位于服务器上的数据库/var/www/backup.zip。我也可以使用 Putty 进行 SSH 访问。注意到服务器上安装了 MySQL 和 phpMyadmin。
当我运行此命令时
mysql -u root -p spy < /var/www/backup.zip
Run Code Online (Sandbox Code Playgroud)
没发生什么事。换行显示以->.
我现在该怎么办?
我的问题是安装 postgresql 后尝试配置 postgresql 数据库,它显示如下错误消息:
dineshlap@ss-laptop:~$ sudo -u postgres psql postgres
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Run Code Online (Sandbox Code Playgroud)
我从互联网上尝试了很多解决方案。但是,没有什么对我有用!:(
如果您知道此问题的解决方案,请回复此帖子!
注意:我使用的是 ubuntu 14.04(64 位)和 postgresql 9.3
我想在 Ubuntu 和 Windows(双启动)中使用驻留在 NTFS 分区上的 MySql 数据库文件。它会起作用吗?有什么问题吗?
我无法为 postgresql 安装 libpq-dev,我试过了
sudo apt-get install libpq-dev
Run Code Online (Sandbox Code Playgroud)
和输出
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:
libpq-dev : Depends: libpq5 (= 9.3.9-0ubuntu0.14.04) but 9.4.4-1.pgdg14.04+1 is to …Run Code Online (Sandbox Code Playgroud) 所以我的一个朋友想建立一个数据库来管理他的调查数据。但他不会编程。所以我提供了一些帮助,但也想确保他可以在我不在的时候管理他的东西。
基本上,我正在寻找一个与 microsoft access 有点类似的数据库应用程序,这意味着我可以设置数据库和一些表单。我知道我可以设置 mysql 和 http 服务器,但我正在寻找一种解决方案,它具有尽可能多的 gui 并且不依赖于服务器,因此他可以轻松地将数据库移动到另一个工作站。
你会推荐什么亲爱的 ubuntu 伙伴?
我刚刚安装了 LAMP 服务器和 PHPMyAdmin。登录后,我注意到已经创建了数据库,其中有大量的表和行。
我的问题当然是我是否可以在不以任何方式使系统失败的情况下将它们全部删除。下面是我进入第一个数据库后看到的内容。

database ×10
mysql ×5
postgresql ×3
14.04 ×2
18.04 ×1
19.04 ×1
19.10 ×1
20.04 ×1
command-line ×1
dependencies ×1
dual-boot ×1
gui ×1
oracle ×1
server ×1