Myself trying to host a web application in amazon server which takes data from database.I tried to make an instance in amazon rds with master username as root and a password.I have mysql workbench . I don't know how to import my .sql files to amazon rds.While going through the tutorial i am getting confused wih the security group and all.My questions are
1.do i need to create a security group to do my job,to accesss my application from any ip address?
2.how can i create database with this amazon server in sql workbench/sql query browser.
You can either create or add your IP address in default security group to access application to Database.
Amazon RDS is just another database maintained by Amazon for you.No much difference in usability, You can connect to it from your MYSQL workbench by providing RDS details and you can star using just as another database.
Related
I have currently deployed a NodeJS application on a Kubernetes engine, and I want to send SQL queries to the SQL instance on Google Cloud. What's the best approach to doing this?
Following the official Cloud SQL Connecting from Kubernetes Engine . The recommended procedure to connect to the SQL instance is by using the Cloud SQL Auth Proxy,it will be added to your pod using the sidecar container pattern. This setup has multiple advantages in terms of security and resilience.
But take into account that it's possible to connect to the SQL Instance without Cloud SQL Auth Proxy by using private IP, but only when it belongs to the same VPC network.
Please how can i deploy my shiny application developed with R studio and connected an sql database. I created the mysql database on a local server (wampserver) and the application connects to it perfectly but i have to deploy it with the database.
Consider deploying your sql database in the same place that you will be deploying your application. Otherwise, you will need to look into options for exposing your database in such a way that your app will be able to access it.
For example, you could deploy both the database and app on an AWS EC2 instance. Alternatively, you could deploy the database to an RDS instance and connect to it remotely with your app on EC2. Those examples are only pertinent to Amazon resources, but the logic applies regardless of your platform.
How to load my SQL database created in MySQL Workbench on Azure cloud?
I created a database which consists of some tables - for now, there is now data in them, it's just a small script created by MySQL Workbench. I also created a database on Azure cloud, created login & password and when I want to use 'automated export' option (I have Storage account, I enter valid login with password) I have error:
'Could not find any bacpac files in the specified storage account.'
I tried google this phrase but I completely do not understand the idea behind these bacpac files and I do not know what to do with it. Can anyone describe me step-by-step how to put my database on Azure cloud?
I want to connect to this DB on Azure in the future because I would like to do a webapplication and android app which will use a remote DB available online.
Azure SQL Database is a custom SQL Server, so if you want to use MySQL you should create a Clear DB (which is a Microsoft partner that offers MySQL on azure). Other option, you can create a Virtual Machine and install by yourself a MySQL.
After that, you can import your tables / records.
I just heard about amazon rds and MySQL Workbench today from my partner for my group project, so I'm not very familiar with them. My partner has created a host account on amazon rds for our database, and I am suppose to help create table and make sql queries. However, I'm having no luck connecting to the database through MySQL workbench. The error message I received is "Unknown MySQL server host '*host_address*'. I have tried adding port 3306 to my firewall as suggested by a blogger, but that still doesn't work. There are some answers that say in order to connect to amazon rds, the user would need to add his/her IP address to the "DB Security Group" in amazon rds. So, does that mean my partner would need to add MY IP address to "DB Security Group" in the amazon rds account that my partner had created for the database? I been working on getting the connection for the last 6 hours, so I'm very greatful if someone could answer my question or point me in the right direction. Thank you for all your help.
The RDS Security Group for your RDS instance needs to be configured to allow access from your IP address. Once it is done, then you can verify that you have GOOD connectivity by running telnet <you_RDS_Instance_Name> 3306. Once you are able to connect fine, then I should be able to connect using MySQLWorkbecnh.
I have personally never used MySQL Workbench but I connect using MySQL cli to my RDS instance.
Here is the sample telnet command:
# telnet myrds.us-west-2.rds.amazonaws.com 3306
Trying 10.249.88.207...
Connected to myrds.us-west-2.rds.amazonaws.com.
Escape character is '^]'.
N
5.6.13-log▒)BM#5)n▒\eeM/B?Vr[P_mysql_native_password^]
telnet> q
Connection closed.
Read More about RDS Security Groups here.
This blog posting (http://thoughtsandideas.wordpress.com/2012/05/17/monitoring-and-managing-amazon-rds-databases-using-mysql-workbench/) describes how to use MySQL Workbench with Amazon RDS. It's for an older version of MySQL Workbench but still valid.
I'm trying to work out how to upload a 15gb database to my Amazon AMI on EC2. It keeps dropping. My ISP gives 1.5mb/s upload. Also my download speed is goes to neraly nothing when I am uploading. Is there a way to send the database over quickly using EC2?
Thanks
You can use any database GUI manager to upload the database. Connect to your EC2 database using your database GUI manager and upload the data from your local system. If you are using MySQL as your database I will suggest SQLYog MySQL GUI manager, Connect to your EC2 using ssh tunneling and upload your data.
Consider using rsync with options like:
rsync -PazSHAX LOCALDIRECTORY/ REMOTEHOST:/REMOTEDIRECTORY/
Keep running it until it completes successfully as it will resume where it left off.
You can consider Amazon Import/Export for that. It costs some money, though.