I have many db's from customers and many own db's, all of them in mysql and I'd like to have different mysql connections (Customers, Own).
My trouble is I can't. When I create a second mysql connection, is taking all db I got in my localhost.
Any advice?
Thanks
I haven't tried Navicat but I have been using SQLyog, where you can have separate connection for each database.
In SQLYog while creating new connection it ask me for database also, along with other details such as username,password etc.
Related
Good morning!
I have 2 tables that are stored on different databases - different mySQL hostnames.
How to I join them?
Is there a way to open a connection to a database, being connected to another, using commands at the MYSQL Workbench GUI interface (not command prompt) and then query it?
Many thanks,
I am new to databases, have done my basic "homework" regarding the theoretical part, and set about using MySQL Server through MySQL Workbench.
I have created four "connections" which appear on the Workbench homescreen dashboard, and I have also created some tables. But when I login through any connection (using user name and password), I can see all of the tables that I have created. So can anyone please tell me what is the point behind multiple connections then? What exactly is a "Connection" in MySQL Workbench?
I tried googling it, searched it on StackOverflow, and even referred the user manual of MySQL workbench, but got no answers.
Each MySQL connection contains its own set of definitions. For example, the connections might connect to different MySQL servers, or the same MySQL server with different usernames, or enable SSL for one, or you might set up a connection to a remote MySQL server using the SSH options, and so on.
As for multiple connections to the same local MySQL server, you might have one connection using "root" with another using a less privileged user. Depending on how you set up the users, they may (or may not) both have rights to see and use the same databases (information).
So to summarize, connections simply connect to the MySQL server. If two connections use the same exact information then the results will be identical. However, that is not a common use case.
Basically the short story is we have a report generator running on a MySQL database at work and management wants me to modify things so we can connect to tables in an external Access database from this report generator as well. And then create reports that join tables from the MySQL database to the Access database. I suggested exporting the data from Access and importing it into MySQL but they want a live, real-time connection. To complicate things further these are both on different servers right now (MySQL on Linux, Access on Windows) and I'm not sure that can be changed.
I tried to look this up online but all I could find is ways to connect to MySQL from Access, not the reverse.
Is what we are trying to do even possible, and if so, can someone point me in the right direction?
is it possible to create a connection from a MySQL DB to a remote database (probably Oracle) using something like an ODBC/JDBC connector? I need to create a trigger on the MySQL side that performs an insert/update on a table in the remote DB.
Can MySQL act as a client in this way?
Thanks
Craig
I am certain that you can connect to MySql from Oracle, not that I have done it myself, but I am not sure if it can be done the other way round.
If a connection from Oracle to MySql can solve your problem then have a search for 'Oracle Database Heterogeneous Connectivity'
Please tell me how to connect to mysql database server from another mysql database server running in two different locations and access all the tables and update them ?
afaik there is no direct "database link" in mysql like there is in oracle. what you can do is master-master replication of two databases and then update locally. similar question with more info:
Oracle Database Link - MySQL Equivalent?
You could pop a MySQL Proxy client between the two servers and send your queries to it and let it do all the talking backwards and forwards between the other boxes.