go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Install and configure MySQL on AWS EC2 instance
 
Subject: Install and configure MySQL on AWS EC2 instance
Author: Linux
Posted on: 10/26/2011 01:28:13 AM

Here’s how to do that:


$ sudo yum list | grep mysql*

$ sudo yum install mysql
$ sudo yum install mysql-server
$ sudo yum install mysql-devel

$ sudo chgrp -R mysql /var/lib/mysql
$ chmod -R 770 /var/lib/mysql

$ sudo service mysqld start


Now you’ll have MySQL installed and the service has started. The next step is to set a password for the root user:
$ usr/bin/mysqladmin -u root password secret


If you only want to use MySQL internally, then you’re all done now.

But if you access MySQL externally then you’ll get the error message similar like this:
SQL Error (1130): Host 'adsl-71-146-123-45.sbcglobal.net' is not allowed to connect to this MySQL server


Replies:


References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.