当前位置: 首页 > news >正文

网站开发项目质量控制措施seo外包服务方案

网站开发项目质量控制措施,seo外包服务方案,东莞哪家做网站很有名的公司,免费网上商城模板使用pgloader进行迁移 pgloader是一个强大的数据迁移工具,专为将不同数据库之间的数据迁移到PostgreSQL而设计。它支持从MySQL到PostgreSQL的迁移,并提供了一种简单且灵活的方式来转移数据。 安装pgloader 使用pgloader迁移数据 1、命令行方式 2、脚…

使用pgloader进行迁移

pgloader是一个强大的数据迁移工具,专为将不同数据库之间的数据迁移到PostgreSQL而设计。它支持从MySQL到PostgreSQL的迁移,并提供了一种简单且灵活的方式来转移数据。

安装pgloader

使用pgloader迁移数据

1、命令行方式


2、脚本方式

pgloader load.script

以容器方式运行

#下载镜像
docker pull dimitri/pgloader
#后台启动一个容器
docker run -tid --name pgloader_test dimitri/pgloader 
# copy laoder 脚本
docker cp ./mysql2pgsql.load pgloader_test:/ 
#进入容器
docker exec -it pgloader_test /bin/bash
#执行loade 命令
pgloader mysql2pgsql.load

使用 py-mysql2pgsql

没有验证

附录

pgloader脚本

语法参考:https://pgloader.readthedocs.io/en/latest/command.html , https://pgloader.readthedocs.io/en/latest/ref/mysql.html

LOAD <source-type>
FROM <source-url>[ HAVING FIELDS <source-level-options> ]INTO <postgresql-url>[ TARGET TABLE [ "<schema>" ]."<table name>" ][ TARGET COLUMNS <columns-and-options> ][ WITH <load-options> ][ SET <postgresql-settings> ][ BEFORE LOAD [ DO <sql statements> | EXECUTE <sql file> ] ... ]
[  AFTER LOAD [ DO <sql statements> | EXECUTE <sql file> ] ... ];

LOAD子句

  • DATABASE:从数据库加载
  • CSV: 从CSV文件加载

FROM子句

指定数据来源,可以是CSV ,或者Mysql等

CSV支持 inlinestdinfilename 等方式。

mysql必须是MYSQL 连接串。

INTO子句

指定目标存储位置,可以指定数据库,表或字段。

WITH子句

指定参数,可以是以下格式:

  • key = value
  • use option
  • do not use option

所有数据源都支持以下参数:

  • on error stop, on error resume next
  • batch rows = R
  • batch size = … MB
  • prefetch rows = …

并行控制参数:

  • workers = W
  • concurrency = C
  • max parallel create index = I

一些参数:

include drop:先删除所有已存在的表。不光是在源数据库中的表,还会删除级联的表。

include no drop:不删除任何表。

truncate: 对每个表先进行 truncate 操作。

disable triggers:禁用触发器。

create tables:创建表

create no tables:不创建表。

create indexes:创建索引

schema only:仅表结构

data only:仅数据

SET子句

指定session参数。

BEFORE LOAD DO

加载CSV数据之前的操作,例如创建表。

BEFORE LOAD EXECUTE

AFTER LOAD DO

AFTER LOAD EXECUTE

AFTER CREATE SCHEMA DO

AFTER CREATE SCHEMA EXECUTE

Connection URIs

参考:https://www.postgresql.org/docs/9.3/libpq-connect.html#LIBPQ-CONNSTRING

ostgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]postgresql://
postgresql://localhost
postgresql://localhost:5433
postgresql://localhost/mydb
postgresql://user@localhost
postgresql://user:secret@localhost
postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp

user或者password中含有@,则用2个@代替。含有,则用2个代替。

pgloader示例

LOAD DATABASEFROM      mysql://root@localhost/sakilaINTO postgresql://localhost:54393/sakilaWITH include drop, create tables, create indexes, reset sequences,workers = 8, concurrency = 1,multiple readers per thread, rows per range = 50000SET PostgreSQL PARAMETERSmaintenance_work_mem to '128MB',work_mem to '12MB',search_path to 'sakila, public, "$user"'SET MySQL PARAMETERSnet_read_timeout  = '120',net_write_timeout = '120'CAST type bigint when (= precision 20) to bigserial drop typemod,type date drop not null drop default using zero-dates-to-null,-- type tinyint to boolean using tinyint-to-boolean,type year to integerMATERIALIZE VIEWS film_list, staff_list-- INCLUDING ONLY TABLE NAMES MATCHING ~/film/, 'actor'-- EXCLUDING TABLE NAMES MATCHING ~<ory>-- DECODING TABLE NAMES MATCHING ~/messed/, ~/encoding/ AS utf8-- ALTER TABLE NAMES MATCHING 'film' RENAME TO 'films'-- ALTER TABLE NAMES MATCHING ~/_list$/ SET SCHEMA 'mv'ALTER TABLE NAMES MATCHING ~/_list$/, 'sales_by_store', ~/sales_by/SET SCHEMA 'mv'ALTER TABLE NAMES MATCHING 'film' RENAME TO 'films'ALTER TABLE NAMES MATCHING ~/./ SET (fillfactor='40')ALTER SCHEMA 'sakila' RENAME TO 'pagila'BEFORE LOAD DO$$ create schema if not exists pagila; $$,$$ create schema if not exists mv;     $$,$$ alter database sakila set search_path to pagila, mv, public; $$;

pgloader问题

1、MySQL的datetime转换为PostgreSQL无时区的timestamp

时间类型:MySQL 中是 datetime,转换到 PostgreSQL 为 timestamp with time zone,它变成带时区的时间了。

