diff --git a/app/en/blogs/2022/Using-pg_chameleon-to-Migrate-Data-from-MySQL-to-openGauss.md b/app/en/blogs/2022/Using-pg_chameleon-to-Migrate-Data-from-MySQL-to-openGauss.md index 9639c50084a4e5c44027f825cada2bdf30354f41..38ee7fefe5eb5ef681099aec968d269b8546c8da 100644 --- a/app/en/blogs/2022/Using-pg_chameleon-to-Migrate-Data-from-MySQL-to-openGauss.md +++ b/app/en/blogs/2022/Using-pg_chameleon-to-Migrate-Data-from-MySQL-to-openGauss.md @@ -75,7 +75,7 @@ pg_conn: host: "1.1.1.1" port: "5432" user: "opengauss_test" - password: "password_123" + password: "********_***" database: "opengauss_database" charset: "utf8" sources: @@ -84,7 +84,7 @@ sources: host: "1.1.1.1" port: "3306" user: "mysql_test" - password: "password123" + password: "***********" charset: 'utf8' connect_timeout: 10 schema_mappings: @@ -112,7 +112,7 @@ keep_existing_schema: No The preceding configuration file indicates that the username and password for connecting to MySQL are **mysql_test** and **password123** respectively during data migration. The IP address and port number of the MySQL server are 1.1.1.1 and 3306, respectively. The source database is **mysql_database**. -The username and password for connecting to openGauss are **opengauss_test** and **password_123**, respectively. The IP address and port number of the openGauss server are 1.1.1.1 and 5432, respectively. The target database is **opengauss_database**. The **sch_mysql_database** schema is created in **opengauss_database**, and all tables to be migrated are in this schema. +The username and password for connecting to openGauss are **opengauss_test** and **********_*****, respectively. The IP address and port number of the openGauss server are 1.1.1.1 and 5432, respectively. The target database is **opengauss_database**. The **sch_mysql_database** schema is created in **opengauss_database**, and all tables to be migrated are in this schema. Note that the user must have the permission to remotely connect to MySQL and openGauss as well as the read and write permissions on the corresponding databases. For openGauss, the host where pg_chameleon runs must be in the remote access whitelist of openGauss. For MySQL, the user must have the **RELOAD**, **REPLICATION CLIENT**, and **REPLICATION SLAVE** permissions. diff --git a/app/en/blogs/2022/Using-pgloader-to-Migrate-Data-from-MySQL-to-openGauss.md b/app/en/blogs/2022/Using-pgloader-to-Migrate-Data-from-MySQL-to-openGauss.md index c4533df1cd4d5d8e12b65fc235301b5a7f6e42ff..915feb1666fc46329f03264312eab4243f0ec859 100644 --- a/app/en/blogs/2022/Using-pgloader-to-Migrate-Data-from-MySQL-to-openGauss.md +++ b/app/en/blogs/2022/Using-pgloader-to-Migrate-Data-from-MySQL-to-openGauss.md @@ -86,7 +86,7 @@ The following is an example of the configuration file for migrating data from My ``` LOAD DATABASE FROM mysql://mysql_test:password123@1.1.1.1:3306/mysql_database -INTO postgresql://opengauss_test:password_123@1.1.1.1:5432/opengauss_database +INTO postgresql://opengauss_test:********_***@1.1.1.1:5432/opengauss_database WITH include drop, create tables, create indexes, reset no sequences, workers = 8, concurrency = 1, @@ -98,7 +98,7 @@ WITH include drop, create tables, create indexes, reset no sequences, The preceding configuration file indicates that the username and password for connecting to MySQL are **mysql_test** and **password123** respectively during data migration. The IP address and port number of the MySQL server are **1.1.1.1** and **3306**, respectively. The source database is **mysql_database**. -The username and password for connecting to openGauss are **opengauss_test** and **password_123**, respectively. The IP address and port number of the openGauss server are **1.1.1.1** and **5432**, respectively, and the target database is **opengauss_database**. +The username and password for connecting to openGauss are **opengauss_test** and **********_*****, respectively. The IP address and port number of the openGauss server are **1.1.1.1** and **5432**, respectively, and the target database is **opengauss_database**. Note that the user must have the permission to remotely connect to MySQL and openGauss and the read and write permissions on the corresponding databases. For openGauss, the host where pgloader runs must be in the remote access whitelist of openGauss. diff --git "a/app/zh/blogs/2022/Go\350\257\255\350\250\200\350\277\236\346\216\245openGauss\347\216\257\345\242\203\346\220\255\345\273\272\350\277\207\347\250\213\357\274\210\345\220\253OG\345\256\211\350\243\205\357\274\211.md" "b/app/zh/blogs/2022/Go\350\257\255\350\250\200\350\277\236\346\216\245openGauss\347\216\257\345\242\203\346\220\255\345\273\272\350\277\207\347\250\213\357\274\210\345\220\253OG\345\256\211\350\243\205\357\274\211.md" index b0c2f49333b8b6d985fe74aba5a6df603f39fd8c..a5842c0e0be897260724b1e83f645641d1e34ee7 100644 --- "a/app/zh/blogs/2022/Go\350\257\255\350\250\200\350\277\236\346\216\245openGauss\347\216\257\345\242\203\346\220\255\345\273\272\350\277\207\347\250\213\357\274\210\345\220\253OG\345\256\211\350\243\205\357\274\211.md" +++ "b/app/zh/blogs/2022/Go\350\257\255\350\250\200\350\277\236\346\216\245openGauss\347\216\257\345\242\203\346\220\255\345\273\272\350\277\207\347\250\213\357\274\210\345\220\253OG\345\256\211\350\243\205\357\274\211.md" @@ -264,9 +264,9 @@ times: '12:30' Successfully set core path. Are you sure you want to create the user[omm] and create trust for it (yes/no)? yes Please enter password for cluster user. - Password: omm123 + Password: ****** Please enter password for cluster user again. - Password: omm123 + Password: ****** Successfully created [omm] user on all nodes. Preparing SSH service. Successfully prepared SSH service. diff --git "a/app/zh/blogs/July/\346\242\246\345\271\273\350\201\224\345\212\250-MogDB-openGauss\344\270\216ShardingSphere\345\234\250tpcc\344\270\212\347\232\204\350\241\250\347\216\260.md" "b/app/zh/blogs/July/\346\242\246\345\271\273\350\201\224\345\212\250-MogDB-openGauss\344\270\216ShardingSphere\345\234\250tpcc\344\270\212\347\232\204\350\241\250\347\216\260.md" index 4dee5bfc8a13b391e290eaf48bfdf155264d0437..1f647c611bfa44b815c70170a8adb14381602c45 100644 --- "a/app/zh/blogs/July/\346\242\246\345\271\273\350\201\224\345\212\250-MogDB-openGauss\344\270\216ShardingSphere\345\234\250tpcc\344\270\212\347\232\204\350\241\250\347\216\260.md" +++ "b/app/zh/blogs/July/\346\242\246\345\271\273\350\201\224\345\212\250-MogDB-openGauss\344\270\216ShardingSphere\345\234\250tpcc\344\270\212\347\232\204\350\241\250\347\216\260.md" @@ -364,7 +364,7 @@ db=postgres driver=org.postgresql.Driver conn=jdbc:postgresql://***.***.***.***36:3307/tpcc?prepareThreshold=1&batchMode=on&fetchsize=10&loggerLevel=off user=sharding -password=sharding +password=****** warehouses=100 loadWorkers=50 diff --git "a/app/zh/blogs/enmo/PTK \344\270\200\351\224\256\345\256\211\350\243\205 MogDB.md" "b/app/zh/blogs/enmo/PTK \344\270\200\351\224\256\345\256\211\350\243\205 MogDB.md" index 64862d1a449e6972c4619460e6e1da8ca31a66d7..dc50d3fd33fbfc35345ae29ab3c181d878f163d0 100644 --- "a/app/zh/blogs/enmo/PTK \344\270\200\351\224\256\345\256\211\350\243\205 MogDB.md" +++ "b/app/zh/blogs/enmo/PTK \344\270\200\351\224\256\345\256\211\350\243\205 MogDB.md" @@ -87,7 +87,7 @@ Git Hash: d064a36 [root@node1 .ptk]# ptk encrypt omm omm: pTk6YjM5YWY4MmM8QzxCPEU/Qm5UWFZGXzB4bldmcHI3T1lKMEVXeXltZzVBemU3V3EwcWpvbXJrM2dlSzg= [root@node1 .ptk]# ptk encrypt MogDB@0701 -MogDB@0701: pTk6MDQ2Y2U0ZDE8QzxCPEU/RE8ycy1UZFpEZ0xSMU9PQzRZMkpoY2JuT0x2Z05FbG9pZDlBMm5hZlFEVzQ= +MogDB@0701: ****** --编辑后配置文件展示 [root@node1 .ptk]# cat config.yaml |grep -v '#' @@ -95,7 +95,7 @@ global: cluster_name: "MogDB3.0" user: "omm" group: "dbgrp" - db_password: "pTk6MDQ2Y2U0ZDE8QzxCPEU/RE8ycy1UZFpEZ0xSMU9PQzRZMkpoY2JuT0x2Z05FbG9pZDlBMm5hZlFEVzQ=" + db_password: "******" db_port: 26000 cm_server_port: 15300 base_dir: "/opt/mogdb" @@ -107,7 +107,7 @@ global: ssh_option: port: 22 user: root - password: "pTk6MDQ2Y2U0ZDE8QzxCPEU/RE8ycy1UZFpEZ0xSMU9PQzRZMkpoY2JuT0x2Z05FbG9pZDlBMm5hZlFEVzQ=" + password: "******" db_servers: diff --git "a/app/zh/blogs/gaoyunlong/MogDB openGauss\346\225\260\346\215\256\345\272\223\346\211\251\347\274\251\345\256\271\347\232\204\345\207\240\347\247\215\346\226\271\345\274\217.md" "b/app/zh/blogs/gaoyunlong/MogDB openGauss\346\225\260\346\215\256\345\272\223\346\211\251\347\274\251\345\256\271\347\232\204\345\207\240\347\247\215\346\226\271\345\274\217.md" index 228357b15cfb4b8ac4ab6a0835d370cd595f858d..c6bdb9606892172552275d85ee5419dd0086e044 100644 --- "a/app/zh/blogs/gaoyunlong/MogDB openGauss\346\225\260\346\215\256\345\272\223\346\211\251\347\274\251\345\256\271\347\232\204\345\207\240\347\247\215\346\226\271\345\274\217.md" +++ "b/app/zh/blogs/gaoyunlong/MogDB openGauss\346\225\260\346\215\256\345\272\223\346\211\251\347\274\251\345\256\271\347\232\204\345\207\240\347\247\215\346\226\271\345\274\217.md" @@ -535,7 +535,7 @@ current_az : AZ_ALL host: ***.***.***.*** port: 22 user: root - password: "pTk6MDQ2Y2U0ZDE8QzxCPEU/RE8ycy1UZFpEZ0xSMU9PQzRZMkpoY2JuT0x2Z05FbG9pZDlBMm5hZlFEVzQ=" + password: "******" ``` #### 集群扩容 diff --git a/app/zh/blogs/lihongda/openGauss-ClusterManagerRTO-Test.md b/app/zh/blogs/lihongda/openGauss-ClusterManagerRTO-Test.md index 392b53e2ffce00e23dac88cbf0180b297908420f..cf73ebc07228560ca576cc68053cfcc5272ef7fc 100644 --- a/app/zh/blogs/lihongda/openGauss-ClusterManagerRTO-Test.md +++ b/app/zh/blogs/lihongda/openGauss-ClusterManagerRTO-Test.md @@ -77,8 +77,8 @@ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 var ( dsnExample = `DSN="postgres://gaussdb:secret@foo,bar,baz/mydb?sslmode=disable" DSN="postgres://gaussdb:secret@foo:1,bar:2,baz:3/mydb?sslmode=disable" -DSN="user=gaussdb password=secret host=foo,bar,baz port=5432 dbname=mydb sslmode=disable" -DSN="user=gaussdb password=secret host=foo,bar,baz port=5432,5432,5433 dbname=mydb sslmode=disable"` +DSN="user=gaussdb password=***** host=foo,bar,baz port=5432 dbname=mydb sslmode=disable" +DSN="user=gaussdb password=***** host=foo,bar,baz port=5432,5432,5433 dbname=mydb sslmode=disable"` ) func main() { diff --git "a/app/zh/blogs/lizhenxu/MogDB\345\255\246\344\271\240\347\254\224\350\256\260\347\263\273\345\210\227 -- \344\275\277\347\224\250gs_restore\345\244\207\344\273\275\346\201\242\345\244\215\345\267\245\345\205\267.md" "b/app/zh/blogs/lizhenxu/MogDB\345\255\246\344\271\240\347\254\224\350\256\260\347\263\273\345\210\227 -- \344\275\277\347\224\250gs_restore\345\244\207\344\273\275\346\201\242\345\244\215\345\267\245\345\205\267.md" index ae612af8491e9ba7d800352a492dc7610ea34c22..c918f3aa642946c8d6a96050ad3f901f0aefdec3 100644 --- "a/app/zh/blogs/lizhenxu/MogDB\345\255\246\344\271\240\347\254\224\350\256\260\347\263\273\345\210\227 -- \344\275\277\347\224\250gs_restore\345\244\207\344\273\275\346\201\242\345\244\215\345\267\245\345\205\267.md" +++ "b/app/zh/blogs/lizhenxu/MogDB\345\255\246\344\271\240\347\254\224\350\256\260\347\263\273\345\210\227 -- \344\275\277\347\224\250gs_restore\345\244\207\344\273\275\346\201\242\345\244\215\345\267\245\345\205\267.md" @@ -72,9 +72,9 @@ Connection options: -p, --port=PORT database server port number -U, --username=NAME connect as specified database user -w, --no-password never prompt for password - -W, --password=PASSWORD the password of specified database user + -W, --password=****** the password of specified database user --role=ROLENAME do SET ROLE before restore - --rolepassword=ROLEPASSWORD the password for role + --rolepassword=****** the password for role [omm@mogdb bin]$ ``` diff --git "a/app/zh/blogs/pengchong/MogDB 3.0\346\225\260\346\215\256\345\272\223\345\257\274\345\207\272Excel.md" "b/app/zh/blogs/pengchong/MogDB 3.0\346\225\260\346\215\256\345\272\223\345\257\274\345\207\272Excel.md" index 948342b62794f77262287f0a5bf9fc8a89ffbfc5..9c771c903b781f5a7938d123e633dcbeacb2df61 100644 --- "a/app/zh/blogs/pengchong/MogDB 3.0\346\225\260\346\215\256\345\272\223\345\257\274\345\207\272Excel.md" +++ "b/app/zh/blogs/pengchong/MogDB 3.0\346\225\260\346\215\256\345\272\223\345\257\274\345\207\272Excel.md" @@ -41,7 +41,7 @@ pgclimb version 0.2 ``` ./tools/pgclimb --host=***.***.***.*** --port=3000 \ ---dbname=postgres --username=admin --password=Admin@1234 \ +--dbname=postgres --username=admin --password=****** \ --output=pg_settings.xlsx \ --query="select * from pg_settings" \ xlsx --sheet "ver1" @@ -51,7 +51,7 @@ xlsx --sheet "ver1" ``` ./tools/pgclimb --host=***.***.***.*** --port=3000 \ ---dbname=postgres --username=admin --password=Admin@1234 \ +--dbname=postgres --username=admin --password=****** \ --output=pg_settings.xlsx \ --query="select * from pg_settings" \ xlsx --sheet "ver2" diff --git "a/app/zh/blogs/pengchong/MogDB\346\225\260\346\215\256\345\272\223\345\270\270\350\247\201\351\227\256\347\255\224.md" "b/app/zh/blogs/pengchong/MogDB\346\225\260\346\215\256\345\272\223\345\270\270\350\247\201\351\227\256\347\255\224.md" index 01e94bc5daf28a7e693407d3ec8364f727655620..5d80005cffe852efc59adf36117fb8a36ed3f1ad 100644 --- "a/app/zh/blogs/pengchong/MogDB\346\225\260\346\215\256\345\272\223\345\270\270\350\247\201\351\227\256\347\255\224.md" +++ "b/app/zh/blogs/pengchong/MogDB\346\225\260\346\215\256\345\272\223\345\270\270\350\247\201\351\227\256\347\255\224.md" @@ -35,12 +35,12 @@ Type "help" for help. openGauss=# create database mydb1; CREATE DATABASE -openGauss=# create user user1 password 'Admin@1234'; +openGauss=# create user user1 password '****** '; CREATE ROLE openGauss=# alter database mydb1 owner to user1; ALTER DATABASE openGauss=# \q -[omm@mogdb ~]$ gsql -d mydb1 -U user1 -r --password='Admin@1234' +[omm@mogdb ~]$ gsql -d mydb1 -U user1 -r --password='****** ' gsql ((openGauss 3.0.0 build 02c14696) compiled at 2022-04-01 18:12:34 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. diff --git "a/app/zh/blogs/pengchong/MogDB\346\225\260\346\215\256\345\272\223\346\224\257\346\214\201R2DBC\345\223\215\345\272\224\345\274\217\345\215\217\350\256\256\350\256\277\351\227\256.md" "b/app/zh/blogs/pengchong/MogDB\346\225\260\346\215\256\345\272\223\346\224\257\346\214\201R2DBC\345\223\215\345\272\224\345\274\217\345\215\217\350\256\256\350\256\277\351\227\256.md" index 935065a5b2a35407f1b1ac0b19ab00fe0725e59e..ecf28bf32b00675734cb7b3c072caeeb7af6ffdd 100644 --- "a/app/zh/blogs/pengchong/MogDB\346\225\260\346\215\256\345\272\223\346\224\257\346\214\201R2DBC\345\223\215\345\272\224\345\274\217\345\215\217\350\256\256\350\256\277\351\227\256.md" +++ "b/app/zh/blogs/pengchong/MogDB\346\225\260\346\215\256\345\272\223\346\224\257\346\214\201R2DBC\345\223\215\345\272\224\345\274\217\345\215\217\350\256\256\350\256\277\351\227\256.md" @@ -65,7 +65,7 @@ insert into product values(1,'PostgreSQL',0), ```java spring.r2dbc.url=r2dbc:postgresql://***.***.***.***:15400/productdb spring.r2dbc.username=moguser -spring.r2dbc.password=Admin@1234 +spring.r2dbc.password=****** 运行程序进行测试点击R2dbcApplication文件,Run As运行 然后我们可以打开浏览器,输入接口地址进行测试: 下面是查询所有产品(http://localhost:8080/product/all) diff --git "a/app/zh/blogs/pengchong/gs_dump\345\244\207\344\273\275\346\201\242\345\244\215\345\256\236\350\267\265.md" "b/app/zh/blogs/pengchong/gs_dump\345\244\207\344\273\275\346\201\242\345\244\215\345\256\236\350\267\265.md" index 13360e327b674d3e47c98306d3630300231fc67f..50b91bde7bd93091f2a98ec8e5aa257236018ed9 100644 --- "a/app/zh/blogs/pengchong/gs_dump\345\244\207\344\273\275\346\201\242\345\244\215\345\256\236\350\267\265.md" +++ "b/app/zh/blogs/pengchong/gs_dump\345\244\207\344\273\275\346\201\242\345\244\215\345\256\236\350\267\265.md" @@ -154,7 +154,7 @@ gs_restore --username=mes -d mes3 mes_way3.dmp 注意操作之前需要先删除相关对象,下面直接级联删除模式。 ``` -gsql -U mes mes3 -r --password='mes@1234' +gsql -U mes mes3 -r --password='****** ' drop schema if exists mes cascade; \q ``` diff --git "a/app/zh/blogs/pysql/\344\275\277\347\224\250sysbench\345\216\213\346\265\213OpenGauss.md" "b/app/zh/blogs/pysql/\344\275\277\347\224\250sysbench\345\216\213\346\265\213OpenGauss.md" index 106a4ce2d355e7421fb8d61d642eaddb5602ac3c..9fc21dac609eae82c6ea0f3972c5230aef775a49 100644 --- "a/app/zh/blogs/pysql/\344\275\277\347\224\250sysbench\345\216\213\346\265\213OpenGauss.md" +++ "b/app/zh/blogs/pysql/\344\275\277\347\224\250sysbench\345\216\213\346\265\213OpenGauss.md" @@ -84,10 +84,10 @@ sysbench=> ### 准备压测数据: -sysbench --db-driver=pgsql --pgsql-host=***.***.***.*** --pgsql-user=benchuser --pgsql-password=Bench_889 --pgsql-db=sysbench --pgsql-port=26000 --oltp-test-mode=complex --oltp-tables-count=12 --oltp-table-size=20000 --threads=50 --time=1800 --report-interval=10 /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua prepare +sysbench --db-driver=pgsql --pgsql-host=***.***.***.*** --pgsql-user=benchuser --pgsql-password=****** --pgsql-db=sysbench --pgsql-port=26000 --oltp-test-mode=complex --oltp-tables-count=12 --oltp-table-size=20000 --threads=50 --time=1800 --report-interval=10 /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua prepare 执行压测: -sysbench --db-driver=pgsql --pgsql-host=***.***.***.*** --pgsql-user=benchuser --pgsql-password=Bench_889 --pgsql-db=sysbench --pgsql-port=26000 --oltp-test-mode=complex --oltp-tables-count=12 --oltp-table-size=20000 --threads=50 --time=1800 --report-interval=10 /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua run +sysbench --db-driver=pgsql --pgsql-host=***.***.***.*** --pgsql-user=benchuser --pgsql-password=****** --pgsql-db=sysbench --pgsql-port=26000 --oltp-test-mode=complex --oltp-tables-count=12 --oltp-table-size=20000 --threads=50 --time=1800 --report-interval=10 /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua run 后续进一步使用 sysbench 探索 OpenGauss 性能指标。 diff --git "a/app/zh/blogs/totaj/\345\246\202\344\275\225\344\275\277\347\224\250pg_chameleon\350\277\201\347\247\273MySQL\346\225\260\346\215\256\345\272\223\350\207\263openGauss.md" "b/app/zh/blogs/totaj/\345\246\202\344\275\225\344\275\277\347\224\250pg_chameleon\350\277\201\347\247\273MySQL\346\225\260\346\215\256\345\272\223\350\207\263openGauss.md" index d1cb833510cd5461135fdc611f770c2f5c1dc89c..d55373ef61873f4a319b7ae6b570167120f0c87b 100644 --- "a/app/zh/blogs/totaj/\345\246\202\344\275\225\344\275\277\347\224\250pg_chameleon\350\277\201\347\247\273MySQL\346\225\260\346\215\256\345\272\223\350\207\263openGauss.md" +++ "b/app/zh/blogs/totaj/\345\246\202\344\275\225\344\275\277\347\224\250pg_chameleon\350\277\201\347\247\273MySQL\346\225\260\346\215\256\345\272\223\350\207\263openGauss.md" @@ -69,7 +69,7 @@ pg_conn: host: "1.1.1.1" port: "5432" user: "opengauss_test" - password: "password_123" + password: "********_***" database: "opengauss_database" charset: "utf8" @@ -79,7 +79,7 @@ sources: host: "1.1.1.1" port: "3306" user: "mysql_test" - password: "password123" + password: "***********" charset: 'utf8' connect_timeout: 10 schema_mappings: @@ -107,7 +107,7 @@ keep_existing_schema: No 以上配置文件的含义是,迁移数据时,MySQL 侧使用的用户名密码分别是 **mysql_test** 和 **password123** 。MySQL 服务器的 IP 和 port 分别是 **1.1.1.1** 和 **3306**,待迁移的数据库是 **mysql_database** 。 -openGauss 侧使用的用户名密码分别是 **opengauss_test** 和 **password_123** 。openGauss 服务器的 IP 和 port 分别是 **1.1.1.1** 和 **5432** ,目标数据库是 **opengauss_database**,同时会在 **opengauss_database**下创建 **sch_mysql_database** schema,迁移的表都将位于该 schema 下。 +openGauss 侧使用的用户名密码分别是 **opengauss_test** 和 **********_***** 。openGauss 服务器的 IP 和 port 分别是 **1.1.1.1** 和 **5432** ,目标数据库是 **opengauss_database**,同时会在 **opengauss_database**下创建 **sch_mysql_database** schema,迁移的表都将位于该 schema 下。 需要注意的是,这里使用的用户需要有远程连接 MySQL 和 openGauss 的权限,以及对对应数据库的读写权限。同时对于 openGauss,运行 pg_chameleon 所在的机器需要在 openGauss 的远程访问白名单中。对于 MySQL,用户还需要有 RELOAD、REPLICATION CLIENT、REPLICATION SLAVE 的权限。 diff --git "a/app/zh/blogs/totaj/\345\246\202\344\275\225\344\275\277\347\224\250pgloader\350\277\201\347\247\273MySQL\346\225\260\346\215\256\345\272\223\350\207\263openGauss.md" "b/app/zh/blogs/totaj/\345\246\202\344\275\225\344\275\277\347\224\250pgloader\350\277\201\347\247\273MySQL\346\225\260\346\215\256\345\272\223\350\207\263openGauss.md" index 8695ecbd36d7155864b0e695b7733d533578ae17..7497ab593fc782a912eeb039a45a58fbd223669e 100644 --- "a/app/zh/blogs/totaj/\345\246\202\344\275\225\344\275\277\347\224\250pgloader\350\277\201\347\247\273MySQL\346\225\260\346\215\256\345\272\223\350\207\263openGauss.md" +++ "b/app/zh/blogs/totaj/\345\246\202\344\275\225\344\275\277\347\224\250pgloader\350\277\201\347\247\273MySQL\346\225\260\346\215\256\345\272\223\350\207\263openGauss.md" @@ -82,7 +82,7 @@ postgresql://[user[:password]@][netloc][:port][/dbname][?option=value&...] ``` LOAD DATABASE FROM mysql://mysql_test:password123@1.1.1.1:3306/mysql_database -INTO postgresql://opengauss_test:password_123@1.1.1.1:5432/opengauss_database +INTO postgresql://opengauss_test:********_***@1.1.1.1:5432/opengauss_database WITH include drop, create tables, create indexes, reset no sequences, workers = 8, concurrency = 1, multiple readers per thread, rows per range = 50000 @@ -92,7 +92,7 @@ type varchar when(= 1 precision) to "boolean" drop typemod keep default keep not 以上配置文件的含义是,迁移数据时,MySQL 侧使用的用户名密码分别是 **mysql_test** 和 **password123** 。MySQL 服务器的 IP 和 port 分别是 **1.1.1.1** 和 **3306** ,待迁移的数据库是 **mysql_database** 。 -openGauss 侧使用的用户名密码分别是 **opengauss_test** 和 **password_123** 。openGauss 服务器的 IP 和 port 分别是 **1.1.1.1** 和 **5432** ,目标数据库是 **opengauss_database** 。 +openGauss 侧使用的用户名密码分别是 **opengauss_test** 和 **********_***** 。openGauss 服务器的 IP 和 port 分别是 **1.1.1.1** 和 **5432** ,目标数据库是 **opengauss_database** 。 需要注意的是,这里使用的用户需要有远程连接 MySQL 和 openGauss 的权限,以及对对应数据库的读写权限。同时对于 openGauss,运行 pgloader 所在的机器需要在 openGauss 的远程访问白名单中。 diff --git a/app/zh/blogs/wangyuxuan/ShardingSphere X openGauss.md b/app/zh/blogs/wangyuxuan/ShardingSphere X openGauss.md index a8a7c9d7e705d9b8ac6ea1e863cdbbf252cf08ab..269c61964382ddd20bddcc5a66412e6e00bd4b80 100644 --- a/app/zh/blogs/wangyuxuan/ShardingSphere X openGauss.md +++ b/app/zh/blogs/wangyuxuan/ShardingSphere X openGauss.md @@ -71,7 +71,7 @@ dataSources: ds_0: url: jdbc:opengauss://host:port/db_name username: USER - password: PASSWD + password: ****** connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 @@ -80,7 +80,7 @@ dataSources: ds_1: url: jdbc:opengauss://host:port/db_name username: USER - password: PASSWD + password: ****** connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 @@ -142,15 +142,15 @@ dataSources: primary_ds: url: jdbc:postgresql://localhost:5432/demo_primary_ds username: postgres - password: postgres + password: ****** replica_ds_0: url: jdbc:postgresql://localhost:5432/demo_replica_ds_0 username: postgres - password: postgres + password: ****** replica_ds_1: url: jdbc:postgresql://localhost:5432/demo_replica_ds_1 username: postgres - password: postgres + password: ****** rules: - !READWRITE_SPLITTING dataSources: diff --git "a/app/zh/blogs/xiake/\344\275\277\347\224\250Python-psycopg\350\256\277\351\227\256postgres\343\200\201openGauss\343\200\201MogDB.md" "b/app/zh/blogs/xiake/\344\275\277\347\224\250Python-psycopg\350\256\277\351\227\256postgres\343\200\201openGauss\343\200\201MogDB.md" index 8ac43ff8502e10881c7ee3a17042fef1b0219ef3..d5f7b31eed2e6e28d9c8bcec12a470360a3af32c 100644 --- "a/app/zh/blogs/xiake/\344\275\277\347\224\250Python-psycopg\350\256\277\351\227\256postgres\343\200\201openGauss\343\200\201MogDB.md" +++ "b/app/zh/blogs/xiake/\344\275\277\347\224\250Python-psycopg\350\256\277\351\227\256postgres\343\200\201openGauss\343\200\201MogDB.md" @@ -90,7 +90,7 @@ Python 3.7.9 (default, Jan 25 2022, 15:12:36) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import psycopg2 ->>> conn=psycopg2.connect(database="postgres",user="postgres",password="frank@123",host="localhost",port=5432) +>>> conn=psycopg2.connect(database="postgres",user="postgres",password="****** ",host="localhost",port=5432) >>> cur=conn.cursor() >>> cur.execute("CREATE TABLE student(id integer,name varchar,sex varchar);") >>> cur.execute("INSERT INTO student(id,name,sex) VALUES(%s,%s,%s)",(1,'Aspirin','M')) diff --git "a/app/zh/blogs/xiaoxuetongxue/\346\225\260\346\215\256\350\277\201\347\247\273\350\207\263openGauss.md" "b/app/zh/blogs/xiaoxuetongxue/\346\225\260\346\215\256\350\277\201\347\247\273\350\207\263openGauss.md" index 82dcd2ed5030b0dd0d124039abdb3c5af35764b7..14cce11b56f5f25efa7e08f6cd3501652731c905 100644 --- "a/app/zh/blogs/xiaoxuetongxue/\346\225\260\346\215\256\350\277\201\347\247\273\350\207\263openGauss.md" +++ "b/app/zh/blogs/xiaoxuetongxue/\346\225\260\346\215\256\350\277\201\347\247\273\350\207\263openGauss.md" @@ -114,7 +114,7 @@ openGauss 是华为旗下的国产数据库,我对着这个数据库的了解 user: "opengauss_test" - password: "password_123" + password: "********_***" database: "opengauss_database" @@ -136,7 +136,7 @@ openGauss 是华为旗下的国产数据库,我对着这个数据库的了解 user: "mysql_test" - password: "password123" + password: "***********" charset: 'utf8' @@ -242,7 +242,7 @@ port: "5432" user: "opengauss" -password: "password123" +password: "***********" database: "postgres" @@ -256,7 +256,7 @@ port: "3306" user: "mysql" -password: "password123" +password: "***********" database: "mysql" @@ -434,7 +434,7 @@ numactl -C 0-31 -m 0 java -Xms15G -Xmx25G -jar ./target/online-migration-mysql-3 user: "user" - password: "password" + password: "******" database: "postgres" @@ -480,7 +480,7 @@ numactl -C 0-31 -m 0 java -Xms15G -Xmx25G -jar ./target/online-migration-mysql-3 user: "user" - password: "password" + password: "******" database: "database diff --git "a/app/zh/blogs/zhangcuiping/Wget\345\221\275\344\273\244\344\275\277\347\224\250\344\273\213\347\273\215.md" "b/app/zh/blogs/zhangcuiping/Wget\345\221\275\344\273\244\344\275\277\347\224\250\344\273\213\347\273\215.md" index fb4eaf36c2ae7587feb25e5d498f37f0e64c15c6..a5f339f2d72df6a94b420fd980026f471c842a44 100644 --- "a/app/zh/blogs/zhangcuiping/Wget\345\221\275\344\273\244\344\275\277\347\224\250\344\273\213\347\273\215.md" +++ "b/app/zh/blogs/zhangcuiping/Wget\345\221\275\344\273\244\344\275\277\347\224\250\344\273\213\347\273\215.md" @@ -42,7 +42,7 @@ wget [参数] [URL 地址] 2. 使用 wget FTP 下载 ``` - wget --ftp-user=USERNAME --ftp-password=PASSWORD http://example.com + wget --ftp-user=USERNAME --ftp-password=****** http://example.com ``` 3. 使用 wget -c 断点续传,即当网络不稳定或突然断网,可以使用如下命令进行下载 diff --git "a/app/zh/blogs/zhangsir/2022-11-15MySQL\345\210\260OpenGauss\347\232\204\346\225\260\346\215\256\350\277\201\347\247\273\346\265\213\350\257\225.md" "b/app/zh/blogs/zhangsir/2022-11-15MySQL\345\210\260OpenGauss\347\232\204\346\225\260\346\215\256\350\277\201\347\247\273\346\265\213\350\257\225.md" index 4de5a7ceee344a7a240fad8d8d61003cb0479bfc..f1e88fc7160c2863efedcb1da8abe80e7a066c31 100644 --- "a/app/zh/blogs/zhangsir/2022-11-15MySQL\345\210\260OpenGauss\347\232\204\346\225\260\346\215\256\350\277\201\347\247\273\346\265\213\350\257\225.md" +++ "b/app/zh/blogs/zhangsir/2022-11-15MySQL\345\210\260OpenGauss\347\232\204\346\225\260\346\215\256\350\277\201\347\247\273\346\265\213\350\257\225.md" @@ -83,7 +83,7 @@ pg_conn: host: "localhost" ===========》opengauss 的 ip port: "15400" ===========》opengauss 的端口 user: "opengauss" ========== 》open gauss 的用户 -password: "openGauss01" ===========》opengauss 的密码 +password: "******" ===========》opengauss 的密码 database: "mysql_test" ===========》opengauss 的目标数据库 charset: "utf8" @@ -95,7 +95,7 @@ db_conn: host: "***.***.***.***" ============》mysql 的 ip port: "33650" ===========》mysql 的端口 user: "root" ============》mysql 的用户 -password: "root" ============》mysql 的密码 +password: "****" ============》mysql 的密码 charset: 'utf8' connect_timeout: 10 schema_mappings: diff --git "a/content/zh/post/laishenghao/2023_10_18_openGauss\345\237\272\344\272\2164\350\267\257\351\262\262\351\271\217\346\234\215\345\212\241\345\231\250\347\232\204\346\200\247\350\203\275\350\260\203\344\274\230.md" "b/content/zh/post/laishenghao/2023_10_18_openGauss\345\237\272\344\272\2164\350\267\257\351\262\262\351\271\217\346\234\215\345\212\241\345\231\250\347\232\204\346\200\247\350\203\275\350\260\203\344\274\230.md" index d5d58de60ad7750f33b493cce7680fc7b91ef661..9a8668560b21d0c6a79ad5a45bcf4c35b35d0c28 100644 --- "a/content/zh/post/laishenghao/2023_10_18_openGauss\345\237\272\344\272\2164\350\267\257\351\262\262\351\271\217\346\234\215\345\212\241\345\231\250\347\232\204\346\200\247\350\203\275\350\260\203\344\274\230.md" +++ "b/content/zh/post/laishenghao/2023_10_18_openGauss\345\237\272\344\272\2164\350\267\257\351\262\262\351\271\217\346\234\215\345\212\241\345\231\250\347\232\204\346\200\247\350\203\275\350\260\203\344\274\230.md" @@ -775,7 +775,7 @@ Benchmark-sql-5.0软件的安装可以参考 [此文](https://opengauss.org/zh/b driver=org.postgresql.Driver conn=jdbc:postgresql://ip:port/tpcc1000?prepareThreshold=1&batchMode=on&fetchsize=10&loggerLevel=OFF user=my_db_user_name - password=my_db_user_name + password=****** warehouses=1000 loadWorkers=80 @@ -814,7 +814,7 @@ Benchmark-sql-5.0软件的安装可以参考 [此文](https://opengauss.org/zh/b driver=org.postgresql.Driver conn=jdbc:postgresql://ip:port/tpcc1000?prepareThreshold=1&batchMode=on&fetchsize=10&loggerLevel=OFF user=my_db_user_name - password=my_db_user_name + password=****** warehouses=1000 loadWorkers=80