-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error : db.connect No connection after running " node mobius.js " #33
Comments
I am having the same problem. Production Mode |
There is no clear and detail guidance about this Mobius Installation. |
Hi, I'm having the same problem. |
Hi all, I have resolved the problem. The problem is related to the mysql authentication method for root user. You should to change the method from auth_socket to mysql_native_password |
I entered the port and password correctly in the conf.js file. Are you talking about settings other than it? |
Yes, Following this link you should be able to change the authentication configuration associated with the root user Read from Step 3: Change the authentication method for root Alternatively, I can post the mysql commands |
Thank you for answer.
|
Hi @topkim993 , are you able to insert a console.log(err) in method getConnection, after row 80 (db_action.js file) ? Maybe your error is different from mine |
The log has been checked as below. getConnection error is Error: ER_BAD_DB_ERROR: Unknown database 'mobiusdb' I had the schema set to modiusdb. Thanks to that I fixed that error. Thank you. |
Hi @MarcoSapienza Could you explain how to "insert a console.log(err) in method getConnection, after row 80 (db_action.js file)" ? thanks before |
Hi @neo-electro , sorry for the delay in answering you. Are you using a linux or windows environment? |
hello |
Did you create a database? name is >>> mobiusdb |
Hello Marco, I'm using Windows Environment. |
Hi @neo-electro , below the steps: 1 - Go to the root folder, go to mobius/db_action.js 2 - Open db_action.js with a text editor 3 - Put the instruction console.log(err) after row 80 4 - Then restart mobius server If everything is correct you should to see the error in your terminal |
Hi @DAEWOONPARK , I have created mobiusdb database. However, I have already resolved the problem |
In my case, I set up a checklist to check which part is causing the error. Checking with the file in I found the error was something with Seemed the connection was not being created at all Checklist
|
I was also having the same issue. Solved it by uninstalling mySQL and reinstalling the 8.0.22 versions as mentioned in the video. |
Hello,
I found issue when following guidance of Mobius installation.
After running "node mobius.js" i got these errors :
C:\Installer App\Mobius-master>node mobius.js
Production Mode
Garbage collection is not exposed
sgn_mqtt_client is connected
[db.connect] No Connection
^C
C:\Installer App\Mobius-master>
Please share your advice and suggestions.
Thank you
The text was updated successfully, but these errors were encountered: