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
    • 最新
    • 标签
主页 / user-56448

Omri's questions

Martin Hope
Omri
Asked: 2022-10-06 13:29:33 +0800 CST

Aurora Postgres 中的 WAL 文件保留

  • 0

我计划创建一堆logical_replication启用的 Aurora Postgres 集群,因此我不必重新启动我的集群一次需要为未来的复制启用logical_replication。

是否可以为 WAL 文件配置保留,因为可以为 MySQL binlogs 这样做?如果没有,我是否会冒着磁盘空间的风险,因为 WAL 文件会无限增长?请指教。

postgresql replication
  • 1 个回答
  • 73 Views
Martin Hope
Omri
Asked: 2020-01-27 02:04:13 +0800 CST

mysql转储和导入后问号而不是希伯来字符

  • 0

我尝试将我的 AWS RDS 实例从 Aurora 迁移到 MySQL。我从 Aurora 创建了一个转储文件并将其导入 MySQL 实例。

两个实例具有相同的字符集。

mysql> show variables like '%char%';
+--------------------------+-------------------------------------------+
| Variable_name            | Value                                     |
+--------------------------+-------------------------------------------+
| character_set_client     | utf8mb4                                   |
| character_set_connection | utf8mb4                                   |
| character_set_database   | latin1                                    |
| character_set_filesystem | binary                                    |
| character_set_results    | utf8mb4                                   |
| character_set_server     | latin1                                    |
| character_set_system     | utf8                                      |
| character_sets_dir       | /rdsdbbin/mysql-5.7.26.R1/share/charsets/ |
+--------------------------+-------------------------------------------+

在原始数据库中,希伯来字母显示为黑色菱形(在应用程序端转换为希伯来语)。迁移到新的 MySQL 实例后,我看到的不是黑色菱形问号。

可能是什么问题?

mysql character-set
  • 1 个回答
  • 865 Views
Martin Hope
Omri
Asked: 2017-08-18 00:53:35 +0800 CST

模式从 mysql 4 迁移到 mysql 5.6 后的问题

  • 6

最近我将一些模式从实例迁移到mysql 4一个实例和导入操作。经过一些语法调整后,我可以成功导入转储文件。mysql 5.6mysqldump

导入后,我查看了日志文件,发现了一些问题。有谁知道那是什么以及如何解决它?

InnoDB: Error in pars0opt.cc: table cars/cars_ftr_a has prefix_len != 0
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_BEING_DELETED'
InnoDB: in InnoDB data dictionary has unknown flags 50.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_BEING_DELETED_CACHE'
InnoDB: in InnoDB data dictionary has unknown flags 50.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_CONFIG'
InnoDB: in InnoDB data dictionary has unknown flags 50.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_DELETED'
InnoDB: in InnoDB data dictionary has unknown flags 50.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_DELETED_CACHE'
InnoDB: in InnoDB data dictionary has unknown flags 50.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_000000000000040c_INDEX_1'
InnoDB: in InnoDB data dictionary has unknown flags 40.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_000000000000040c_INDEX_2'
InnoDB: in InnoDB data dictionary has unknown flags 40.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_000000000000040c_INDEX_3'
InnoDB: in InnoDB data dictionary has unknown flags 40.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_000000000000040c_INDEX_4'
InnoDB: in InnoDB data dictionary has unknown flags 40.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_000000000000040c_INDEX_5'
InnoDB: in InnoDB data dictionary has unknown flags 40.
2017-08-16 17:14:15 7fd3081c4700  InnoDB: Warning: table 'cars/FTS_00000000000002cb_000000000000040c_INDEX_6'
InnoDB: in InnoDB data dictionary has unknown flags 40.

编辑(添加建表语句)

