I've removed this connection.end() after I saw the error.I am trying to query my AWS RDS database by getting a value I submit in an html form to pass to the backend and use it in a SQL statement. Asked by: Frida-Timms 547 I tried to query the MySQL database in Node.js but I don't know where. In my experience, that problem was due to creating a connection directly (with mysqljs/mysql library, using createConnection()) instead of using createPool() that allows to run query() and releases the connection automatically after execution (doing getConnection() + query() + release()). Asking for help, clarification, or responding to other answers. Var connection = mysql.createConnection( (Cannot enqueue Query after invoking quit error) 0 answers. Thanks for contributing an answer to Stack Overflow Please be sure to answer the question.Provide details and share your research But avoid. My index.js route file looks like this: var express = require('express') MySQL :: Download Connector/Node.js NodejsCannot enqueue Query after invoking quit mysql - npm Node.js + MySQL - CRUD API Example and Tutorial. I made a simple app in nodejs with express framework and ejs template where I can insert into mysql database and see the results, but for some reasons when I insert and refresh the page, the new date is not showing, even if it puts it in the database.I need to close the server to see the new data. Cannot enqueue Query after invoking quit PROTOCOLENQUEUEAFTERQUIT protocal enqueue after out Chinese meaning is quit after the call queue can not be queried.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |