joppot

コピペで絶対動く。説明を妥協しない

サーバ

Install only mysql command for RDS in EC2

投稿日:


Abstract

Hello everyone it’s me candle.
This topic is a little thing but I note to self.
If we use RDS, we don’t need Mysql server in the EC2.
You may want to install only the mysql command.
I will explain it.

Precondition

You use EC2 and RDS


Install mysql-devel

Mysql server is installed by mysql-server of yum.
The package of controlling mysql server is mysql-devel.

So you only install mysq-devel, it is ok.

Check it out.

yum info mysql-devel

Let’s install it.

sudo yum install mysql-devel

Try to execute this, you can see that mysql server doesn’t launch.

sudo service mysqld start

On the other hand the mysql command exists.

mysql -u root -p

After that, you can login by enter the username, password and host of RDS.


Conclustion

I just post this for note to me.

スポンサードリンク

If you think this article is good, share it please

-サーバ
-, ,

執筆者:


comment

Your email address will not be published. Required fields are marked *

関連記事

Monitor the memory state of ec2 with watch and free command

English 日本語 Abstract Hello everyone, It’s candle. In this time, I will show you how to monitor ec2 memory in real time. EC2 server of t2.micro has only 1GB of memory, If you run composer, rails, mysql on it, memory may be barely. It is useful if you can monitor the memory and tune the server. Precondition EC2 server

Allocate original domain of Route53 to React hosted at S3

Abstract Hello everyone it’s me candle. We will allocate original domain of Route53 to React hosted in S3. Condition You have a domain at Route53 You have a bucket with the same name as domain in S3 Your React is already hosting on S3 Importantly, the bucket of S3 and the domain name acquired by Route53 must be the same name.If you have not created a bucket yet in S3 or React web app is not hosted in S3, please refer to the previous article. Checking The domain of Route53 I have joppot.info domain at Route53. I will allocate “reacttest.joppot.info” …

Collect the Rails 4 production.log with td-agent

English 日本語 Abstract Hello everybody, It’s me candle. In this time, let’s get the rails 4 production.log by td-agent. I have been written same article, but there was lack of explanation and etc, I will rewrite it again. Also, I will show you how to get Rails 5 production.log at a later date. Precondition You must be able to execute ruby on rails in production mode. It is ok in any environment as long as it has executable. Such as webrick, nginx, puma and apache. td-agent or fluentd is instlled. It is assumed that td-agent or fluentd is installed.

Build up a td-agent server on centos 6.5

English 日本語 Abstract Hello everyone, It’s candle. In this time, we build up a td-agent server on the centos 6.5. Td-agent is service based on fluentd. It daemonizes fluentd and creates a GUI. Premise You have Centos 6.5 server. I use Centos 6.5 on the vagrant for explanation.

How to define environment variables for each virtual host in apache 2.4 and use it in php

English 日本語 Abstract Hello everyone, It’s candle This time I’ll show you how to define environment variables for each virtualhost in apache 2.4 and use it in php For example, when you are developing with wordpress, you don’t want to put password or access key or anything else under the control of git. So, you can define it on apache and require it with getenv for use. Premise apache2.4 anything php project you have already built some kind of virtual host.


I work in the venture company as a CTO. I start to write program in University, first I learned java, C++ and PHP. In the company, I'm developing web services by Rails. I do like to automation.