![]() If you are running MySQL on some custom port then you have to mention the port number as well, for example mysql -u root -p -h 172.168.1. You can also use the client to connect some database running on any other server using IP-address mysql -u root -p -h 172.168.1.152 Unlink older mysql version brew unlink mysql56 Check current mysql version ls /usr/local. And to switch back to the current version. Mysql -u database_user -p -h host_name or Ip-address Unlink current mysql version brew unlink mysql Check older mysql version ls /usr/local/Cellar/mysql56 > 5.6.27 Link the older version brew switch mysql5.6 5.6.27. Connect to AWS RDS, Lightsail database service, or any other database using MySQL-client.Check installed MySQL/MariaDB version– mysql -version.Now, install MySQL client on Amazon Linux 2 using this syntax- yum install mysql.On AMI command line, first-run system update: yum apt update. ![]() ![]() If you are using Amazon Linux 2 (AMI) based on RedHat and want to connect remote database using mysql-client on it, then here is the way to not install the client but also how to use AMI CLI to manage cloud databases services of Amazon such as RDS and Lightsail database service.
0 Comments
Leave a Reply. |