Ruby Server with MySQL - mysql

So, I'm writing a basic application, with a html5/jquery front end and a ruby backend. I've never used a ruby backend, and was wondering how I'd go about that. I am going to be using MySQL, very much like an Apache/MySQL/PHP thing but without PHP. I will need to eventually put the application on some sort of web server. For now I just need something local so I can develop it. So, is there a WAMP for ruby instead of php? I've been reading and Ruby on Rails seems like it may be what I'm looking for, but I'm really not sure.
So, what kind of platform do I need to learn in order to do this. I want to use ajax if possible(ruby backend). How do I go about setting up my environment.
Sorry if my question is somewhat vague, thank you so much for the help.

IMO railsinstaller is the way to get started on Windows.
For getting started with Rails itself, Hartl's Rails Tutorial is great.

When I was developing in Rails on Windows I used rails installer as Dave Newton said. For local development you can either use the bundled database SQLite and the bundled WEBrick server which means you don't need to install Apache or MYSQL. If you really want to though, XAMPP worked for me to provide MYSQL and Apache services on Windows.

Related

using which mysql_backup packages?

I have a DB program and I want to use mysql_backup that is from here:
http://mysqlbackupnet.codeplex.com
When you download the package,there is 3 folders: .Net 2, .Net 4 and .Net 4.5
Is there any difference that which package I use?
Although it's better to use .Net 2 because all my clients have Windows XP that .Net 4 has some crashes on it.
And if there is no difference, then why there is three packages?
thanks
What "DB program" do you have? I'll take a guess it's MySQL you're working with, but are you using something like Percona or MariaDB as a drop in? Also what flavor of linux are you running on? I only ask because perhaps there are easier/cleaner ways of doing what you are trying to do.
If you have root access to the server you are working with, then why not write a bash script to take care of backing up your databases. Going your own custom route might seem to daunting, but the upside is you get to control how your system backs up. You could get a cron job to make backups to a specific user folder, or even have backups sent to a remote Dropbox. I've got a system similar setup on my own VPS. Happy to help you out if I'm able.

How to use MySQL in a C# / XAML project

I've been searching around the web trying to find out how to use MySQL in a XAML project.
I've seen a bunch of examples where functions like MySqlConnection(...) are used and so forth, but none of them mentions if a specific assembly is necessary or if it's something you need to download first - like a dll.
Something like that is needed since it doesn't work straight away.
Anyone knows that?
You have to download and install MySql .Net Connector. Tool provided by MySql to connect with .net. This will have the assemblies used to connect .Net Applications to MySql.

MySQL standalone or via XAMPP?

This is my first question ever at stackoverflow, hope I make sense out of it. I am starting to learn about databases and also programming these days. So I would want to get some advice on MySQL database. Though it's open source and available for download, Should I install the standalone MySQL GUI version on my laptop (Windows 7 32bit) or should I install XAMPP and then access it through phpMyAdmin ?? My purpose of asking this question is that , for starters..I am learning SQL and querying. And then I would want to learn to create web application using php or JavaEE.
I am completely unaware of these concepts, so I would appreciate if someone can just take few minutes and guide me accordingly.
Thanks !
Regards
and welcome :)
If you're planning on concentrating on PHP more than MySQL, it's a good start to install XAMPP. It's more lightweight and contains both PHP and Mysql. It's better for you to concentrate on learning the basics first, rather than spend time on software components. That's why I would choose XAMPP (or my personal favorite: WAMP Server)
If you'd like to spend a bit more time on database management such as user management, jobs,... it could be interesting to download the Mysql server package from their site.
Also, that package comes with example databases which you can use to learn some SELECT and UPDATE queries. It queries a lot easier that PHPMyAdmin.
If your goal is to use MySQL with self-made applications, get XAMPP and learn some PHP before diving into queries
And then I would want to learn to create web application using php
In this case XAMPP should be your friend. BTW with XAMPP you get an MySQL-Server which is identically with the MySQL standalone. You can fire your querys by using phpmyadmin, or connect via shell (console) or thridparty programms ....
In case that you are using NPM, you can install a standalone version of MySQL using the mysql-server package: https://www.npmjs.com/package/mysql-server

Bundling MySQL with an application

There are alot of applications like MAMP, WAMP, etc. That come with a version of mysql that needs no installation and can be turned on and off easily. I am trying to create a web based application that will use a mysql database, where do you get mysql to bundle and how is it done so the user doesn't have to install it?
you can get it mysql
http://dev.mysql.com/downloads/
you can used php, ruby (rubyonrails) or java for developed application. in the case php install xampp.
MAMP, WAMP, etc. all have a bunch of configuration that is already set up for them. Essentially they've installed MySQL and everything else included under a single directory that doesn't rely on anything outside that directory and then zipped it up together. I'm not sure exactly what you're trying to do, but that really seems like overkill. May I suggest checking out sqlite? It's designed for bundling and embedding and will be quite a bit easier to deal with.
Are you truly creating a Web Based app or are you wanting to create a desktop application using web scripting languages?
If you are creating a web app, you shouldn't need to bundle MySQL since when you deploy to your hosting environment it should already be in place. If you truly need to package everything you'd be best off offering your software as a virtual machine appliance with the appropriate services already configured and running.
If you are creating a desktop app, that's a whole other issue.

COCOA Objective-c : How can connect to mysql database?

I am creating application for MAC using cocoa framework, I would like to know how and what are the ways i can connect to MySql database using cocoa framework.
You might want to look into http://www.sequelpro.com/docs/Source_Code. They seem to have resurrected the original MySQL-Cocoa code and it seems to be under active development. The other option is the commercial MacSQL Framework.
Edit: You might also want to look at the following tutorial. It is a great introduction in using the libmysqlclient and even provides a sample Xcode project.
Short answer: You can't, at least not directly.
The Cocoa Framework doesn't have a database driver, generic or otherwise (CoreData notwithstanding). In order to connect to a mysql database you need to use the aptly named libmysqlclient. This library is not included with Xcode, and as such will have to be downloaded (and probably built) separately: You can get it from here.
You'll probably have to distribute the library with your application, license issues might result.
Edit: It seems as if a library for connecting to the mysql database should be installed together with a MySQL server install. If the application will only need to run on machines where MySQL is installed, you might get away with linking to this.