The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0.

在PostgreSQL9.6.5 安装 Postgis2.4.2 出现错误

post2.4.2 需要PostgreSQL10 以上

如果 运行 brew services start postgresql 服务还在

也可以 brew services stop postgresql

但是进入不了psql -u xxx -d xxx 进不了数据库

解决:

brew switch postgres 9.6.5

时间: 2024-10-16 14:03:30

The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0.的相关文章

Xtrabackup恢复mysql数据时候报错:Original data directory is not empty!

使用Xtrabackup恢复mysql数据时候报错:Original data directory is not empty! at /usr/bin/innobackupex line 568. 网上普遍只说了引起这种想象的两种原因,还有第三种原因是我遇到的: 1.恢复备份文件要保证mysql的data目录为空,否则会报错,解决办法:  # /etc/init.d/mysqld stop # cd /usr/local/mysql # cp -rf data{,.bak} # rm -rf .

Unable to download data from http://ruby.taobao.org/ & don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

安装cocoapods,记录两个问题! 1.镜像已经替换成了 http://ruby.taobao.org/, 还是不能不能安装cocoapods, 报错:Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404 (http://ruby.taobao.org/latest_specs.4.8.gz) 如图: 原来是ruby.taobao.org已经停止基于 HTTP 协议的镜像服务, 启用

启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' ”

一.Mac OS X的升级或其他原因可能会导致MySQL启动或开机自动运行时 在MySQL操作面板上会提示“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' ”, 这应该是某种情况下导致/usr/local/mysql/data的宿主发生了改变, 只需要运行“sudo chown -R mysql /usr/local/mysql/data”即可 mac 下面运行 “sudo c

MYSQL 为表指定文件位置 data directory

背景知识: 如果表不指定文件位置,它会保存到 data/database_name/table_file;其中data在你指定的安装目录下,为了提高IO我们尽可能的 用到多个硬盘的IO能力,这个就需要把表保存到不同的磁盘上了: 方法 1. create table Table_Name(.....) data directory = 'absolute path to directory' create table T(X int ) data directory = 'E:\DB'; '

How To Move a MySQL Data Directory to a New Location on Ubuntu 16.04

16 How To Move a MySQL Data Directory to a New Location on Ubuntu 16.04 PostedJuly 21, 2016 62.1kviews MYSQL BLOCK STORAGE STORAGE UBUNTU UBUNTU 16.04 Introduction Databases grow over time, sometimes outgrowing the space on the file system. You can a

启动 mysql 失败 Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'

Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' 这应该是某种情况下导致/usr/local/mysql/data的宿主发生了改变. 解决方法:打开终端运行 sudo chown -R mysql /usr/local/mysql/data 即可. mac 下运行  sudo chown -R  _mysql:wheel  /usr/local/mysql/data . -c 显

解决Qt for Embedded Linux data directory is not owned by user 0h 错误提示 问题

错误提示: Qt for Embedded Linux data directory is not owned by user 0h 上面的user 0h说明你是以root用户的身份运行.你可以尝试切换一下用户重新运行试试. 或者把/tmp下的qtembedded-0删除在运行 qtembedded-0是个数据文件,我认为在安装好qvfb工具后,第一次使用它时就会在/tmp产生这个文件 它记录着第一次运行它时的用户(可能是root可能是你自己的用户).下一次运行的时候必须还是此用户,或者把qte

mysql报错--initialize specified but the data directory has files in it. Aborting.

初始化msyql时出现报错 C:\mysql-5.7.19-winx64> C:\mysql-5.7.19-winx64\bin\mysqld --initialize-insecure2019-12-25T01:59:21.234788Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see

<add assembly="Microsoft.Office.Tools.Word, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F

Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appr