我尝试在 Windows XP 32 位和 Visual Studio 2010 上通过 @PavelStehule(Erwin Brandstetter在这个答案中向我推荐它)构建plpgsql_check 扩展(我将本文用作手册)。但是,我收到以下错误:
error LNK2001: unresolved external symbol _exec_get_datum_type
error LNK2001: unresolved external symbol _plpgsql_compile
error LNK2001: unresolved external symbol _plpgsql_build_datatype
error LNK2001: unresolved external symbol _plpgsql_stmt_typename
error LNK2001: unresolved external symbol _plpgsql_parser_setup
Run Code Online (Sandbox Code Playgroud)
此外,还有两个 IntelliSense 错误:expected a ')'在 plpgsql.h(第 923 行和第 953 行 - 都在与数据相关的函数中) - 我希望这些是错误警报(如果它们很重要,如何解决它们?)。
经过一番谷歌搜索后,我发现有人在 OS X 上遇到了类似的问题。问题是 plpgsql.so 要么没有链接,要么没有工作。我的电脑上没有 plpgsql.so,但我有 plpgsql.dll 应该对应它。所以我链接了它,错误改变了:
error LNK1107: invalid or corrupt …Run Code Online (Sandbox Code Playgroud) 我试图找出一些可以对MYSQL数据库进行物理备份的工具。喜欢mysqlbackup但它不是开源的。有,mysqldump但我想进行物理备份。有人可以建议我一些工具来备份 MYSQL 数据库吗windows?我正在Innodb用作我的数据库引擎。
我调查了一个经历意外重启的实例,并遇到了通常的服务控制事件,但没有与之关联的用户登录。是否仍然有可能是授权用户启动了重新启动,还是由于 Windows 发出了命令?如果是授权用户,在 SQL 错误日志和事件日志之外,我可以在哪里尝试识别用户?
Log Name: System
Source: Service Control Manager
Date: 12/24/2014 9:02:24 AM
Event ID: 7036
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Computer: XXX
Description:
The SQL Server Agent (MSSQLSERVER) service entered the stopped state.
我在 Windows 8 上,我的 SSD 损坏了,我在新驱动器上安装了 Windows。我在 MySQL 5.6.12 之前有过,现在我安装了 5.6.17 并尝试移动整个数据目录。MySQL 安装位置与之前相同。但是当我启动它时,我收到以下错误:
2015-02-23 17:44:44 12492 [Note] Plugin 'FEDERATED' is disabled.
wampmysqld64: Incorrect information in file: '.\mysql\plugin.frm'
2015-02-23 17:44:44 12492 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2015-02-23 17:44:44 12492 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-02-23 17:44:44 12492 [Note] InnoDB: The InnoDB memory heap is disabled
2015-02-23 17:44:44 12492 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-02-23 17:44:44 …Run Code Online (Sandbox Code Playgroud) 我必须在 Windows 7 下的笔记本电脑上安装 Oracle 11g XE。所以我按照本教程进行操作。安装甚至没有失败一次,似乎还可以。但是每次我尝试使用 SQLPLUS 连接到它时,它都会因ORA-12638错误而失败...
SQL> connect
Enter user-name: system
Enter password:
ERROR:
ORA-12638: Credential retrieval failed
Run Code Online (Sandbox Code Playgroud)
经过一番搜索,我找到了这个网站,并尝试用第二种解决方案来解决我的问题。但是后来我得到了另一种错误:ORA-01034和ORA-27101 ...
SQL> connect
Enter user-name: system
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Process ID: 0
Session ID: 0 Serial number: 0
Run Code Online (Sandbox Code Playgroud)
似乎我的数据库一开始就不存在......如果查看[...]\oraclexe\app\oracle\oradata\XE,则没有文件。
在查看日志时[...]\oraclexe\app\oracle\product\11.2.0\server\config\log,我发现在安装过程中,应用程序甚至无法连接到创建的数据库。
文件中的示例:postDBCreation.log
SQL> connect "SYS"/"&&sysPassword" as SYSDBA
ERROR:
ORA-12638: Credential retrieval failed
[...]
SQL> …Run Code Online (Sandbox Code Playgroud) 我在双引导机器上安装了 PostgreSQL 9.4(在 Win 7 和 Ubuntu 14.10 上)。这两个系统共享一个驱动器(NTFS 格式),其中包含一个在 Windows 下创建的 PSQL 数据库目录。显然,PSQL 安装是特定于系统的,而且它们也恰好位于不同的分区上。该驱动器在 Linux 下自动挂载,并授予完全读/写/执行权限。
我想知道是否可以在两个系统之间共享结构和数据,而无需在每次加载新操作系统时复制和/或复制所有内容。实际上,我希望所有数据在 Windows 中创建时都可用于 Ubuntu,反之亦然。
这是可能的,如果是这样,假设所有数据最初是在 Windows 下生成的,如何从 Linux 设置它?
编辑:我尝试运行:
sudo pg_dropcluster --stop 9.4 main
Run Code Online (Sandbox Code Playgroud)
其次是
sudo pg_createcluster -d /db_from_windows_path 9.4 main
Run Code Online (Sandbox Code Playgroud)
这似乎有效,但是当再次启动服务器时,我得到:
sudo /etc/init.d/postgresql start
* Starting PostgreSQL 9.4 database server
* Error: could not exec /usr/lib/postgresql/9.4/bin/pg_ctl /usr/lib/postgresql/9.4/bin/pg_ctl start -D /db_from_windows_path -s -o -c config_file="/etc/postgresql/9.4/main/postgresql.conf" :
[fail]
Run Code Online (Sandbox Code Playgroud)
它看起来非常神秘,特别是因为它/var/log/postgresql/postgresql-9.4-main.log是完全空的,/var/log/postgresql/目录的其余部分也是如此
编辑 2:经过一番观察,我注意到 chown 没有被占用,因为 NTFS 系统显然只能在安装时设置。在修复 /etc/fstab 以将所有权授予 postgres 后, …
在 2 节点 Windows Server 故障转移群集配置中,如何重新启动 SQL Server 服务而不故障转移到其他节点?
Error creating SQL Model Connection connection to TSMDB1. (Error: [jcc][t4][2010][11246][3.68.61] Connection authorization failure occurred. Reason: Local security service non-retryable error. ERRORCODE=-4214, SQLSTATE=28000)
[jcc][t4][2010][11246][3.68.61] Connection authorization failure occurred. Reason: Local security service non-retryable error. ERRORCODE=-4214, SQLSTATE=28000
Error creating JDBC Connection connection to TSMDB1. (Error: [jcc][t4][2010][11246][3.68.61] Connection authorization failure occurred. Reason: Local security service non-retryable error. ERRORCODE=-4214, SQLSTATE=28000)
[jcc][t4][2010][11246][3.68.61] Connection authorization failure occurred. Reason: Local security service non-retryable error. ERRORCODE=-4214, SQLSTATE=28000
Run Code Online (Sandbox Code Playgroud)
一直试图弄清楚为什么我无法远程连接到 DB2 服务器。
如果可能,我想知道如何显示(使用命令行)my.ini服务器使用的路径。
我在 Windows IIS 中使用 MySQL 5.6。
我有以下几点:
Program Files\MySQL\MySQL Server 5.6\my-default.iniC:\ProgramData\MySQL\MySQL Server 5.6\my.ini.当然,服务器正在使用第二个。路径是否存储在 mysql 服务器变量内的任何变量中?我正在检查一些系统变量,但找不到。
有任何想法吗?
更新罗纳尔多的帖子后,我运行了一个 --help ,这是我发现的:
...
Default options are read from the following files in the given order:
C:\Windows\my.ini
C:\Windows\my.cnf
C:\my.ini
C:\my.cnf
C:\Program Files\MySQL\MySQL Server 5.6\my.ini
C:\Program Files\MySQL\MySQL Server 5.6\my.cnf
The following groups are read: mysql client
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit.
...
Run Code Online (Sandbox Code Playgroud)
奇怪的是我没有这些文件。我坐下来显示每个文件夹上的隐藏文件。
所以,我看了一下这篇 …
我似乎无法使用我的数据库在 Windows 上转储/恢复。使用的行和错误消息:
pg_dump -h localhost -U postgres --format=c -O -d ue > latest.dump
pg_restore -h localhost -U postgres -d ue latest.dump
Run Code Online (Sandbox Code Playgroud)
得到这个错误,
pg_restore: [archiver] 输入文件似乎不是有效的存档
有了这个,
pg_dump -h localhost -U postgres -O -d ue > latest.dump
psql -h localhost -U postgres -d ue -f latest.dump
Run Code Online (Sandbox Code Playgroud)
我收到这个错误,
psql:latest.dump:1: 错误:编码“UTF8”的字节序列无效:0xff
我完全被难住了。大多数搜索结果与不使用正确的pg_restore/psql与导出的文件类型有关pg_dump,但正如您在上面看到的,我已经考虑了这一点。
latest.dump 似乎正确填写,至少以纯格式导出我可以阅读的 SQL 并且是数据库的正确导出。
windows ×10
mysql ×3
postgresql ×3
installation ×2
linux ×2
backup ×1
clustering ×1
command-line ×1
db2 ×1
db2-10.5 ×1
failover ×1
innodb ×1
my.ini ×1
mysql-5.5 ×1
mysqld ×1
oracle ×1
pg-dump ×1
pg-restore ×1
remote ×1
sql-server ×1
upgrade ×1