You should create a ssh tunnel between the 2 serves. Then you can connect from the WP with only the mysql server ip.
ssh -f [email protected] -L 2000:personal-server.com:25 -N
The -f
tells ssh to go into the background just before it executes the command.
This is followed by the username and server you are logging into.
The -L 2000:personal-server.com:25
is in the form of -L local-port:host:remote-port
.
Finally the -N
instructs OpenSSH to not execute a command on the remote system.
via Revsys
Related Posts:
- Column count doesn’t match value count at row 1
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- MySQL string replace
- MySQL Error “Operand should contain 1 column”
- How to use MySQL DECIMAL?
- Access denied for user ‘root@localhost’ (using password:NO)
- Which MySQL data type to use for storing boolean values
- ERROR 2003 (HY000): Can’t connect to MySQL server on localhost (10061)
- Cannot delete or update a parent row: a foreign key constraint fails
- MySQL server startup error ‘The server quit without updating PID file’
- PHP Connection failed: SQLSTATE[HY000] [2002] Connection refused
- Your password does not satisfy the current policy requirements
- MySQL: Access denied for user ‘test’@’localhost’ (using password: YES) except root user
- What is the definition of cardinality in SQL
- How to restart remote MySQL server running on Ubuntu linux?
- Host ‘xxx.xx.xxx.xxx’ is not allowed to connect to this MySQL server
- PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
- Duplicating a MySQL table, indices, and data
- Selecting data from two different tables without using joins
- Difference between VARCHAR and TEXT in MySQL
- MySQL: Invalid use of group function
- SELECT * FROM multiple tables. MySQL
- How can I loop through all rows of a table? (MySQL)
- Simple Random Samples from a Sql database
- What does SQL clause “GROUP BY 1” mean?
- LAST_INSERT_ID() MySQL
- SQL select only rows with max value on a column
- Trying to perform MINUS operation in MySQL
- How do I find which transaction is causing a “Waiting for table metadata lock” state?
- mysql count duplicates
- phpmyadmin #1045 Cannot log in to the MySQL server. after installing mysql command line client
- MySQL config file location – redhat linux server
- How to change collation of database, table, column?
- Create boolean column in MySQL with false as default value?
- Is there a naming convention for MySQL?
- Error Code 1292 – Truncated incorrect DOUBLE value – Mysql
- MySql – HAVING vs WHERE
- How to stop mysqld
- Is merge statement available in MySQL
- GROUP_CONCAT comma separator – MySQL
- Set page template for all pages?
- How to log mysql errors from wordpress core?
- Optimize Multiple Taxonomy Term MySQL Query?
- WordPress MySQL & PHP Performance
- What specific database privileges does WordPress need?
- Using source control with WordPress
- My WordPress site always displays a cached version of its homepage
- wpdb Custom Meta Data with 2 conditions
- Updating User Meta with SQL Query
- wpdb prepare syntax
- How to run this SQL query of wp_terms database
- How to bulk delete all WordPress subscribers?
- How to Create a Admin User for A WordPress Site via MySQL (PHPMyAdmin)?
- Rewrite database urls
- SQL error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’ [closed]
- Changing Table Prefix for an Existing WordPresss Site
- Set meta_key and meta_value for all registered user in wordpress using sql query [closed]
- Migrating from Existing MySQL Setup to WordPress
- Connect another DB and fetch records from some tables
- How to split the a table in database?
- How do I join a $wpdb query with user meta using default value if not exist?
- mySQL statment count of post in each category and sub category
- Paypal Post IPN handeling nightmare
- Is there a page length limit?
- WordPress tables and aliases?
- What’s the sql for this condition?
- Create a form with custom autocomplete address field and CSV import values
- WordPress insert query is not working : Showing no Error
- How to set MYSQLI_OPT_INT_AND_FLOAT_NATIVE option
- Copy usermeta value where ID matches in the same table
- Some Post Content Does Not Show Up In DB Search
- How can I write a formal sql query to get data from a custom table
- How to insert dash (-) into database using wpdb and new_to_publish hook?
- MySQL: How to change url in posts from xxx.com to yyy.org?
- WordPress & MySQL , problem with use many array in meta_query
- How can I view my site directly from WordPress dashboard?
- (WP List Table) How to sort by SKU and Custom Fields?
- Word Press and database from another server sync
- User set date and time from frontend doesn’t get stored into database
- get posts whether meta_key exists or not
- How to run SQL query from WordPress ‘WP Crontrol’ plugin
- How to bulk delete a certain part of all wordpress posts
- When I add metadata, metavalue length is added in to the value in some cases
- Changes not being reflected on new server
- WordPress Dutch characters encoding problem
- update_option returns false in AJAX, how to debug?
- WordPress database error Duplicate entry for key ‘slug’
- Select latest 2 articles, but only from given category
- MySQL – How to combine data from two tables into one?
- Stop my loop to register data twice
- `#1215 – Cannot add foreign key constraint
- How to restore: Database intact but folders deleted
- XML RPC post produces immediate revision with odd post_date_gmt
- Woocommerce: Grab total revenue of a product over all orders
- SQL command to export post_content from wp_posts using phpMyAdmin
- SQL Database Lost
- Why does the MySQL command line tool ignore the –port parameter?
- Postgres equivalent to MySQL’s \G?
- How to find source of these strange SQL queries?
- How to reduce uncached page generation time?