Rechercher dans le manuel MySQL
6.3.4 Connecting to MySQL Remotely from Windows with SSH
This section describes how to get an encrypted connection to a
remote MySQL server with SSH. The information was provided by
David Carlson <dcarlson@mplcomm.com>
.
Install an SSH client on your Windows machine. For a comparison of SSH clients, see http://en.wikipedia.org/wiki/Comparison_of_SSH_clients.
Start your Windows SSH client. Set
Host_Name =
. Setyourmysqlserver_URL_or_IP
userid=
to log in to your server. Thisyour_userid
userid
value might not be the same as the user name of your MySQL account.Set up port forwarding. Either do a remote forward (Set
local_port: 3306
,remote_host:
,yourmysqlservername_or_ip
remote_port: 3306
) or a local forward (Setport: 3306
,host: localhost
,remote port: 3306
).Save everything, otherwise you will have to redo it the next time.
Log in to your server with the SSH session you just created.
On your Windows machine, start some ODBC application (such as Access).
Create a new file in Windows and link to MySQL using the ODBC driver the same way you normally do, except type in
localhost
for the MySQL host server, notyourmysqlservername
.
At this point, you should have an ODBC connection to MySQL, encrypted using SSH.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-windows-and-ssh.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.