MySQL Workbench fails to make connection - mysql

completely new to MySQL, have no idea, just trying to learn, so any help would be deeply appreciated.
I installed the ubuntu version of MySQL Workbench although I have Linux Mint. Had to do this since there is no mint version. And besides most ubuntu apps work on mint, well, maybe.
But this may be causing the problems I am facing.
Even though I managed to install it on my mint box, when I started it for the first time I got a warning that it is unsupported (or something like that) and hence this can cause problems. I proceeded anyway.
Before going any further, I should point out that MySQL is working in a docker container. did not want to use docker this early, but its in the tutorial, so yeah.
I have made 2 connections but none of them work.
Here are the details on both these connections as they appear in 'Manage Server Connections'.
Connection Name: Connection1
Connection Method: Standard (TCP/IP)
Hostname: 127.0.0.1
Port: 3306
Username: v.je
Connection Name: Connection2
Connection Method: Standard (TCP/IP)
Hostname: 192.168.10.10
Port: 3306
Username: v.je
When I click on Connection1 under 'MySQL Connections' on the 'Welcome to MySQL Workbench' window, the SQL editor opens.
However, there is no 'SCHEMAS' category on the left-side pane. There are Management, Instance and Performance categories but no schemas. Because of this I cant proceed further on the tutorial I am using.
and on the top tab its written "Connection1- Warning - not supported".
WHy is this happening and what is the solution?
Connection2 simply does not work. When I click on it, an error message pops up saying "Your connection attempt failed for user v.je to the MySQL server at 192.168.10.10:330: Unable to connect to localhost"
There are so many possibilities, that I dont really know what to do. Any help to get it going would be appreciated, thanks a lot.

Related

Power BI not connecting to MySQL

I am trying to connect Power Bi (Desktop version) with my online amazon mysql database. It demands for following information once you try to establish connection
Server: server ip
Database: database name
Username: mysql username
Password: mysql password
First time I received a bit lengthy error, which was because of unavailability of mysql-connector-net-6.6.5.msi. So I followed this link to solve the issue
Microsoft Power BI connect to mysql
After installing mysql-connector I am facing another error.
Whats wrong? One of my mates has successfully connected using the same credentials that I am using.
Okay, I just figured this out for myself. I'm able to connect directly to a MySQL database on port 3306. As I understand, it would be more secure to go through an SSH tunnel, but this doesn't work yet with Power BI.
So here are instructions for connecting directly:
First, let's make sure that everything besides the PowerBI connection is working.
1) Download and install the correct version of the MySQL/Net Connector. Right now, version 6.6.5 is the one that works. But from other forums, and from within PowerBI itself, I linked to other versions that did not work. (You will know it isn't working, because you probably won't be able to even open Get Data/MySQL Database/Connect.)
2) See if you can connect remotely to your database through some well established utility like MySQL workbench. If you can't,
- look at ports on the remote server. Here's a cool utility to check ports&IPs: http://www.yougetsignal.com/tools/open-ports/
- Check the permissions of the DB user. Realize that they may be affiliated with an IP address: 'username'#'ipaddress'. So that user can only connect for a particular IP.
- Check the bind address setting. In newer versions of mariadb, it should probably be commented out. I'm not sure about older version and pure mysql.
- other troubleshooting.
So after that's working, here are the settings which worked for me in MySQL:
go to Get Data/MySQL database/connect
Server: ipaddress:3306 (include ":port#")
Database: dbname
PowerBI interface. Select "Database" instead of "Windows"
Make sure you select Database instead of Windows.
Good luck.
Just a small tip. If you haven't already, restart the machine you just installed the connector on. I had to restart before it started working.
My solution for this was to add the port number to the server name/ip
eg. 192.168.0.1:4664

I can't seem to connect MySQL Workbench to a server

I have no knowledge of programming or anything beyond basic computer skills, so I'm probably jumping the gun on this.
Anyway, I am trying to understand SQL, so I downloaded MySQL Workbench, Utilities, and MySQL Server.
When I try to make a connection (on the start page of MySQL Workbench) I get an error code that reads:
"Failed to Connect to MySQL at 127.0.0.1:3306 with user root. Can't connect to MySQL server on '127.0.0.1' (61)"
I left the default settings (hostname: 127.0.0.1, port: 3306, user: root, no password) but I still get this error message.
What should I do? I already downloaded MySQL Server but I don't even know how to make sure it is running.
I am using a MacBook Air with OS X Yosemite (v. 10.10.2)
Thank you, I appreciate any help!
It very much sounds like your server is not running. If you use a current version of MySQL Workbench you should however still be allowed to "open" a connection, even if the server is not running. MySQL Workbench has an admin section where you can control your server, including starting it up or shutting it down.
When you open a connection with an unavailable server you see something like this:
Switch to the Startup/Shutdown section and click the "Start Server" button:
If all goes well you see a number of startup messages in the log window and status label changes to "running" (and becomes green). Additionally, the Session window in the lower left corner should now show you some details about your server.
You can now close the admin tab and start running queries in an sql tab.

