ยง2024-08-25

YuShei Url = 'mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017/admin?replicaSet=ys20220318'

` mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017//Dragonfly28?replicaSet=ys20220318&authSource=admin '

Using mongosh

alexlai@n2Bookworm:~$ mongosh "mongodb://siteRootAdmin:b23258585@x8664Arch.yushei.com.tw:27017,hc4Jammy.yushei.com.tw:27017,n2Jammy.yushei.com.tw:27017/YuSheiDBTest?replicaSet=odroid01&authSource=admin"
Current Mongosh Log ID:	66ca6f28e05dd9c3558db5fa
Connecting to:		mongodb://<credentials>@x8664Arch.yushei.com.tw:27017,hc4Jammy.yushei.com.tw:27017,n2Jammy.yushei.com.tw:27017/YuSheiDBTest?replicaSet=odroid01&authSource=admin&appName=mongosh+2.2.6
Using MongoDB:		7.0.0-rc8
Using Mongosh:		2.2.6
mongosh 2.3.0 is available for download: https://www.mongodb.com/try/download/shell

For mongosh info see: https://docs.mongodb.com/mongodb-shell/

odroid01 [primary] YuSheiDBTest> 
odroid01 [primary] YuSheiDBTest> show databases
LaiKos         11.46 MiB
Learn          40.00 KiB
WuShunDB      216.00 KiB
YuSheiDBTest    2.20 GiB
YuSheiERP      40.00 KiB
admin         220.00 KiB
config        448.00 KiB
local           2.00 GiB
syslog_ng_db    1.56 MiB
ys_blog       248.00 KiB
odroid01 [primary] YuSheiDBTest> use YuSheiDBTest
already on db YuSheiDBTest
odroid01 [primary] YuSheiDBTest> show tables
_queue
_raix_push_app_tokens
discountTicket
feeRateTable
feeRateTableDailyCashUnit
inLaneCapped
instances
invoiceNumber
invoiceNumberList
logs
lotSpace
meteor_accounts_loginServiceConfiguration
meteor_oauth_pendingCredentials
meteor_oauth_pendingRequestTokens
migrations
monthlyCarPlateText
monthlyCarType
omnichannel_auto_close_on_hold_scheduler
omnichannel_queue_inactivity_monitor
omnichannel_scheduler
pbx_events
rocketchat__trash
rocketchat_analytics
rocketchat_apps_persistence
rocketchat_apps_scheduler
rocketchat_avatars
rocketchat_avatars.chunks
rocketchat_avatars.files
rocketchat_banner
rocketchat_banner_dismiss
rocketchat_calendar_event
rocketchat_canned_response
rocketchat_credential_tokens
rocketchat_cron
rocketchat_cron_history
rocketchat_custom_emoji
rocketchat_custom_sounds
rocketchat_custom_user_status
rocketchat_email_inbox
rocketchat_email_message_history
rocketchat_export_operations
rocketchat_federation_keys
rocketchat_federation_room_events
rocketchat_federation_servers
rocketchat_import
rocketchat_import_data
rocketchat_integration_history
rocketchat_integrations
rocketchat_livechat_agent_activity
rocketchat_livechat_business_hours
rocketchat_livechat_custom_field
rocketchat_livechat_department
rocketchat_livechat_department_agents
rocketchat_livechat_inquiry
rocketchat_livechat_priority
rocketchat_livechat_tag
rocketchat_livechat_trigger
rocketchat_livechat_unit_monitors
rocketchat_livechat_visitor
rocketchat_matrix_bridged_rooms
rocketchat_matrix_bridged_users
rocketchat_message
rocketchat_message_reads
rocketchat_notification_queue
rocketchat_nps
rocketchat_nps_vote
rocketchat_oauth_access_tokens
rocketchat_oauth_apps
rocketchat_oauth_auth_codes
rocketchat_oauth_refresh_tokens
rocketchat_oembed_cache
rocketchat_omnichannel_service_level_agreements
rocketchat_permissions
rocketchat_read_receipts
rocketchat_roles
rocketchat_room
rocketchat_server_events
rocketchat_sessions
rocketchat_settings
rocketchat_statistics
rocketchat_subscription
rocketchat_team
rocketchat_team_member
rocketchat_uploads
rocketchat_uploads.chunks
rocketchat_uploads.files
rocketchat_user_data_files
rocketchat_userDataFiles.chunks
rocketchat_userDataFiles.files
rocketchat_video_conference
rocketchat_webdav_accounts
serviceTime
snapshot
users
usersSessions
yuTsaiLprCashJournal


droid01 [primary] YuSheiDBTest> db.rocketchat_settings.insert({
...   _id: "FileUpload_MaxSize",
...   value: "104857600"  // 100 MB in bytes
... })
DeprecationWarning: Collection.insert() is deprecated. Use insertOne, insertMany, or bulkWrite.
{ acknowledged: true, insertedIds: { '0': 'FileUpload_MaxSize' } }
odroid01 [primary] YuSheiDBTest> db.rocketchat_settings.find({ _id: "FileUpload_MaxSize" }).pretty()
[ { _id: 'FileUpload_MaxSize', value: '104857600' } ]
use Dragongly28
db.dropDatabase()
show dbs

alexlai@YuShei-Parking-System-API:~$ mongosh mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017/admin?replicaSet=ys20220318
Current Mongosh Log ID:	66d024355f9222a9bc3cb97d
Connecting to:		mongodb://<credentials>@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017/admin?replicaSet=ys20220318&appName=mongosh+1.3.1
Using MongoDB:		5.0.8
Using Mongosh:		1.3.1

For mongosh info see: https://docs.mongodb.com/mongodb-shell/

------
   The server generated these startup warnings when booting:
   2024-05-09T17:37:42.790+08:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem
------

Warning: Found ~/.mongorc.js, but not ~/.mongoshrc.js. ~/.mongorc.js will not be loaded.
  You may want to copy or rename ~/.mongorc.js to ~/.mongoshrc.js.
ys20220318 [primary] admin> show dbs
YuSheiDB         3.42 GB
YuSheiFAB         770 kB
YuSheiReactTest  4.55 MB
admin             254 kB
config            340 kB
local              32 GB
syslog_ng_db     1.21 MB
yusheiDBTest      128 MB
yusheiMotorDB    38.8 MB
yusheiRedisTest  62.9 MB
ys20220318 [primary] admin>