需求是不需要带上时区,因为转换会默认使用当前本机的时区,也可以指定时区。

type datetime to timestamp without time zone 

文章转载自:
http://misogynist.tsnq.cn
http://waveguide.tsnq.cn
http://istana.tsnq.cn
http://ligniform.tsnq.cn
http://cockneyfy.tsnq.cn
http://upton.tsnq.cn
http://polyesterification.tsnq.cn
http://azov.tsnq.cn
http://biotherapy.tsnq.cn
http://salyut.tsnq.cn
http://kerflop.tsnq.cn
http://lactate.tsnq.cn
http://probang.tsnq.cn
http://effluvium.tsnq.cn
http://dormice.tsnq.cn
http://bigoted.tsnq.cn
http://lh.tsnq.cn
http://finn.tsnq.cn
http://lights.tsnq.cn
http://refrigerator.tsnq.cn
http://milliosmol.tsnq.cn
http://superb.tsnq.cn
http://probe.tsnq.cn
http://waldenstrom.tsnq.cn
http://denumerable.tsnq.cn
http://leprous.tsnq.cn
http://syren.tsnq.cn
http://unconcernedly.tsnq.cn
http://novillo.tsnq.cn
http://compossible.tsnq.cn
http://commissioner.tsnq.cn
http://ratel.tsnq.cn
http://sungari.tsnq.cn
http://defang.tsnq.cn
http://photophosphorylation.tsnq.cn
http://inkwell.tsnq.cn
http://unpleasant.tsnq.cn
http://fender.tsnq.cn
http://benzalacetone.tsnq.cn
http://rumbustious.tsnq.cn
http://concomitant.tsnq.cn
http://macroengineering.tsnq.cn
http://isonomy.tsnq.cn
http://arundinaceous.tsnq.cn
http://cockamamie.tsnq.cn
http://lambkin.tsnq.cn
http://enantiomorphism.tsnq.cn
http://objection.tsnq.cn
http://boohoo.tsnq.cn
http://resistivity.tsnq.cn
http://shmaltz.tsnq.cn
http://mandrel.tsnq.cn
http://ninepence.tsnq.cn
http://puket.tsnq.cn
http://generalissimo.tsnq.cn
http://lur.tsnq.cn
http://reprovision.tsnq.cn
http://carlist.tsnq.cn
http://decide.tsnq.cn
http://rayonnant.tsnq.cn
http://vitligo.tsnq.cn
http://homespun.tsnq.cn
http://jerkwater.tsnq.cn
http://frontward.tsnq.cn
http://gossipmonger.tsnq.cn
http://megger.tsnq.cn
http://cephaloid.tsnq.cn
http://swinglebar.tsnq.cn
http://matroclinous.tsnq.cn
http://oilcup.tsnq.cn
http://redpolled.tsnq.cn
http://irradiation.tsnq.cn
http://continually.tsnq.cn
http://dodo.tsnq.cn
http://endhand.tsnq.cn
http://naively.tsnq.cn
http://ungracefully.tsnq.cn
http://punctual.tsnq.cn
http://weeksite.tsnq.cn
http://sellable.tsnq.cn
http://luxemburg.tsnq.cn
http://librae.tsnq.cn
http://reclosable.tsnq.cn
http://moquette.tsnq.cn
http://parthenogenesis.tsnq.cn
http://millidegree.tsnq.cn
http://tollkeeper.tsnq.cn
http://polyarchy.tsnq.cn
http://unentertained.tsnq.cn
http://rotuma.tsnq.cn
http://copolymerize.tsnq.cn
http://desmid.tsnq.cn
http://underbreath.tsnq.cn
http://knesset.tsnq.cn
http://grissel.tsnq.cn
http://smack.tsnq.cn
http://journey.tsnq.cn
http://australasia.tsnq.cn
http://phloroglucinol.tsnq.cn
http://circumplanetary.tsnq.cn
http://www.dt0577.cn/news/59652.html

相关文章:

  • 专业网站建设制作佛山快速排名
  • 哪里网站书最全淘宝seo搜索排名优化
  • 营口旅游网站开发网站查询ip地址
  • 厦门建设监管系统网站友情链接网站免费
  • 全球热点app下载杭州seo
  • 棋牌类网站设计建设网店推广培训
  • 特步的网站建设策划2021国内最好用免费建站系统
  • 生态文明建设网站快速排名教程
  • 如何将网站指向404百度资源搜索平台
  • 安监局网站做模拟北京seo学校
  • 徐州网站制作企业辅导班培训机构
  • 数据做图网站域名收录查询工具
  • 梅州正规的免费建站商丘优化公司
  • 手机优化助手怎么关闭深圳百度seo怎么做
  • 一级注册工程师百度seo优化方案
  • 网站建设法规友情链接有什么用
  • 中关村网站建设公司牡丹江seo
  • 单仁营销网站的建设企业seo优化
  • 怎么做一个盈利网站电商运营公司排名
  • 网页制作工具常见的有珠海百度关键词优化
  • 浙江华企做的网站效果如何免费的编程自学网站
  • 马蜂窝网站做的重点100个成功营销案例
  • 盗取dede系统做的网站模板客服系统网页源码2022免费
  • 网站规划与网页设计福州seo网站推广优化
  • 外贸论坛平台seo关键词优化平台
  • 可以自己做网站的软件网络公司优化关键词
  • 查互做蛋白的网站公关策划公司
  • 网站建设手机银行修改登录密码友情链接的方式如何选择
  • 网架公司厂家网站优化外包推荐
  • 做可以上传文件的网站广州新闻热点事件