Mysql Server Database showing only information_schema database - mysql

Initially i tried connecting the Mysql server database from another machine connected in LAN from my machine.
I successfully connected and i worked with that. After shutdowning the both machines.
Later again i tried to create new database i mean in the connected Mysql server database from my machine it worked. But in the Mysql server database machine showing only information_schema database alone. And also i unable to create new database in the connected Mysql server database machine.
I tried with GRANT & PRIVILEGES cmds but it showing access is denied .
For Your Information
Mysql in my PC and Mysql server database in another machine having the same user name and password.
This is the cause for the error.
What shall i do now ?

Related

Tableau error connecting to local MySQL db

Windows Server 2008
Tableau Desktop 7.0
Local MySQL database using Xampp
When attempting to connect to a localhost MySQL database server using the native MySQL data connection in Tableau Desktop, I'm getting the following error:
"The connection to the data source might have been lost.
Communication with the Tableau Protocol Server process was lost.
Unable to connect to the server "localhost". Check that the server is running and that you have access privileges to the requested database.
Unable to connect to the server. Check that the server is running and that you have access privileges to the requested database."
When using "Other Databases (ODBC)" in Tableau, I am able to connect and return data. However, I would prefer to use the MySQL connection to avoid the limitations of the Other Databases connection.
I created a specific username in phpmyadmin as well as tried using the root username and password and the same error was returned. I created a user DSN in odbcad32.exe and attempted using multiple versions of the MySQL ODBC driver (3.5, 5.2.7, 5.3.4).
Does anyone have any ideas of what might be causing the error? Really appreciate any help.
A bit late in replying but....
MySQL user connections are based on a combination of username,password AND the host you are connecting from.
If you are connecting to MySQL on the same host as Tableau server, then the connecting host could be seen as '127.0.0.1', 'localhost', '::1' or even a hostname if MySQL is configured to resolve those.
The simple way to test would be to set the host field to '%' for the user you are trying to connect as. I would not recommend this for your root user entry or other accounts with significant privileges.

How to access MySQL remotely through workbench

Hi I'm trying to create a new Connection to an MySQL database installed on a remote Windows server. However, due to server authentication problem, I cannot get the local mysql workbench connected to the remote database. And I could not find a place in workbench where I can provide my server authentication, i.e. username and password to access server. Does anyone know how to do this?
Thanks!
in the Home window of mysql workbench, near Mysql Connections there is a + button, click on it to Open the setup new Connection wizard, then you get to enter the server's parameters.
Hostname : your Windows Server's host name.
Port : Port on which the remote mysql server communicate.
Username : your Mysql server's Username.
Password : your Mysql server's Password.
Default Shcema : the database you want to connect to.
Hope this helps

Can't connect to localhost MySQL database through command line?

Weird issue. Can't connect to localhost MySQL database from command line, but I can through MySQL program, Sequel Pro. Any ideas why? I entered the same user/password, but I'm getting a access denied error for root#localhost
Extra question: can you run MySQL commands within Sequel Pro? I'm pretty new to MySQL, but I'm just trying to change a simple column definition.
EDIT: reset password from within Sequel Pro query for root, and was able to get it working.
MySQL has different accesses. You can allow a MySQL database to only serve requests from a specific machine, or only from the local machine.
However, note that MySQL differentiates login from "localhost" and from "127.0.0.1".
Try allowing both localhost, 127.0.0.1 and "%" to the account.

Connecting to MySQL on AWS via Query Browser While Outside the U.S

I am running MySQL on an Amazon AWS Instance. I was able to previously connect to the MySQL Database via MySQL Query Browser. Now I am traveling outside the U.S. and I am having trouble connecting via the Query Browser. I am able to use Terminal to create an ssh connection and then login to MySQL, so it does not appear to be a larger issue with the MySQL Database.
Has anyone else had a similar problem? Any ideas how I can fix this?
This is the error I get from the MySQL Browser
Your connection attempt
failed for user 'admin' from your host to server at
ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com:3306: Can't connect to
MySQL server on 'ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com' (4)
Please: 1 Check that mysql is running on server
ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com
2 Check that mysql is
running on port 3306 (note: 3306 is the default, but this can be
changed)
3 Check the admin has rights to connect to
ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com from your address (mysql
rights define what clients can connect to the server and from which
machines)
4 Make sure you are both providing a password if needed and
using the correct password for
ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com connecting from the host
address you're connecting from
The only possible problem I see could be #4, but I ran and re-ran this command via Terminal:
grant all privileges on *.* to 'admin'#'%' identified by '<pass>' with grant option;

how to connect to local db from a virtual ubuntu server?

i have a virtual ubuntu server running in windows 7 pro using VMware Player.
i have to connect to a mysql database which is there in windows7 (local) from the ubuntu server.
when i try connect to the database which is present in the windows7 from ubuntu server i get error saing Host ' the windows7-PC ' is not allowed to connect to this MySql server.
jdbc:mysql://mywindows7_IP:3306/mysql
You've to add the permission to connect from another IP to the username you're using. You can add an entry to mysql.user table duplicating the user you're using and changing the Host column to allow the IP address of your Ubuntu, or change the existing Host entry with %, which actually allows to connect from everywhere.
There is also an Host field in the db table, so in case you've restricted the access of that username to a particular DB, then you've to fix also mysql.db table.
After those changes, do a FLUSH PRIVILEGES, so MySQL can pick them up.