Comments (20)
How to change ./config/config.json setting for development on localhost?
from adobot-io.
"development": {
"username": "root",
"password": null,
"database": "adobot",
"host": "127.0.0.1",
"dialect": "mysql",
"admin" : {
"username": "admin",
"password": "admin"
}
}
This is a configuration for database. The admin
section refers to admin panel login credentials.
from adobot-io.
Thanks.
from adobot-io.
After setting up the database, run ./node_modules/.bin/sequelize db:migrate
to create the db tables
from adobot-io.
Ok.
from adobot-io.
I got this error on npm install
`Sequelize [Node: 8.9.3, CLI: 2.7.0, ORM: 3.30.4]
Loaded configuration file "config/config.json".
Using environment "development".
/home/ubuntu/adobot/node_modules/mysql/lib/protocol/Parser.js:80
throw err; // Rethrow non-MySQL errors
^
TypeError: "value" argument must not be a number
at Function.Buffer.from (buffer.js:186:11)
at Object.Auth.token (/home/ubuntu/adobot/node_modules/mysql/lib/protocol/Auth.js:29:29)
at Handshake._sendCredentials
(/home/ubuntu/adobot/node_modules/mysql/lib/protocol/sequences/Handshake.js:78:14)
at Handshake.HandshakeInitializationPacket
(/home/ubuntu/adobot/node_modules/mysql/lib/protocol/sequences/Handshake.js:60:10)
at Protocol._parsePacket
(/home/ubuntu/adobot/node_modules/mysql/lib/protocol/Protocol.js:280:23)
at Parser.write (/home/ubuntu/adobot/node_modules/mysql/lib/protocol/Parser.js:76:12)
at Protocol.write (/home/ubuntu/adobot/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket.<anonymous> (/home/ubuntu/adobot/node_modules/mysql/lib/Connection.js:103:28)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:594:20)`
from adobot-io.
Can you show your config.json file?
from adobot-io.
My bad. I changed the mysql password from a number to a string now I got new error
Sequelize [Node: 8.9.3, CLI: 2.7.0, ORM: 3.30.4] reading "config/config.json". Error: SyntaxError: /home/ubuntu/adobot/config/config.json: Unexpected token r in JSON at position 144
from adobot-io.
Systax error. Make sure your config.json is a valid json file.
from adobot-io.
You're probably missing a comma between fields:
{
"field": "value",
}
from adobot-io.
This my config.json file
"defaults": {
"charset": "utf8mb4",
"collate": "utf8mb4_unicode_ci"
},
"development": {
"username": "root",
"password": root,
"database": "adobot",
"host": "127.0.0.1",
"dialect": "mysql",
"admin" : {
"username": "admin",
"password": "admin"
}
}
from adobot-io.
The password field root
- put it inside quotes so it looks like "password" : "root"
.
from adobot-io.
On MYSQL "password" : password
goes without quotes & there is no line 144 on config.json
from adobot-io.
Replace the whole content of your config.json file with the following. That will fix it
{
"defaults": {
"charset": "utf8mb4",
"collate": "utf8mb4_unicode_ci"
},
"development": {
"username": "root",
"password": "root",
"database": "adobot",
"host": "127.0.0.1",
"dialect": "mysql",
"admin" : {
"username": "admin",
"password": "admin"
}
},
"production": {
"use_env_variable": "DATABASE_URL",
"pool": {
"max": 5,
"min": 1,
"idle": 10000,
"maxIdleTime": 120000
},
"admin": {
"username": {
"use_env_variable": "ADMIN_USERNAME"
} ,
"password": {
"use_env_variable": "ADMIN_PASSWORD"
}
}
}
}
from adobot-io.
Everything Works perfect now. Thank you.
from adobot-io.
Is there any plan on adding File Manager, Camera, Mic
On it?
from adobot-io.
I'm no longer using this spyware now, so I'm not adding any features. But I'm willing to assist anyone willing to add more feature to the app.
from adobot-io.
Ok. I'm closing this issue as its been resolved.
from adobot-io.
@knkrth please can you share or show how you add the above I mean mic,file manager and camera thanks in advance
from adobot-io.
@lordcharlx I did not add any new features
from adobot-io.
Related Issues (20)
- Enhancement HOT 7
- heroku and remote sql HOT 2
- I tried to install this application on redhat openshaft.
- Can we block all Android based Device
- issue with $git push heroku master HOT 1
- can not see connected device HOT 3
- Heroku asking for credit card HOT 4
- dont want to use heroku
- Sequelize connection etimeout 127.0.0.1:3306 HOT 2
- how to install web server on local HOT 2
- Sequelize [Node: 12.16.1, CLI: 2.7.0, ORM: 3.30.4] fs.js:35 } = primordials; ^ ReferenceError: primordials is not defined HOT 4
- there is problem push heroku master HOT 9
- Steps to deploy app on Google cloud Platform
- .
- ghjjh
- Push rejected, failed to compile Node.js app. HOT 1
- Dist Folder is missing
- Plain Text Params
- Heroku suspended the AdoBot-IO app. HOT 1
- Pjdw2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobot-io.