connecting a database to create hibernate reverse engineering file - mysql

i have created two databases for the same connection string. When trying to create the .reveng file using netbeans it shows me the list of tables in one table only. And i couldn't find any option to select the database either. Is there a way to access the other databases in the same db connection?

Related

Creating MySQL Schema from AWS RDS

Is it possible to create a MySQL Schema from a running AWS-based RDS database? I am a newbie and not sure whether there is a tool like what is available in MySQL workbench type dashboard to create schema at ease?
I am also new to this but I recently created a MYSQL database on AWS RDS.
(I am new to MySQL and AWS).
The answer is yes, we can create schemas. However, as much as I understand, there is no concept of schema in MySQL. There is one database where you create the different database objects and then we just query those using one user or the other.
Edit:: Database and Schema are same thing as per the comments. So yes, we can create schemas and then users to access them.
Anyways, you can use the MySQL workbench to connect your AWS RDS database.
Or you can do the same using any coding language. For both the above options, make sure your database is created with 'Publicly accessible' option enabled.
Refer to this - https://aws.amazon.com/getting-started/hands-on/create-mysql-db/
If you follow all steps, your database on AWS should work like one installed locally on your machine.

Connecting to MySQL database on AWS server from PHPMyAdmin

I am trying to connect to a MySQL database that resides on an AWS server from within PHPMyAdmin, to be able to view its tables.
I have the connection strings (hostname, username, password), but I do not see where I would link or provide the AWS database parameters.
Ultimately what I would like to do with the tables is to use the data in my front-end userform that is created in MS Excel.
Here's what I am able to do successfully:
1. can create MySQL database (testdb)
2. can create a table (testtable) from PHPMyAdmin
3. Use the MySQL for Excel connection service to be able to connect to the testtable in the testdb and use the data in my Excel application.
The problem I am having is bringing or linking to the MySQL database on the AWS server to my testdb. I just want to be able to see a list of the AWS database tables in Phpmyadmin. Is that possible?
Yes, it is possible. You can edit config.inc.php file of phpmyadmin to add as many servers as you want
Here is the link with the guide
https://tecadmin.net/add-multiple-hosts-in-phpmyadmin/

View Database Tables From AWS in MySQL Workbench

I have successfully migrated my mysql database file to an aws mysql instance using MySQL Workbench.
I now want to test that everything is migrated properly. When I connect to the db using MySQL Workbench and run an sql query such as
SELECT * FROM Users
I get an error saying that no database has been selected. I'm thinking that I'm actually only connected to the server and not the actual database. Is there a method to connect to the actual db and view all the tables on the server using MySQL Workbench or possibly another tool.
You never connect to a database. A database (aka schema) is just an organizational construct within a database server (aka RDBMS). So, first you connect to that server, to establish the communication. Then you select a schema to work with. Either run a USE command or, in MySQL Workbench, double click on a schema node in the schema tree on the left hand side to make this the current default. You can also set an initial default schema in the connection settings. The current (default) schema is shown in bold in the tree:
Figured it out.
There is a small expand button in the navigator panel on the left which can be expanded and I can view all my tables, columns etc...

mysql workbench migrate database with two different names

I'm using mysql workbench to try and migrate from 1 mysql database on my VPS to another on my DS; However the database names are different and I cannot change the database names due to restrictions.
When trying to migrate from the VPS to the DS I get an error because the two database names are different.
Is it possible in mysql workbench to set this up correctly as I can't seem to find it.
Yes, you can do it in manual editing step. From view combobox select All Objects, then double click on target schema name and rename it.

No access to tables remote MySQL database

I'm trying to link in MS Access to the tables in a MySQL database on a remote computer. I'm using a system DSN (ODBC), but when I try to link to the tables (Link Tables dialog) the dialog is empty. No error message, just a empty list. I'm sure I've a connection because after changing the Limit Connectivity to Hosts Matching field in the MySQL security tab (MySQL Workbench) from "%" to only "localhost", I get an error. All fields in the Administrative Roles tab are checked!
A few questions for you to consider:
Is that DSN associated with the database schema which includes the tables you want linked?
Does the DSN work in the opposite direction ... can you export an Access table to MySQL using that DSN?
Are there any provisions in MySQL to monitor client connections, requests, and so forth?
I'm basically grasping at straws on this one. But I'm wondering if maybe the DSN is functional, but perhaps not pointing at the MySQL location which includes the tables you want.
Point #2 should tell you whether the DSN is working at all. If you can export, find out where the exported table wound up in MySQL and compare that with the location of your other tables.