Create Table: CREATE TABLE `cars_ftr_a` (
  `id` int(10) unsigned NOT NULL DEFAULT '0',
  `manufacturer` varchar(100) NOT NULL DEFAULT '',
  `model` varchar(255) NOT NULL DEFAULT '',
  `object_type` int(10) unsigned NOT NULL DEFAULT '0',
  `fts_string` text NOT NULL,
  `manufactor_id` int(10) unsigned NOT NULL DEFAULT '0',
  `model_id` int(10) unsigned NOT NULL DEFAULT '0',
  `version_id` int(10) unsigned NOT NULL DEFAULT '0',
  `version` varchar(100) NOT NULL DEFAULT '',
  `group_id` int(10) unsigned NOT NULL DEFAULT '0',
  `group_name` varchar(100) DEFAULT NULL,
  `a` int(10) unsigned DEFAULT NULL,
  `b` varchar(100) NOT NULL DEFAULT '',
  `price` int(10) unsigned NOT NULL DEFAULT '0',
  `c` int(10) unsigned NOT NULL DEFAULT '0',
  `d` varchar(100) NOT NULL DEFAULT '',
  `e` float NOT NULL DEFAULT '0',
  `f` int(10) unsigned NOT NULL DEFAULT '0',
  `g` int(10) unsigned NOT NULL DEFAULT '0',
  `h` int(10) unsigned NOT NULL DEFAULT '0',
  `i` smallint(6) unsigned NOT NULL DEFAULT '0',
  `j` varchar(100) NOT NULL DEFAULT '',
  `k` int(10) unsigned NOT NULL DEFAULT '0',
  `l` int(10) unsigned NOT NULL DEFAULT '0',
  `m` int(10) unsigned NOT NULL DEFAULT '0',
  `n` varchar(100) NOT NULL DEFAULT '',
  `o` int(10) unsigned NOT NULL DEFAULT '0',
  `p` text NOT NULL,
  `q` varchar(100) NOT NULL DEFAULT '',
  `r` int(10) unsigned NOT NULL DEFAULT '0',
  `s` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`,`fts_string`(10)),
  FULLTEXT KEY `fts_string` (`fts_string`)
) ENGINE=InnoDB DEFAULT CHARSET=hebrew
mysql mysql-5.6
  • 2 个回答
  • 285 Views
Martin Hope
Omri
Asked: 2017-08-15 01:48:14 +0800 CST

将 mysql 模式复制到新版本的新实例

  • 2

我有一些模式,它们包含在 mysql 4 实例中,我想将它们移动到在较新版本 - mysql 5.6 下运行的其他 mysql 实例。此实例已包含一些模式。我想将这些模式从旧版本移动到新版本,从而摆脱旧的 mysql 实例。

这样做的最佳做法是什么?我是否需要升级每个版本(4-->5.0、5.0-->5.1 等),并且只有在模式更新到 5.6 版后我才能将它们移动到新实例?

我没有任何升级 mysql 的经验,所以任何提示都会很棒。

mysql upgrade
  • 2 个回答
  • 101 Views
Martin Hope
Omri
Asked: 2017-05-16 04:45:32 +0800 CST

mysqldump错误

  • 1

我正在使用 mysql 5.0.5 版本并尝试转储我的数据,以便为版本升级做准备,但出现错误。

我跑:

./mysqldump -u root -p --add-drop-table --all-databases > /data/all_db_dump.mysql

并得到:

mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `abc` at row: 408640

我回顾了一些类似的问题并找到了一些建议:

  • 运行--skip-extended-insert- 没有帮助
  • 运行--hex-blob- 没有帮助
  • 配置max_allowed_packet为 1024M - 没有帮助(我有 4 GB RAM)
  • 配置net_read_timeout为 7200 - 没有帮助
  • 配置net_write_timeout为 7200 - 没有帮助

对于以上所有内容,都会出现相同的错误。

我在转储数据时监视了服务器的内存,没有发现任何问题。可能是什么问题?

mysqldump
  • 1 个回答
  • 1174 Views
Martin Hope
Omri
Asked: 2017-03-29 01:57:23 +0800 CST

清除 mysql 4 中的旧二进制日志

  • 0

我需要从 mysql 版本 4 中清除二进制日志。我查看了手册,发现语法类似于高级版本:

PURGE MASTER LOGS TO mysql-bin.xxx

但是,当我使用此命令时,出现以下错误:

ERROR 1064 (00000): You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'BINARY LOGS TO 'mysql-bin.xxx'' at line 1

请注意。

mysql binlog
  • 1 个回答
  • 386 Views
Martin Hope
Omri
Asked: 2015-01-12 01:21:19 +0800 CST

在带有 OVER 的窗口函数中使用 DISTINCT

  • 20

我正在尝试将查询从 Oracle 迁移到 SQL Server 2014。

这是我在 Oracle 中运行良好的查询:

select
count(distinct A) over (partition by B) / count(*) over() as A_B
from MyTable 

这是我尝试在 SQL Server 2014 中运行此查询后遇到的错误。

Use of DISTINCT is not allowed with the OVER clause

有谁知道是什么问题?SQL Server 中是否可以进行此类查询?请指教。

sql-server sql-server-2014
  • 5 个回答
  • 61776 Views

Sidebar

Stats

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

    连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目

    • 12 个回答
  • Marko Smith

    如何让sqlplus的输出出现在一行中?

    • 3 个回答
  • Marko Smith

    选择具有最大日期或最晚日期的日期

    • 3 个回答
  • Marko Smith

    如何列出 PostgreSQL 中的所有模式?

    • 4 个回答
  • Marko Smith

    列出指定表的所有列

    • 5 个回答
  • Marko Smith

    如何在不修改我自己的 tnsnames.ora 的情况下使用 sqlplus 连接到位于另一台主机上的 Oracle 数据库

    • 4 个回答
  • Marko Smith

    你如何mysqldump特定的表?

    • 4 个回答
  • Marko Smith

    使用 psql 列出数据库权限

    • 10 个回答
  • Marko Smith

    如何从 PostgreSQL 中的选择查询中将值插入表中?

    • 4 个回答
  • Marko Smith

    如何使用 psql 列出所有数据库和表?

    • 7 个回答
  • Martin Hope
    Jin 连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目 2014-12-02 02:54:58 +0800 CST
  • Martin Hope
    Stéphane 如何列出 PostgreSQL 中的所有模式? 2013-04-16 11:19:16 +0800 CST
  • Martin Hope
    Mike Walsh 为什么事务日志不断增长或空间不足? 2012-12-05 18:11:22 +0800 CST
  • Martin Hope
    Stephane Rolland 列出指定表的所有列 2012-08-14 04:44:44 +0800 CST
  • Martin Hope
    haxney MySQL 能否合理地对数十亿行执行查询? 2012-07-03 11:36:13 +0800 CST
  • Martin Hope
    qazwsx 如何监控大型 .sql 文件的导入进度? 2012-05-03 08:54:41 +0800 CST
  • Martin Hope
    markdorison 你如何mysqldump特定的表? 2011-12-17 12:39:37 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 对 SQL 查询进行计时? 2011-06-04 02:22:54 +0800 CST
  • Martin Hope
    Jonas 如何从 PostgreSQL 中的选择查询中将值插入表中? 2011-05-28 00:33:05 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 列出所有数据库和表? 2011-02-18 00:45:49 +0800 CST

热门标签

sql-server mysql postgresql sql-server-2014 sql-server-2016 oracle sql-server-2008 database-design query-performance sql-server-2017

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve