Skip to content
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: If encoding is specified then the first argument must be a string #54

Closed
kimown opened this issue Feb 23, 2017 · 0 comments · Fixed by #55
Closed

Error: If encoding is specified then the first argument must be a string #54

kimown opened this issue Feb 23, 2017 · 0 comments · Fixed by #55

Comments

@kimown
Copy link
Contributor

kimown commented Feb 23, 2017

Hi, I follow the tutorial, but when I run code-push-server-db init --dbhost localhost —dbuser root --dbpassword 123456, error occurs, here is the log

$ code-push-server-db init --dbhost localhost —dbuser root --dbpassword  123456
/home/google/.tnvm/versions/alinode/v2.0.8/lib/node_modules/code-push-server/node_modules/mysql/lib/protocol/Parser.js:79
        throw err; // Rethrow non-MySQL errors
        ^

Error: If encoding is specified then the first argument must be a string
    at new Buffer (buffer.js:74:13)
kimown added a commit to kimown/code-push-server that referenced this issue Feb 23, 2017
lisong pushed a commit that referenced this issue Feb 23, 2017
* Update db

fix: #54

* Update db

fix: not use default password

* Update db

fix: same as upgrade command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant