{"id":18304621,"url":"https://github.com/numtel/meteor-mysql-server","last_synced_at":"2025-04-05T15:31:22.354Z","repository":{"id":30687906,"uuid":"34243820","full_name":"numtel/meteor-mysql-server","owner":"numtel","description":"Package to run MySQL server inside your Meteor app","archived":false,"fork":false,"pushed_at":"2016-07-21T20:47:27.000Z","size":156,"stargazers_count":34,"open_issues_count":4,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-04T07:51:20.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"feedforce/e-navigator","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/numtel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-20T07:03:07.000Z","updated_at":"2023-06-19T00:37:14.000Z","dependencies_parsed_at":"2022-09-03T23:21:19.728Z","dependency_job_id":null,"html_url":"https://github.com/numtel/meteor-mysql-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-mysql-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-mysql-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-mysql-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-mysql-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numtel","download_url":"https://codeload.github.com/numtel/meteor-mysql-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247358682,"owners_count":20926266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T15:29:38.352Z","updated_at":"2025-04-05T15:31:21.913Z","avatar_url":"https://github.com/numtel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# numtel:mysql-server [![Build Status](https://travis-ci.org/numtel/meteor-mysql-server.svg?branch=master)](https://travis-ci.org/numtel/meteor-mysql-server)\n\nPackage to run MySQL server inside your Meteor app\n\n\u003e **Version 1.0.0 breaking change:** Default data directory has now changed. If you do not specify a data directory in your `.mysql.json` file, you will need to now specify the old default data directory in order to migrate successfully without losing your current databases (or move your data directory to the new default location, see \"Configuring the server\" section below). Set the `datadir` key to `.meteor/mysqldb` to maintain the old default data directory.\n\n## Installation\n\n\u003e Currently only supports Linux (32 and 64 bit) and Mac OSX (64 bit). Windows support is expected in the near future.\n\nAdd this package to your application to embed a MySQL server:\n\n```\nmeteor add numtel:mysql-server\n```\n\n### Configuring the server\n\nA settings file must be created with the extension of `.mysql.json` in your application. A file name like `myapp.mysql.json` is valid.\n\nIf a `datadir` setting is not specified, the MySQL data will default to your application's `.meteor/local/mysqldb` directory. The `meteor reset` command will clear the application's database. The directory will be created if it does not exist.\n\nWhen specifying a `datadir` setting, the path is relative to your application root.\n\nThe binary log directory will be set as `binlog` child to the `datadir`. This directory may be excluded from your source code repository or cleared to free space. It is not necessary to manually specify the `log_bin` setting.\n\n#### Initialization queries\n\nIn your `.mysql.json` file, you may specify a filename containing queries to perform on first installation of the database under the `initialize` key. These queries will be executed if the data directory is created when the Meteor application is started.\n\nIn this array, it may be useful to create the application's database and user.\n\n#### Example configuration\n\nSee [`test.mysql.json`](test.mysql.json) for an example. Except for the `initialize` queries, all other settings are used to build the `my.cnf` file. Specifying a port is recommended.\n\nDefault settings provide the binary log in row mode, requiring no extra configuration to use the [`numtel:mysql` package](https://github.com/numtel/meteor-mysql). To view the default settings, see [`index.js` in the underlying NPM package](https://github.com/numtel/mysql-server-5.6-linux-x64/blob/master/index.js).\n\n## Usage\n\nWith the start of you Meteor application, you will notice a new line output to the console:\n\n```\n=\u003e Started MySQL.\n```\n\nThe MySQL server is started on the local machine and may be used with the `numtel:mysql` package by using the following configuration settings:\n\n```javascript\nvar liveDb = new LiveMysql({\n  host: 'localhost',\n  port: 3509, // As specified in your .mysql.json file\n  user: 'root', // Default master user\n  password: '', // Default master password\n  serverId: 134, // Specify any value other than the server's value (default 1)\n  minInterval: 200 // Optional minimum query refresh interval (ms)\n});\n```\n\n## Resources\n\n* [`numtel:mysql` - Reactive MySQL for Meteor](https://github.com/numtel/meteor-mysql)\n* [Leaderboard example modified to use MySQL](https://github.com/numtel/meteor-mysql-leaderboard)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Fmeteor-mysql-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumtel%2Fmeteor-mysql-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Fmeteor-mysql-server/lists"}