phpmyadmin Error #2003 the server is not responding

after battling my way through every error message to try and get phpmyadmin running I am finally stumped by the last message. #2003 - The server is not responding. I think I know that its a problem between phpmyadmin and my installation of MySQL but I just cant find the hook.
I have already set the socket in the config.inc.php. I don't care if it works remotely i just need it to run locally for now. MySQL client connects just fine. I can do stuff from the command line so I know MySQL is configured and running. running typical LAMP stack CentOS 7 and mariadb. MySQL port is 3306
socket=/var/lib/MySQL/MySQL.sock (the stackoverflow web form keeps changing the case of MySQL so I am aware of the case sensitivity)
the main login page comes up fine but gives the 2003 error after typing in password. I know the correct password and I am typing it in correctly.
any help appreciated.

XAMPP Mysql 2002 error

So I have been trying to get XAMPP up and running for awhile now. I see there is plenty of documentation on this problem but most of them don't seem to be helping my situation so I would really appreciate someones help walking me through this.
Ok when I started apache wouldn't start but when I changed it so that it would be using port 85 that at least started. My next problem has been with MySql. It is currently running on port 3306 (I had something else that was using that port but I deleted it) when I click to start MySql it just says it is attempting to start but doesn't do anything. When I go to phpMyAdmin I get this error message
2002 - No connection could be made because the target machine actively refused it.
The server is not responding (or the local server's socket is not correctly configured).
Are there any procedures I can go though to get this thing up and running?!

Failed to connect to MySQL at 127.0.0.1 in MySQL Workbench. System error 61

I'm running into a little trouble with MySQL Workbench.
This is the situation, I'm developing a database to query it remotely from Android devices. This is the first time I use MySQL Workbench, so I've followed this tutorial:
http://net.tutsplus.com/tutorials/databases/visual-database-creation-with-mysql-workbench/
I have no problem creating the EER diagram and generating the SQL script. The problem comes when I try to connect to a MySQL server. I get this error:
"Failed to Connect to MySQL at 127.0.0.1:3306 with user root. Lost connection to MySQL server at 'reading initial communication packet', system error: 61"
http://img101.imageshack.us/i/capturadepantalla201104i.png/ (if the link stops working tell me)
I've also tried using the Local Socket/Pipe connection method with the MAMP Socket in '/Applications/MAMP/tmp/mysql/mysql.sock', but it gives the same error. And I've also tried using MAMP port 8889 but still nothing.
So anyone knows how to fix it? And another question, can I connect from my Android device to my laptop(where the database is placed) without using MAMP? MySQL needs MAMP to serve queries? And the last thing, am I going into the right way? Or should I do it other way?
Thanks for reading.
I had the same issue, but part of your question is what fixed it for me:
Set connection = Local Socket/Pipe
Set socket path = "/Applications/MAMP/tmp/mysql/mysql.sock" (for me - I got the path from my MySQL log upon initialisation)
Running: MBP, OSX 10.8.3 (Mountain Lion), MAMP Pro
Can't really fathom any further what your issue may be, but perhaps double check your DB is properly initialised. But, perhaps this helps someone else :)
I typed: sudo /usr/local/mysql/support-files/mysql.server start
into the terminal and it started the MySQL server successfully and I was able to connect to MYSQL workbench.
You need to sure that Mysql process is running in your system. not sure in MAC but in windows it'called mysqld.exe
well take a look
http://lists.mysql.com/mysql/124371
Most commonly happens when database/server is not running. You need to check your server, or restart it. You can do so if you have mysql workbench under server administration. Check your manual for restarting or starting the server.
On osx 10.6 using mamp pro I solved this by allowing network access in the MySQL tab from the home window. Hope it saves someone the pain too
When trying to use the MySQL Workbench and connect through an SSH tunnel, you will get this error when your SSH connection does not complete successfully (e.g. improper host, password, key file, etc)
A good way to trouble shoot this is to separately test the the ssh connection from the machine you are trying to connect from and establish that you can do so successfully.
Try closing MySQL and running it as the admin. This worked for me.
After making above improvement such as checking if mysql service is running or not, you just need to give a small password while creating connection, it is ' ' or 1 time press on space-bar in case of GUI or workbench.
After which you just need to validate your machine with server (validated HOST).
For that purpose click on 'New Server Instance' and it will configure server/HOST on your behalf itself.
I have done this successfully just a few couple of minutes ago. My workbench software is able to show all pre-installed databases etc now.
Thanks!!!
I solved it! On a mac just go to spotlight search on the top right of the screen and type Mysql. Turn it on.