Solved it! The thing was to connect to the correct server when creating the tunnel itself – should’ve seen that one coming.
ssh -f [email protected] -L 3307:mysql1.example.com:3306 -N
Then mysql -h 127.0.0.1 -P 3307
worked as intended. 🙂
More Related Contents:
- MySQL connection over SSH tunnel
- get first occurrence of last changed value of a column [closed]
- ROW_NUMBER() in MySQL
- MySQL Error #1071 – Specified key was too long; max key length is 767 bytes
- How can I temporarily disable a foreign key constraint in MySQL?
- Creating a “Numbers Table” in MySQL
- MYSQL Select MAX Date inside a join statement
- Choosing a stand-alone full-text search server: Sphinx or SOLR? [closed]
- Determine which MySQL configuration file is being used
- Rails, MySQL and Snow Leopard
- In SQL, how to select the top 2 rows for each group
- MySQL CONVERT_TZ()
- TRIGGERs that cause INSERTs to fail? Possible?
- Mysql query to dynamically convert rows to columns on the basis of two columns
- MySQL: #126 – Incorrect key file for table
- MYSQL Left Join COUNTS from multiple tables
- Error Code: 1290. The MySQL server is running with the –secure-file-priv option so it cannot execute this statement
- MySQL my.ini location
- Comma separated string of selected values in MySQL
- MySQL: ALTER IGNORE TABLE ADD UNIQUE, what will be truncated?
- Getting first day of the week in MySql using Week No
- error code 1292 incorrect date value mysql
- How to search for rows containing a substring?
- Import CSV to Update only one column in table
- MySQL : how to remove double or more spaces from a string?
- Error in MySQL library for Node.js
- Equivalent of MSSQL IDENTITY Column in MySQL
- Update multiple rows with multiple ‘where’ clauses for each individual row
- WHERE datetime older than some time (eg. 15 minutes)
- Is there a way to use ON DUPLICATE KEY to Update all that I wanted to insert?