Skip to content

Commit

Permalink
feat: update mysql default listen port to 4406 (GreptimeTeam#568)
Browse files Browse the repository at this point in the history
Co-authored-by: zhaozhenhang <zhaozhenhang@kuaishou.com>
azhsmesos and zhaozhenhang authored Nov 18, 2022
1 parent d4b09f6 commit 6d762aa
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/datanode.example.toml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ mode = 'distributed'
rpc_addr = '127.0.0.1:3001'
wal_dir = '/tmp/greptimedb/wal'
rpc_runtime_size = 8
mysql_addr = '127.0.0.1:3306'
mysql_addr = '127.0.0.1:4406'
mysql_runtime_size = 4

[storage]
2 changes: 1 addition & 1 deletion config/standalone.example.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node_id = 0
mode = 'standalone'
http_addr = '127.0.0.1:4000'
datanode_mysql_addr = '127.0.0.1:3306'
datanode_mysql_addr = '127.0.0.1:4406'
datanode_mysql_runtime_size = 4
wal_dir = '/tmp/greptimedb/wal/'

2 changes: 1 addition & 1 deletion src/cmd/src/datanode.rs
Original file line number Diff line number Diff line change
@@ -143,7 +143,7 @@ mod tests {
let options: DatanodeOptions = cmd.try_into().unwrap();
assert_eq!("127.0.0.1:3001".to_string(), options.rpc_addr);
assert_eq!("/tmp/greptimedb/wal".to_string(), options.wal_dir);
assert_eq!("127.0.0.1:3306".to_string(), options.mysql_addr);
assert_eq!("127.0.0.1:4406".to_string(), options.mysql_addr);
assert_eq!(4, options.mysql_runtime_size);
let MetaClientOpts {
metasrv_addrs: metasrv_addr,
2 changes: 1 addition & 1 deletion src/cmd/src/standalone.rs
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ impl Default for StandaloneOptions {
mode: Mode::Standalone,
wal_dir: "/tmp/greptimedb/wal".to_string(),
storage: ObjectStoreConfig::default(),
datanode_mysql_addr: "127.0.0.1:3306".to_string(),
datanode_mysql_addr: "127.0.0.1:4406".to_string(),
datanode_mysql_runtime_size: 4,
}
}
2 changes: 1 addition & 1 deletion src/datanode/src/datanode.rs
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ impl Default for DatanodeOptions {
node_id: None,
rpc_addr: "127.0.0.1:3001".to_string(),
rpc_runtime_size: 8,
mysql_addr: "127.0.0.1:3306".to_string(),
mysql_addr: "127.0.0.1:4406".to_string(),
mysql_runtime_size: 2,
meta_client_opts: None,
wal_dir: "/tmp/greptimedb/wal".to_string(),

0 comments on commit 6d762aa

Please sign in to comment.