Run the mysql_secure_installation script to address several security concerns in a default MySQL installation: sudo mysql_secure_installation If you decide to bind MySQL to your public IP, you should implement firewall rules that only allow connections from specific IP addresses. Please reference our MySQL remote access guide for information on connecting to your databases using SSH.Īllowing unrestricted access to MySQL on a public IP is not advised, but you may change the address it listens on by modifying the bind-address parameter in /etc/my.cnf. MySQL will bind to localhost (127.0.0.1) by default. Choose a strong password and keep it in a safe place for future reference. Install MySQL sudo apt-get install mysql-serverĭuring the installation process, you will be prompted to set a password for the MySQL root user as shown below. The first command should show your short hostname, and the second should show your fully qualified domain name (FQDN) if you have one assigned. You may also wish to set the timezone, create a limited user account, and harden SSH access. See our Getting Started with Linode and Creating a Compute Instance guides.įollow our Setting Up and Securing a Compute Instance guide to update your system and configure your hostname. If you have not already done so, create a Linode account and Compute Instance. If you’re not familiar with the sudo command, you can check our Users and Groups guide. Commands that require elevated privileges are prefixed with sudo. This guide is written for a non-root user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |