Hey I am running supertokens core in my computer, ...
# general
k
Hey I am running supertokens core in my computer, when I shut down my pc, and start it again. In the dashboard I can't see a single user afterwards
r
hey @kumar_ayush have you connected the core to a mysql/postgresql db?
k
Yes I have connected it to mysql database
r
hmm. And the users still exist in them after you restart?
k
nope
Ok here is what I found
when I start the supertokens it shows this log:
Loading supertokens config. Completed config.yaml loading. Loading storage layer. Using in memory storage. Loading supertokens version.yaml file. Started SuperTokens on localhost:3567 with PID: 6860
r
right. So it's using in memory db. Thats why on restart users are gone
how have you specified the info for connecting to mysql?
k
this is my connection uri
mysql_connection_uri: "mysql://ayush:supertokenpassword@localhost:3306/supertokens"
r
and you have added this to the config.yaml file?
k
Yes
r
can you run
supertokens --help
and
supertokens --version
and show me the output?
k
this is what I found after running supertokens --help
You are using SuperTokens Community Usage: supertokens [command] [--help] [--version] Commands: -> hashingCalibrate [options] Used to calibrate the settings for password hashing algorithms for a specific machine -> uninstall Uninstalls SuperTokens -> stop [options] Stops all (if no options are provided) or one specific instance of SuperTokens -> start [options] Start an instance of SuperTokens -> list List information about all currently running SuperTokens instances Files: Installation location C:\Program Files\supertokens\ Default config file C:\Program Files\supertokens\config.yaml Legal license C:\Program Files\supertokens\LICENSE.md Thank you for checking out SuperTokens 🙂
supertokens version
You are using SuperTokens Community SuperTokens Core version: 4.1.1 Plugin Interface version: 2.18.0 Database Plugin name: mysql Database Plugin version: 2.0.0 Java version: OpenJDK 15.0.1 Installation directory: C:\Program Files\supertokens
r
hmm
and can i see the contents of the config.yaml file?
k
r
hmm. Seems about right. Which config.yaml have you edited?
C:\Program Files\supertokens\config.yaml
-> this one?
or some other one?
k
Other one
r
oh. You need to edit
C:\Program Files\supertokens\config.yaml
one
k
What??
r
you can delete the downloaded zip and folder
k
I have edited config.yaml from the download folder
r
yea.. you can delete the downloaded folder
k
Man please make this clear in the docs
r
thanks for the feedback. Will make it clear
k
Ok now after starting supertokens I am seeing these logs
Loading supertokens config. Completed config.yaml loading. Loading storage layer. Loading MySQL config. Loading supertokens version.yaml file. Setting up MySQL connection pool. Started SuperTokens on localhost:3567 with PID: 2516
r
nice!
so now the users should be saved in the db
k
Thank you very much.
r
and restarting should not cause any issues
k
ok
bye
5 Views