numtel / meteor-mysql-server

Package to run MySQL server inside your Meteor app
34 stars 2 forks source link

More than one instance cannot be run simultaneously #1

Closed numtel closed 9 years ago

numtel commented 9 years ago

Due to the directory structure of Meteor's NPM packages, more than one instance of this package may not be run simultaneously on the same machine even if they are different applications.

numtel commented 9 years ago

The directory structure is also such that the data will not be preserved if the package is updated:

/home/ben/.meteor/packages/numtel_mysql-server/.0.0.7.1bjr870++os.linux.x86_64+web.browser+web.cordova/plugin.mysqlServer.os/npm/mysqlServer/node_modules/mysql-server-5.6-linux-x64/server/data/mysql/

numtel commented 9 years ago

With version 0.0.9, the database files are stored by default in the applications .meteor/mysqldb directory (can be specified with the datadir setting). The binary log directly is automatically placed inside of this directory.

https://github.com/numtel/meteor-mysql-server/commit/852414298f8120a33662781deb2e683a071b96d5 https://github.com/numtel/meteor-mysql-server/commit/0c19ba694ab752e016f21e8ef766568196b7f0d8