I was wondering whether there is a way to define a specific database in the connection setup of MySQL Workbench (I know this works with other database software). Sometimes I have a lot of different databases on one server and I only want to access one with one connection. Can I specify the database in the connection settings somehow?
YES, On the home tab Click the + in MySQL Connections. And put the database name in the Default Schema: when you fill in all the usual info about ip address etc
Now if you only want to see the one database, then create a new MySQL user account and only allow this new account access to this single database. Then change the connection to the database to use the newly created MySQL account.
I guess you are seeing all the databases because you are using the root account.
Related
I want to allow MYSQL connectivity to business users on tableau without creating a DB user i.e. without allowing direct access to the database through the MYSQL workbench.
right now I have a MySQL user with grant access on only one database to connect through tableau. But business users can use this user to explore data through workbench and run queries, which is not ideal.
Is there a way to give MYSQL database access ONLY on tableau and not any database tools like workbench?
There is not such an option for it. But you can create/define user roles with restrictions on DB/table levels in MySQL or you can create two database(on same machine or another machine), one is Main(Primary) and other one for Tableau only, so if any Tableau users access the new(separate) database from any other application, they will have limited data(only which is using for Tableau dashboards).
So I found a solution for this and here it is, in case someone else has this issue.
I just published a live connection to my database table on tableau server, and embedded user credentials in tableu. This way anytime a user wants to use the data source they just need to select from published data sources. But we wont have to share user credentials with them, that resolves the issue and they wont be able to log in using any credentials from any database client.
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.
I'm pretty new to server configuration and I'm stucked with this situation. I have a domain and a couple of subdomain for test. From each one i can connect to the database that have been created toghether with the subdomain. Now i would like to acces another DataBase (created with phpMyAdmin) from one of this subdomains, but my script (it is working) report me that "Cannot Find Database".
Is possible to make this database reachable from that domanain?
Thanks in advance.
By default all database in webmin can be access from any site, double check database access I mean make sure your use username have access to this database and some times webmin truncate username go to user and copy it as it's in webmin.
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.
I want to generate reports with an external database of mysql.
Not my localhost database.
I want to generate report of mysql database of external server.
Have you ever used the Data Source Wizard?
From the Pentaho User Console, select File -> New -> Data Source.
Name the new data source.
Select "Database Table(s)" as the type.
Click the little plus circle to add a database connection.
Select the database type. Fill in host name, port, login information, and any other options. Test it if you like.
Hit Ok.
Continue with Data Source Wizard.
In order for MySQL remote access to work properly, the following needs to happen:
You have to make sure that MySQL is utilizing TCP bind on top of socket binding. Also the address it is binding to has to be accessible outside the machine (ie. not localhost)
A user needs to be created with the proper hostname and database access. DO NOT USE THE ROOT USER.
OR
You have to connect to MySQL through an SSH tunnel, if it is bound to localhost on the system, and a user needs to be created with access to the database (you shouldn't use root).
If you're not sure how to do this, I recommend you talk with your systems admin, or if this is hosted on another location, your hosting provider. In general I use the secondary option, but it's also the more difficult to setup for some users.