Hosting an application with rails 3.1 and mysql - mysql

I am a newbie to rails and have developed a rails application with Rails 3.1 and Mysql and i wanted to host my app and tried heroku which to my surprise doesnot offer mysql hosting out of the box (although offers it with Amazon RDS). I have mysql specific SQL queries in my rails app that doesn't make pluging in postgres any easier. Looking for suggestions on a free hosting provider to host my app with rails 3.1 and Mysql database.

For anybody else looking for options. There are add-ons for Heroku. ClearDB and Xeround are a few. I ended up using ClearDb.

Related

Process of creating database on your own server

I bought "Hetzer" server so I can create my own database and practice a little bit. My server is using Ubuntu. I plan to also create a script (probably in node or asp) so my android application can communicate with database.
How to start with creating database, what to do?
Firstly https://www.hetzner.com/ is one of the best professional web hosting providers. In order to set up your Mysql server to your ubuntu machine. Install lamp stack. There are many tutorials about installing lamp. Then open your DB for remote connection or do kind of restful service to access your data in DB.

Is it necessary to update NodeJS - MySQL (Callback) Connections to MariaDB (Promises/async-await)?

I'm kind of new to NodeJS development and enjoyed all this new development learning. I'm building kind of a CMS using NodeJS v10.15 and MySQL 8.0 in Windows 10. I havent'd had any problems during my development on Windows, but recently i started to export my NodeJS CMS to a Raspberry Pi4 (Raspbian), because i wanted to know if i could started loading different instances of my CMS on Raspberry and it worked.
However when i was trying to stablish connection between NodeJS and MySQL (actually MariaDB), i noticed that MariaDB (MySQL is not available on Raspbian) connections used Promises and Async/await functions and not the classic Callback function that is used on MySQL. I had to start looking for a module that allowed the MySQL classic Connection to avoid rewriting all of my CMS only for Raspberry and found a compatibility module called mariadb/callback.
So at this point i'm not sure about the way i'm developing my CMS with MySQL, because i see that the official database product is MariaDB on Promises and Async/Await, and the MySQL way is only for compatibility, like an emergency option that someday will be shut down.
Should i rewrite my CMS to MariaDB Promises and Async/Await to replace the MySQL classic connection?
Thanks in advance for your answers, it's really important for me.

Is a MongoDB database installed on a server?

I just started using MongoDB and Node.js with a MEAN Stack (MongoDB, Express, AngularJS, Node.js) on my local machine and at first I assumed that MongoDB was installed on the Node.js server kind of like MySQL is installed on Apache when you install the LAMP or WAMP stack.
But now I'm not so sure any more :)
How does it work? Where is MongoDB installed? Can I use it without Node.js? Can I use MySQL without a server?
Both MongoDB and MySQL are installed standalone on the host (in your case localhost).
MySQL is not installed on Apache. It's just the PHP interface to MySQL which requires Apache to serve it. You can use the MySQL command line (issue the mysql command in your shell console) without having Apache or PHP installed. The LAMP and WAMP stacks ship with the PHP MySQL interface configured.
MEAN is a similar stack, consisting of each individual component available independently as well as knit together seamlessly as per requirement. You can query a MongoDB hosted on a different machine from the machine you have the MEAN stack on too.

LAMP Server, MYSQL, PuTTy

I am connection to a LAMP Server trough PuTTY.
I have no idea if there is a GUI available so I'm doing this trough the CLI. The problem now is that I need certain fields from the database and I have no idea how the database looks since the lack of documentation.
How should I approach this. In the database there are 148 tables. Should I just go trough every table one at a time? Is there a smart way?
Thanks.
You could always install PHPMyAdmin, but if you don't have access to do so, you can try MySQL Workbench. This installs on your computer, and you just put in your server info and connect
There's plenty of GUI tools available for MySQL, some that you normally install on the server and others that you run on your desktop, here's a short list:
MySQL Workbench - Official mysql gui tool with really nice features (especially coming to db design)
PHPMyAdmin - web based interface, can be installed on the server and reached through a web interface.
HeidiSQL (free, windows) - desktop app
SQLYog (lot's of features, costs money) - desktop app
Sequel Pro (free, slim and good for macosx) - desktop app
You can also use the mysql-query browser for connect database.
Download link for window use : ->
http://downloads.mysql.com/archives/query/

Rails deployment with mysql database

I've a MySQL DB on a Rails app. I've a host&domain. I want to deploy my project. How should I it?
The way to go is Capistrano or Webistrano. Capistrano brings deployment automation to Rails whether you're working with a single server or on a cluster of dozens. Webistrano is a nice Web UI for managing Capistrano deployments. Take a look at the Capistrano Wiki for more detailed information.