I am trying to create a database for my node.js server using MySQL. I am aware of the node-mysql module. I found an example here but am not able to make it work. I have MySQL Workbench installed on my computer, will that do? Or do I have to install something else from here? Please point me to some nice tutorials for setting up a connection between my server and MySQL.
Asked
Active
Viewed 72 times
0
-
1Why not? What happens? – SLaks Aug 04 '14 at 18:30
-
The [answer](http://stackoverflow.com/questions/5818312/mysql-with-node-js) to this question may help. – celeritas Aug 04 '14 at 18:30
-
@SLaks: Well, in the mysql.createConnection() method from http://blog.josedacruz.com/2013/07/19/learning-node-js-using-mysql/#.U9_TZuOSyXi what are the host and port parameters? – raul Aug 04 '14 at 18:41
-
1The hostname and port that your MySQL server is running on. – SLaks Aug 04 '14 at 18:42
-
do you already have mysql running on a server? – markasoftware Aug 04 '14 at 19:31
-
@Markasoftware: I hadn't installed the MySQL server. All set now – raul Aug 12 '14 at 07:07