This article will explain how to set up a connection from a Windows host OS using a PuTTY client to a remote MySQL server on Linux Ubuntu 18.04.
本文将介绍如何在Linux Ubuntu 18.04上建立从使用PuTTY客户端的Windows主机操作系统到远程MySQL服务器的连接。
Before we start, you must have already:
在我们开始之前,您必须已经:
- Installed Windows 10 OS on a local machine 在本地计算机上安装Windows 10 OS
- Installed Linux Ubuntu 18.04 on a remote machine 安装Linux Ubuntu 18.04
在Linux Ubuntu 18.4上安装MySQL (MySQL installation on Linux Ubuntu 18.4)
First, you must install MySQL on the remote Linux machine.
首先,必须在远程Linux机器上安装MySQL。
On Linux Ubuntu 18.4, open the Terminal, type the sudo apt-get update command and press the Enter key:
在Linux Ubuntu 18.4上,打开Terminal ,输入sudo apt-get update命令,然后按Enter键:

Next, in the Terminal, type the sudo apt-get install mysql-server command to start installing MySQL:
接下来,在终端中,键入sudo apt-get install mysql-server命令以开始安装MySQL:

Type Y to proceed with the installation.
键入Y继续安装。
To see which version is installed on the machine, type and run the mysql –version command:
要查看计算机上安装了哪个版本,请键入并运行mysql –version命令:
For detailed information on how to install and configure MySQL, please visit the How To Install MySQL on Ubuntu 18.04 page.
有关如何安装和配置MySQL的详细信息,请访问“ 如何在Ubuntu 18.04上安装MySQL”页面。
After setting up MySQL, make sure it is active and running. To see the status of MySQL, type and run the service mysql status command:
设置MySQL之后,请确保它是活动的并且正在运行。 要查看MySQL的状态,请键入并运行service mysql status命令:

If MySQL is not running (inactive),
如果MySQL未运行(无效),