Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get phpmyadmin access on Amazon RDS Database

I am new to Amazon web services and I have no knowledge of operate this service. I recently created a mysql database using Amazon RDS and now want to access phpmyadmin to import an existing database to Amazon RDS, but after spending a lot of my time I could not got any solution to solve this problem.
Can anyone please help me to find out the solution.

like image 488
12 revs, 3 users 96% Avatar asked Jun 19 '12 10:06

12 revs, 3 users 96%


People also ask

How do I access RDS phpMyAdmin?

In RDS Security group open inbound port 3306 to give phpMyAdmin access to MySQL. You can give which IP address of the server where phpMyAdmin is installed in the Security group. Now log in to phpMyAdmin using the password you created by visiting the URL: https:///phpmyadmin.

How do I connect to a MySQL database using RDS?

Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/ . In the navigation pane, choose Databases to display a list of your DB instances. Choose the name of the MySQL DB instance to display its details. On the Connectivity & security tab, copy the endpoint.

How do I access AWS RDS database from local machine?

To connect to a private RDS DB instance from a local machine using an EC2 instance as a jump server, follow these steps: Launch and configure your EC2 instance and configure the network setting of the instance. Configure the RDS DB instance's security groups. Connect to the RDS DB instance from your local machine.


1 Answers

There is a way of configuring phpadmin on you local machine or server to connect straight to your amazon database, but this would require you to have the connection string for your amazon database. look around the settings for your amazon database server and get the IP/URL, db_name, user_name and password. After getting all these files follow these steps

  1. Goto your phpadmin folder i.e. (yours may require ftp to your server) C:\wamp\apps\phpmyadmin4.1.14
  2. locate the configuration file config.inc.php
  3. Copy it to create a backup
  4. Open it in a text editor
  5. find this block of code and copy it (the whole block)

    $i++;
    /* Authentication type */
    $cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
    //$cfg['Servers'][$i]['auth_type'] = 'cookie';
    $cfg['Servers'][$i]['auth_type'] = 'config';
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = '';
    /* Server parameters */
    $cfg['Servers'][$i]['host'] = '127.0.0.1';
    $cfg['Servers'][$i]['connect_type'] = 'tcp';
    $cfg['Servers'][$i]['compress'] = false;
    /* Select mysql if your server does not have mysqli */
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    $cfg['Servers'][$i]['AllowNoPassword'] = true;
    
  6. change the copy below to match your amazon site, host is the ip/url of the database server, user is for user-name and password...

  7. close the config file and restart/relaunch the phpadmin Drop Down
  8. on the drop down under Current Server you can find the amazon server you added
  9. this same technique works to add different database servers to your phpadmin
like image 130
Vectoria Avatar answered Nov 01 '22 11:11

Vectoria