Linux, C++ and other Tortures

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 12 December 2011

MySQL on the Cloud

Posted on 10:51 by Unknown
On this post we are going to install and configure an Instance of MySQL on our remote server. Here http://www.guia-ubuntu.org/index.php?title=MySQL you can find a post talking about this same topic.

First of all we have to install the MySQL Server packages:

sudo apt-get install mysql-server


During the installation you will be asked to introduce the root password.

In order to allow connection from any client, edit /etc/mysql/my.cnf and modify bind-address with the following value:

bind-address            = 0.0.0.0

We need to do the same at operative system level, edit /etc/hosts.allow and include the following line:

mysqld: all

We also need to set a final layer of security at application level. Introduce the following command and introduce the password that you set in the installation phase:

mysql -u root -p

Once you are inside the MySQL console type (The semicolon at the end is quite important, do not miss it):

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 51
Server version: 5.1.41-3ubuntu12.10 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root';

After entering the above command type quit to leave the console:

mysql> quit
Bye


Now you can connect from your local pc to your remote database on the cloud. There are several interesting tools to manage and use your MySQL database server, my favorites are MySQL Administrator and MySQL Server. You can install it:

sudo apt-get install mysql-client mysql-query-browser mysql-admin


Fig.1 MySQL Administrator login


Log in with your credentials and your cloud instance identifier and enjoy!!


RESOURCES
  • Store Procedures MySQL with C++
  • Setup a Test Database
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Mercurial with Apache... on the Cloud!!
    And here we go with our third tutorial explaining how to deploy and enjoy applications 'In the cloud'. This time we will take advant...
  • Cross Compiling and Cross Debugging C++ with Eclipse from Debian Squeeze x64 to Debian Squeeze ARM (Raspberry Pi)
    1. Introduction I have received yesterday my Raspberry Pi ( http://www.raspberrypi.org/ )  unit.  Fig 1. Raspberry Pi connected After comple...
  • Shared Libraries with Eclipse
    Hello there! So here we go with another tutorial, this time explaining how to develop shared libraries using Eclipse-CDT as IDE. If you are...
  • Unit Testing with CppUnit and Eclipse
    As I already mentioned in one of my previous posts, CppUnit is a powerful framework that allows us to automatize the unit testing execution....
  • Communicating with RaspBerry via GSoap Web Services
    According to wikipedia "A Web service is a method of communication between two electronic devices over the Web (Internet)." I wou...
  • Shared Libraries with Eclipse on 86_64 (64 bits) systems
    If you followed my previous post  http://linuxtortures.blogspot.com/2012/02/shared-libraries-with-eclipse.html where I explained how to deve...
  • Configuring Ubuntu on my new HP G62-a55SF
    As usual, after the Operative System installation, there are some drivers to configure and some programs and features to install. Comparing ...
  • Using C++ Libraries from Python
    It's been a while since my last post but here I am back with a very interesting post about Wrapping C++ libraries to be used in python. ...
  • Image processing with OpenCV
    Hi again!! Following the format of my previous posts I will try to show step by step how to install and configure the OpenCV libraries, one ...
  • Continuous Integration with Jenkins, Mercurial and CppUnit on C++
    Hello again!! Today I am going to talk about Jenkins, an open source tool that enables the continuous integration and delivery for our proje...

Blog Archive

  • ►  2012 (9)
    • ►  December (1)
    • ►  July (1)
    • ►  June (1)
    • ►  April (2)
    • ►  March (3)
    • ►  February (1)
  • ▼  2011 (7)
    • ▼  December (5)
      • Trac
      • MySQL on the Cloud
      • Mercurial with Apache... on the Cloud!!
      • Apache on the Cloud
      • Ubuntu on the Cloud
    • ►  January (2)
  • ►  2010 (3)
    • ►  December (3)
Powered by Blogger.

About Me

Unknown
View my complete profile