mysql over SSH tunnel - mysql

I'm having an issue on both a win7 development machine, and on a windows 2008 production server with connecting to a remote Suse Linux server to mysql over SSH. I've followed the very simple instructions here.
http://realprogrammers.com/how_to/set_up_an_ssh_tunnel_with_putty.html
only on the last step, i'm trying to use the odbc connector that I downloaded from here.
http://dev.mysql.com/downloads/connector/odbc/
trying both localhost:3306 and 127.0.0.1:3306 doesn't seem to make a difference. I CAN log into the linux server in putty over ssh, and use the command line from the terminal to connect to mysql. My issue is that I need the windows server to be able to connect and query data from the mysql instance on the linux server. When I attempt to connect from the odbc connector it immediately pops up an error that root#localhost is denied with password=YES. I've checked my user table in mysql and root is set to allow login from any host, including localhost. Anyone have any other suggestions for getting this to work? It's quite urgent as we need to plan for a data synchronization of several gigs by this Saturday. Thanks in advance for any help.

Okay, I figured this out... You have to run putty.exe as an administrator. Once I did that the connection worked just fine. Hopefully this saves someone a few hours of work down the road. Thanks to bfavaretto for his help.

Related

Can't connect to mySQL with Navicat

Please, I just migrated from Windows to Mac recently. I installed XAMPP on my mac and also installed PHP and MySQL using Homebrew on my mac. I can easily connect to the MySQL from homebrew using the Navicat if I start it using the command brew services start mysql
But, the problem is if I stop the brew service and start my XAMPP, I can't connect to MySQL. I can easily connect with phpMyAdmin web, but with Navicat, it keeps throwing error that it can't connect to the localhost.
I tried looking up the port the MySQL is running and it is 3306. But using host=localhost, username=root, password=<empty>, port=3306 but I still get the error.
Any help is appreciated.
I know the post is old, but I still think it's useful to come up with solutions anyway. I'm using MAMP and I just had a configuration problem, to allow access to MySQL.
When I checked "Allow network access to MySQL", it was OK for me.
Hope it helps someone.

Open edX full stack version mysql configuration

I am wondering if there is anyone try to use mysql workbench to connect to openedx fullstack version. I have a devstack version which is running on my local machine and doesn't have any issues. Also, I am able to connect to mysql database by using SSH on mysql workbench(devstack).
Please see the official document here: https://github.com/edx/edx-platform/wiki/Developing-on-the-edX-Developer-Stack#the-edx-platform-database-that-devstack-uses
But I am not able to find any document regrading the process of fullstack mysql connection configuration.
Any ideas or suggestions? Appreciate your help!

MySql workbench not responding w local server

I have been using MySql Workbench to connect to a local MySql server and to remote MySql Servers. The last couple of days the Workbench freezes when I connect to the local version. It still works for the remote servers.
I am using workbench 6.3.4 and then tried 6.2.5 just to see if it is a version issue.
I also can access the local MySql instance using HeidiSQL.
Any recommendations on what to look for?
Update
The advice to recreate the connection solved the issue. I just created a new one and it works fine.
A couple of things you can try:
Try restarting the sql server (remember, workbench is just a utility for accessing a db, it does not host the database for you)
See if you can access mysql on the command prompt / terminal, the command for mac & windows
(once you navigate to the mysql folder, try the command:)
mysql -u root
(if you have a password-protected account, the command will be
mysql -u someuser -p
If the above doesn't work, mysql is either offline or denying you access (depending on response), and you'll need to setup the server / assign privileges.
If all else fails, it may help to try another version of SQL / Workbench (for a easy-to-use sql sever setup, I'd recommend WAMP or MAMP, assuming you want a HTTP server bundled with it)
Additionally, it may help to recreate the local connection in workbench (of if your getting regular crashes, reinstall & update workbench). Good luck with it.

connect to mysql with wavemaker

I have recently downloaded Wavemaker because I feel it best suites my needs, however when I try and connect to my database on a mysql server hosted with godaddy, I keep getting access denied. However I can connect using exactly the same loggin info for sql workbench and razorsql just to see if I had my credentials correct and I have no problem connecting using those other two tools, is it me or is wavemaker being a pain?
Did you remember to install the MySQL JDBC DRIVER?
If not you can get it from the MySQL site, or install it on your Linux machine using the appropriate install commands. I had the same problem and after installing the driver everything worked great.
I'm posting my WaveMaker MySQL connection info (the database properties file) in hopes it might help:
mafiamgr_warmturkeyDB.connectionUrl=jdbc\:mysql\://localhost\:3306/mafiamgr_warmturkey?useUnicode\=yes&characterEncoding\=UTF-8&zeroDateTimeBehavior\=convertToNull
mafiamgr_warmturkeyDB.tableFilter=.*
mafiamgr_warmturkeyDB.driverClassName=com.mysql.jdbc.Driver
mafiamgr_warmturkeyDB.username=topsecret_xref
mafiamgr_warmturkeyDB.password=568626f144a0c56862568626f14047568626f1412a43
mafiamgr_warmturkeyDB.reverseNamingStrategy=com.wavemaker.tools.data.reveng.DefaultRevengNamingStrategy
mafiamgr_warmturkeyDB.schemaFilter=.*
mafiamgr_warmturkeyDB.dialect=com.wavemaker.runtime.data.dialect.MySQLDialect

vb.net program cannot connect to wampserver

I have a vb.net program that uses mysql as its database. And it works when the computer has wampservr installed. But the program gets an unhandled exception error when the computer where its running does not have a wampserver. The only thing that is installed in it is the mysql connector net. How do I make it work. I just want the two programs to access the same mysql database.
I already opened port 20 by configuring firewall. Both in TCP and UDP. What do I do? Do I have to tweak the codes?
on the machine that you dont have wampserver installed, do you have MySql installed by itself?
If I understand your question correctly, sounds like its having trouble connecting to the database because its not there.