Failed to connect to DB: mysql config

23 views
Skip to first unread message

novopravie

unread,
Sep 3, 2023, 1:09:50 PMSep 3
to tin...@googlegroups.com

Hello,
please help me to start the server, it gives the following message:
<<<
2023/09/03 19:54:40 Server v0.22:/root/go/bin/tinode:undef; pid 3731; 1 process(es)
2023/09/03 19:54:40 Using config from '/root/go/pkg/mod/github.com/tinode/ch...@v0.22.10/server/tinode.conf'
2023/09/03 19:54:40 stats: variables exposed at '/debug/vars'
2023/09/03 19:54:40 Cluster: running as a standalone server.
2023/09/03 19:54:40 DB adapter mysql 113
2023/09/03 19:54:40 Failed to connect to DB: mysql config: conflicting config and DSN are provided
<<<
Can you please tell me what is wrong?

Thanks.


-- 
Matrey Andrey | "FEEDBACK"
Web: https://www.fb.ua
Skype: matrey_andrey
Phone: +38(096)949-28-18

Gene Sokolov

unread,
Sep 3, 2023, 1:48:28 PMSep 3
to tin...@googlegroups.com
Use either a DSN or individual config parameters. Read the log and documentation:

Failed to connect to DB: mysql config: conflicting config and DSN are provided
--
You received this message because you are subscribed to the Google Groups "Tinode General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinode+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinode/c8c2ab33-0dcb-6737-44be-d4ccffc5a0d5%40gmail.com.

Andrey M.

unread,
Sep 4, 2023, 9:14:10 AMSep 4
to Tinode General
Thanks, I figured out what I did wrong.   It was necessary to specify only the database:
[...]
"store_config": {
  "use_adapter": "mysql",
 },
[...]

воскресенье, 3 сентября 2023 г. в 20:48:28 UTC+3, Gene:
Reply all
Reply to author
Forward
0 new messages