
{"id":5067,"date":"2021-09-21T08:32:05","date_gmt":"2021-09-21T07:32:05","guid":{"rendered":"http:\/\/dasini.net\/blog\/?p=5067"},"modified":"2024-12-10T15:51:53","modified_gmt":"2024-12-10T14:51:53","slug":"discovering-mysql-database-service-episode-8-connect-to-mysql-database-service-using-mysql-shell","status":"publish","type":"post","link":"https:\/\/dasini.net\/blog\/2021\/09\/21\/discovering-mysql-database-service-episode-8-connect-to-mysql-database-service-using-mysql-shell\/","title":{"rendered":"Discovering MySQL Database Service \u2013 Episode 8 \u2013 Connect to MySQL Database Service Using MySQL Shell"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.mysql.com\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"www.mysql.com\">MySQL<\/a>, the <strong>world&rsquo;s most popular open source database<\/strong>, is available as a <strong>managed cloud service<\/strong> in <strong><a href=\"https:\/\/www.oracle.com\/cloud\/\" target=\"_blank\" rel=\"noreferrer noopener\">Oracle Cloud Infrastructure<\/a><\/strong> (<strong><a href=\"https:\/\/www.oracle.com\/cloud\/\" target=\"_blank\" rel=\"noreferrer noopener\">OCI<\/a><\/strong>) under the name of <strong><a href=\"https:\/\/www.oracle.com\/mysql\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"MDS\">MySQL Database Service<\/a><\/strong> (<strong><a href=\"https:\/\/www.oracle.com\/mysql\/\" target=\"_blank\" rel=\"noreferrer noopener\">MDS<\/a><\/strong>).<\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p><strong>MySQL Database Service is a fully managed cloud service, 100% Developed, Managed and Supported by the MySQL Team.<\/strong><\/p><\/blockquote><\/figure>\n\n\n\n<p>This is the <span style=\"text-decoration: underline;\">eight<\/span> episode of \u00ab\u00a0<strong><em><meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\"><strong><em><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/03\/discovering-mysql-database-service-episode-1-introduction\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service\">Discovering MySQL Database Service<\/a><\/em><\/strong><\/em><\/strong>\u00ab\u00a0, a series of tutorials where I will show you, step by step, how to use MySQL Database Service and some other Oracle Cloud Infrastructure services. <\/p>\n\n\n\n<p>Please also note that you can <strong>run this tutorial and thus try MySQL Database Service &amp; the other Oracle Cloud Infrastructure services <span style=\"text-decoration: underline;\">for free<\/span><\/strong>  by <a href=\"https:\/\/www.oracle.com\/cloud\/free\/\" target=\"_blank\" rel=\"noreferrer noopener\">starting your 30-day trial<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"600\" src=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=801%2C600\" alt=\"MySQL Database Service\" class=\"wp-image-4715\" style=\"width:376px;height:282px\" srcset=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?w=801&amp;ssl=1 801w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=768%2C575&amp;ssl=1 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/figure><\/div>\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\">Planning episodes<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/03\/discovering-mysql-database-service-episode-1-introduction\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 1 \u2013 Introduction\">Introduction to the series <strong><em>Discovering MySQL Database Service<\/em><\/strong><\/a> <\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/10\/discovering-mysql-database-service-episode-2-create-a-compartment\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 2 \u2013 Create a compartment\">Create a compartment<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/17\/discovering-mysql-database-service-episode-3-create-a-virtual-cloud-network\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 3 \u2013 Create a Virtual Cloud Network\">Create a Virtual Cloud Network<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/24\/discovering-mysql-database-service-episode-4-dump-your-mysql-data-into-an-object-storage-bucket\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 4 \u2013 Dump your MySQL data into an Object Storage bucket\">Dump your MySQL data into an Object Storage bucket<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/31\/discovering-mysql-database-service-episode-5-create-a-mysql-db-system-from-a-mysql-shell-dump\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 5 \u2013 Create a MySQL DB system from a MySQL Shell dump\">Create a MySQL DB system from a MySQL Shell dump<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/09\/07\/discovering-mysql-database-service-episode-6-update-the-private-subnet-security-list\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 6 \u2013 Update the Private Subnet Security List\">Update the Private Subnet Security List<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/09\/14\/discovering-mysql-database-service-episode-7-use-a-bastion-ssh-port-forwarding-session\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session\">Use a Bastion SSH port forwarding session<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/09\/21\/discovering-mysql-database-service-episode-8-connect-to-mysql-database-service-using-mysql-shell\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 8 \u2013 Connect to MySQL Database Service Using MySQL Shell\">Connect to MySQL Database Service Using MySQL Shell<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/09\/28\/discovering-mysql-database-service-episode-9-connect-to-mysql-database-service-using-mysql-workbench\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 9 \u2013 Connect to MySQL Database Service Using MySQL Workbench\">Connect to MySQL Database Service Using MySQL Workbench<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/10\/05\/discovering-mysql-database-service-episode-10-connect-to-mysql-database-service-using-oci-cloud-shell\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 10 \u2013 Connect to MySQL Database Service Using OCI Cloud Shell\">Connect to MySQL Database Service Using OCI Cloud Shell<\/a><\/li><li>MySQL Database Service Features Overview<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">Episode 8 &#8211; Connect to MySQL Database Service Using MySQL Shell<\/h1>\n\n\n\n<p>In the <a href=\"http:\/\/dasini.net\/blog\/2021\/09\/14\/discovering-mysql-database-service-episode-7-use-a-bastion-ssh-port-forwarding-session\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session\">previous episode<\/a> <meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">we&rsquo;ve seen how to use an OCI Bastion session in order to provide a restricted and time-limited access to administer our MySQL instance. <br>One more step to our <strong><em>Discovering MySQL Database Service<\/em><\/strong> journey. <\/p>\n\n\n\n<p>In this episode, we&rsquo;ll learn how to connect to our MySQL Database Service instance using the fantastic <strong>MySQL Shell<\/strong> &#8211; an interactive Javascript, Python, or SQL interface supporting development and administration for the MySQL Server.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">MySQL Shell<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/insidemysql.com\/wp-content\/uploads\/2018\/05\/shell_prompt_theme_normal.png?ssl=1\" alt=\"\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/dev.mysql.com\/doc\/mysql-shell\/8.0\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"MySQL Shell\">MySQL Shell<\/a> is an advanced client &amp; code editor for MySQL. In addition to the provided SQL functionality, it provides scripting capabilities for JavaScript and Python.<\/p>\n\n\n\n<p>MySQL Shell includes <a href=\"https:\/\/dev.mysql.com\/doc\/mysql-shell\/8.0\/en\/mysql-shell-utilities.html\" target=\"_blank\" rel=\"noreferrer noopener\">utilities<\/a> for working with MySQL, among others:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/dev.mysql.com\/doc\/mysql-shell\/8.0\/en\/mysql-shell-utilities-dump-instance-schema.html\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Instance Dump Utility, Schema Dump Utility, and Table Dump Utility\">Instance &amp; schema dump utilities<\/a> support the export of all schemas or a selected schema from an on-premise MySQL instance into an OCI Object Storage bucket or a set of local files<\/li>\n\n\n\n<li><a href=\"https:\/\/dev.mysql.com\/doc\/mysql-shell\/8.0\/en\/mysql-shell-utilities-load-dump.html\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Dump Loading Utility\">Dump loading utility<\/a> supports the import into a MySQL DB System or a MySQL Server instance of schemas or tables dumped using MySQL Shell&rsquo;s Dump Utility<\/li>\n<\/ul>\n\n\n\n<p>The complete list is available in the documentation: <a href=\"https:\/\/dev.mysql.com\/doc\/mysql-shell\/8.0\/en\/mysql-shell-utilities.html\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"MySQL Shell utilities\">MySQL Shell utilities<\/a>.<\/p>\n\n\n\n<p>You&rsquo;ll also find <a href=\"http:\/\/dasini.net\/blog\/?s=mysql+shell\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"MySQL Shell on dasini.net\">practical resources on my blog<\/a>.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Create a SSH port forwarding session<\/h2>\n\n\n\n<p>In the previous episode &#8211; <a href=\"http:\/\/dasini.net\/blog\/2021\/09\/14\/discovering-mysql-database-service-episode-7-use-a-bastion-ssh-port-forwarding-session\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session\">Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session<\/a> &#8211; we created a Bastion, a SSH port forwarding (SSH tunneling) session and generated SSH key pair.<\/p>\n\n\n\n<p><br>We are now going to use these in order to connect to MDS with MySQL Shell.<\/p>\n\n\n\n<p>If your session is not valid anymore, you must create a new one (see Create a session paragraph from  <a href=\"http:\/\/dasini.net\/blog\/2021\/09\/14\/discovering-mysql-database-service-episode-7-use-a-bastion-ssh-port-forwarding-session\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session\">Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session<\/a>).<\/p>\n\n\n\n<p>Please note that you need a SSH client on your computer. If you are using a GNU Linux, MacOS, Windows 10 system  you are good to go. <\/p>\n\n\n\n<p>If not&#8230; all is not lost \ud83d\ude42<br>Please read episode 10 : <a href=\"#\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Episode 10 \u2013 Connect to MySQL Database Service Using OCI Cloud Shell\">Connect to MySQL Database Service Using OCI Cloud Shell<\/a>.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>In the console menu, go to <em>Identity &amp; Security<\/em> \/ <em>Bastion<\/em>, check that you are in the right compartment then click on the Bastion we previously created (<em>BastionMDS<\/em> in this example).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"663\" height=\"234\" src=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_01.png?resize=663%2C234\" alt=\"\" class=\"wp-image-5075\" srcset=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_01.png?w=663&amp;ssl=1 663w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_01.png?resize=300%2C106&amp;ssl=1 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>You are now seeing the session we already created (if not create a new one). <\/p>\n\n\n\n<p>We now must get the SSH port forwarding command generated by OCI.<\/p>\n\n\n\n<p>To do so, go to the right and click on the action menu (3 vertical dots on the right). A contextual menu is showing up then click on copy SSH command.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"213\" height=\"265\" src=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_02.png?resize=213%2C265\" alt=\"\" class=\"wp-image-5077\"\/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Paste this command in your shell prompt.<\/p>\n\n\n\n<p>The SSH command looks like :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"SQL\" class=\"language-SQL\">ssh -i &lt;privateKey&gt; -N -L &lt;localPort&gt;:10.0.1.231:3306 -p 22 ocid1.bastionsession.oc1.eu-frankfurt-1.amaaaaaacicuulyams3rrxazerty1uiopqsd2fghjklm3wxcvbr4m7wpu52a@host.bastion.eu-frankfurt-1.oci.oraclecloud.com<\/code><\/pre>\n\n\n\n<p>Replace <em>&lt;privateKey&gt;<\/em> with the path to the private key we downloaded in the previous episode &#8211; <a href=\"http:\/\/dasini.net\/blog\/2021\/09\/14\/discovering-mysql-database-service-episode-7-use-a-bastion-ssh-port-forwarding-session\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session\">Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session<\/a>  <\/p>\n\n\n\n<p>Replace <em>&lt;localPort&gt;<\/em> with a free port on the local machine from which you want to connect to the bastion (ie your computer\/laptop).<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"SQL\" class=\"language-SQL\">ssh -i .\/ssh-key-discovering_MDS.key -N -L 3333:10.0.1.231:3306 -p 22 ocid1.bastionsession.oc1.eu-frankfurt-1.amaaaaaacicuulyams3rrxazerty1uiopqsd2fghjklm3wxcvbr4m7wpu52a@host.bastion.eu-frankfurt-1.oci.oraclecloud.com<\/code><\/pre>\n\n\n\n<p>Then run the command&#8230;<\/p>\n\n\n\n<p>If you hit the following error: <strong>WARNING: UNPROTECTED PRIVATE KEY FILE!<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"145\" src=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_03-800x145.png?resize=800%2C145\" alt=\"\" class=\"wp-image-5085\" srcset=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_03.png?resize=800%2C145&amp;ssl=1 800w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_03.png?resize=300%2C54&amp;ssl=1 300w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_03.png?resize=768%2C139&amp;ssl=1 768w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_03.png?w=869&amp;ssl=1 869w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Don&rsquo;t worry \ud83d\ude42<br>Like stated in the error message, the private key must be protected. A chmod 600 (or equivalent, it depends on your OS) will fix that issue.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"SQL\" class=\"language-SQL\">$ chmod 600 ssh-key-discovering_MDS.key<\/code><\/pre>\n\n\n\n<p> Then run the command again:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"SQL\" class=\"language-SQL\">ssh -i .\/ssh-key-discovering_MDS.key -N -L 3333:10.0.1.231:3306 -p 22 ocid1.bastionsession.oc1.eu-frankfurt-1.amaaaaaacicuulyams3rrxazerty1uiopqsd2fghjklm3wxcvbr4m7wpu52a@host.bastion.eu-frankfurt-1.oci.oraclecloud.com\n<\/code><\/pre>\n\n\n\n<p>No error anymore and no prompt.<br>But <strong>do not<\/strong> close the window because it will close the SSH tunnel (thus you will need to run the command again).<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Alternatively, you can add an ampersand (<strong>&amp;<\/strong>) at the end of the command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"SQL\" class=\"language-SQL\">ssh -i .\/ssh-key-discovering_MDS.key -N -L 3333:10.0.1.231:3306 -p 22 ocid1.bastionsession.oc1.eu-frankfurt-1.amaaaaaacicuulyams3rrxazerty1uiopqsd2fghjklm3wxcvbr4m7wpu52a@host.bastion.eu-frankfurt-1.oci.oraclecloud.com  &amp; <\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Connect to MDS using MySQL Shell<\/h2>\n\n\n\n<p>Now it is the time to connect to our MySQL instance through the SSH tunnel using MySQL Shell.<\/p>\n\n\n\n<p>The information needed are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MySQL client is here MySQL Shell : <strong>mysqlsh<\/strong><\/li>\n\n\n\n<li>MySQL Database Service user you&rsquo;ve created : <strong>admin<\/strong><\/li>\n\n\n\n<li>IP to connect to MDS (through the SSH tunnel) : <strong>localhost<\/strong><\/li>\n\n\n\n<li>Port to connect to MDS (through the SSH tunnel) : <strong>3333<\/strong><\/li>\n\n\n\n<li>Your MDS password<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"SQL\" class=\"language-SQL\">$ mysqlsh admin@localhost:3333<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"324\" src=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_04-800x324.png?resize=800%2C324\" alt=\"\" class=\"wp-image-5094\" srcset=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_04.png?resize=800%2C324&amp;ssl=1 800w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_04.png?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_04.png?resize=768%2C311&amp;ssl=1 768w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_04.png?w=934&amp;ssl=1 934w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>We are now connected to our MySQL Database Service instance \\o\/<br>The server version is here <strong>8.0.26-cloud MySQL Enterprise<\/strong> <\/p>\n\n\n\n<p>By default, MySQL Shell is in JavaScript mode. We can easily switch to SQL mode with the command <strong>\\sql<\/strong>. And run any valid SQL command<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"674\" height=\"551\" src=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_05.png?resize=674%2C551\" alt=\"\" class=\"wp-image-5096\" srcset=\"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_05.png?w=674&amp;ssl=1 674w, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/08\/OCI_MDS_connection_mysqlsh_05.png?resize=300%2C245&amp;ssl=1 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/figure>\n\n\n\n<p>Another way to do that would be to initiate the connection in SQL mode instead of JS by providing the <strong>&#8211; &#8211; sql<\/strong> option when calling <em><strong>mysqlsh<\/strong><\/em>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"SQL\" class=\"language-SQL\">$ mysqlsh admin@localhost:3333 --sql\n...\nMySQL  localhost:3333 ssl  SQL &gt; SHOW SCHEMAS;\n+--------------------+\n| Database           |\n+--------------------+\n| information_schema |\n| mysql              |\n| performance_schema |\n| sakila             |\n| sys                |\n+--------------------+\n5 rows in set (0.0138 sec)\n\nMySQL  localhost:3333 ssl  SQL &gt; SHOW TABLES IN sakila;\n+----------------------------+\n| Tables_in_sakila           |\n+----------------------------+\n| actor                      |\n| actor_info                 |\n...<\/code><\/pre>\n\n\n\n<p>And as expected we can see and query the data we download during <a href=\"http:\/\/dasini.net\/blog\/2021\/08\/31\/discovering-mysql-database-service-episode-5-create-a-mysql-db-system-from-a-mysql-shell-dump\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 5 \u2013 Create a MySQL DB system from a MySQL Shell dump\">Discovering MySQL Database Service \u2013 Episode 5 \u2013 Create a MySQL DB system from a MySQL Shell dump<\/a>.  <\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Well, that&rsquo;s all for today!<br>In this episode, we have seen how to securely connect to a MySQL Database Service instance using MySQL Shell through a SSH tunnel (port forwarding session) using the OCI Bastion service.<\/p>\n\n\n\n<p>Next episode is:<\/p>\n\n\n\n<p class=\"has-text-align-center has-luminous-vivid-orange-color has-black-background-color has-text-color has-background\"><strong><strong><a href=\"http:\/\/dasini.net\/blog\/2021\/09\/28\/discovering-mysql-database-service-episode-9-connect-to-mysql-database-service-using-mysql-workbench\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 9 \u2013 Connect to MySQL Database Service Using MySQL Workbench\">Connect to MySQL Database Service Using MySQL Workbench<\/a><\/strong><\/strong><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Resources<\/h2>\n\n\n\n<ul class=\"wp-block-list has-luminous-vivid-orange-color has-text-color\">\n<li><a href=\"https:\/\/www.oracle.com\/mysql\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"MySQL Database Service (MDS)\">MySQL Database Service (MDS)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/mysql-database\/index.html\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Documentation of MySQL Database Service \">Documentation of MySQL Database Service <\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.oracle.com\/cloud\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Oracle Cloud Infrastructure (OCI)\">Oracle Cloud Infrastructure (OCI)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/libraries\/glossary\/glossary-intro.htm\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Oracle Cloud Infrastructure Glossary\">Oracle Cloud Infrastructure Glossary<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.oracle.com\/cloud\/free\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Oracle Cloud Free Tier\">Oracle Cloud Free Tier<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/Bastion\/home.htm\" target=\"_blank\" rel=\"noreferrer noopener\">Bastion<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/dev.mysql.com\/doc\/mysql-shell\/8.0\/en\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"MySQL Shell 8.0 ?\">MySQL Shell <\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/dev.mysql.com\/doc\/mysql-shell\/8.0\/en\/mysql-shell-utilities.html\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"MySQL Shell Utilities\">MySQL Shell Utilities<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mysql.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">MySQL &#8212; The world&rsquo;s most popular open source database<\/a><\/li>\n<\/ul>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\">Planning episodes<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/03\/discovering-mysql-database-service-episode-1-introduction\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 1 \u2013 Introduction\">Introduction to the series <strong><em>Discovering MySQL Database Service<\/em><\/strong><\/a> <\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/10\/discovering-mysql-database-service-episode-2-create-a-compartment\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 2 \u2013 Create a compartment\">Create a compartment<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/17\/discovering-mysql-database-service-episode-3-create-a-virtual-cloud-network\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 3 \u2013 Create a Virtual Cloud Network\">Create a Virtual Cloud Network<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/24\/discovering-mysql-database-service-episode-4-dump-your-mysql-data-into-an-object-storage-bucket\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 4 \u2013 Dump your MySQL data into an Object Storage bucket\">Dump your MySQL data into an Object Storage bucket<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/08\/31\/discovering-mysql-database-service-episode-5-create-a-mysql-db-system-from-a-mysql-shell-dump\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 5 \u2013 Create a MySQL DB system from a MySQL Shell dump\">Create a MySQL DB system from a MySQL Shell dump<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/09\/07\/discovering-mysql-database-service-episode-6-update-the-private-subnet-security-list\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 6 \u2013 Update the Private Subnet Security List\">Update the Private Subnet Security List<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/09\/14\/discovering-mysql-database-service-episode-7-use-a-bastion-ssh-port-forwarding-session\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session\">Use a Bastion SSH port forwarding session<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/09\/21\/discovering-mysql-database-service-episode-8-connect-to-mysql-database-service-using-mysql-shell\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 8 \u2013 Connect to MySQL Database Service Using MySQL Shell\">Connect to MySQL Database Service Using MySQL Shell<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/09\/28\/discovering-mysql-database-service-episode-9-connect-to-mysql-database-service-using-mysql-workbench\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 9 \u2013 Connect to MySQL Database Service Using MySQL Workbench\">Connect to MySQL Database Service Using MySQL Workbench<\/a><\/li><li><a href=\"http:\/\/dasini.net\/blog\/2021\/10\/05\/discovering-mysql-database-service-episode-10-connect-to-mysql-database-service-using-oci-cloud-shell\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Discovering MySQL Database Service \u2013 Episode 10 \u2013 Connect to MySQL Database Service Using OCI Cloud Shell\">Connect to MySQL Database Service Using OCI Cloud Shell<\/a><\/li><li>MySQL Database Service Features Overview<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><a href=\"https:\/\/www.linkedin.com\/groups\/12524512\/\" target=\"_blank\" rel=\"noopener\" title=\"Olivier DASINI on Linkedin\">Follow me on Linkedin<\/a><\/p>\n\n\n\n<p>Watch my videos on my <a href=\"https:\/\/www.youtube.com\/channel\/UC12TulyJsJZHoCmby3Nm3WQ\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Olivier's MySQL Channel\">YouTube channel<\/a> and <a href=\"https:\/\/www.youtube.com\/channel\/UC12TulyJsJZHoCmby3Nm3WQ\/?sub_confirmation=1\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Subscribe\">subscribe<\/a>.<\/p>\n\n\n\n<p>My <a href=\"https:\/\/www.slideshare.net\/freshdaz\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Olivier DASINI on Slideshare\">Slideshare account<\/a>.<\/p>\n\n\n\n<p>My <a href=\"https:\/\/speakerdeck.com\/freshdaz\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Olivier DASINI on Speaker Deck\">Speaker Deck account<\/a>.<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\"><strong>Thanks for using HeatWave &amp; MySQL!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous episode we&rsquo;ve seen how to use an OCI Bastion session in order to provide a restricted and time-limited access to administer our MySQL instance.<br \/>\nOne more step to our Discovering MySQL Database Service journey.<\/p>\n<p>In this episode, we&rsquo;ll learn how to connect to our MySQL Database Service instance using the fantastic MySQL Shell &#8211; an interactive Javascript, Python, or SQL interface supporting development and administration for the MySQL Server.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[1713,1716,1719,203,339],"tags":[306,1722,1725],"class_list":["post-5067","post","type-post","status-publish","format-standard","hentry","category-cloud-en","category-howto-en","category-mds-en","category-mysql-en","category-tuto-en","tag-cloud","tag-mds-en","tag-oci-en"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9LfWW-1jJ","jetpack-related-posts":[{"id":5139,"url":"https:\/\/dasini.net\/blog\/2021\/10\/05\/discovering-mysql-database-service-episode-10-connect-to-mysql-database-service-using-oci-cloud-shell\/","url_meta":{"origin":5067,"position":0},"title":"Discovering MySQL Database Service \u2013 Episode 10 \u2013 Connect to MySQL Database Service Using OCI Cloud Shell","author":"Olivier DASINI","date":"5 octobre 2021","format":false,"excerpt":"MySQL, the world\u2019s most popular open source database, is available as a managed cloud service in Oracle Cloud Infrastructure (OCI) under the name of MySQL Database Service (MDS). This is the tenth episode of \u201cDiscovering MySQL Database Service\u201c, a series of tutorials where I will show you, step by step,\u2026","rel":"","context":"Dans &quot;Cloud&quot;","block_context":{"text":"Cloud","link":"https:\/\/dasini.net\/blog\/category\/cloud\/"},"img":{"alt_text":"MySQL Database Service","src":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":5105,"url":"https:\/\/dasini.net\/blog\/2021\/09\/28\/discovering-mysql-database-service-episode-9-connect-to-mysql-database-service-using-mysql-workbench\/","url_meta":{"origin":5067,"position":1},"title":"Discovering MySQL Database Service \u2013 Episode 9 \u2013 Connect to MySQL Database Service Using MySQL Workbench","author":"Olivier DASINI","date":"28 septembre 2021","format":false,"excerpt":"MySQL, the world\u2019s most popular open source database, is available as a managed cloud service in Oracle Cloud Infrastructure (OCI) under the name of MySQL Database Service (MDS). This is the ninth episode of \u201cDiscovering MySQL Database Service\u201c, a series of tutorials where I will show you, step by step,\u2026","rel":"","context":"Dans &quot;Cloud&quot;","block_context":{"text":"Cloud","link":"https:\/\/dasini.net\/blog\/category\/cloud\/"},"img":{"alt_text":"MySQL Database Service","src":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4943,"url":"https:\/\/dasini.net\/blog\/2021\/09\/07\/discovering-mysql-database-service-episode-6-update-the-private-subnet-security-list\/","url_meta":{"origin":5067,"position":2},"title":"Discovering MySQL Database Service \u2013 Episode 6 \u2013 Update the Private Subnet Security List","author":"Olivier DASINI","date":"7 septembre 2021","format":false,"excerpt":"MySQL, the world\u2019s most popular open source database, is available as a managed cloud service in Oracle Cloud Infrastructure (OCI) under the name of MySQL Database Service (MDS). This is the sixth episode of \u201cDiscovering MySQL Database Service\u201c, a series of tutorials where I will show you, step by step,\u2026","rel":"","context":"Dans &quot;Cloud&quot;","block_context":{"text":"Cloud","link":"https:\/\/dasini.net\/blog\/category\/cloud\/"},"img":{"alt_text":"MySQL Database Service","src":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4872,"url":"https:\/\/dasini.net\/blog\/2021\/08\/31\/discovering-mysql-database-service-episode-5-create-a-mysql-db-system-from-a-mysql-shell-dump\/","url_meta":{"origin":5067,"position":3},"title":"Discovering MySQL Database Service &#8211; Episode 5 &#8211; Create a MySQL DB system from a MySQL Shell dump","author":"Olivier DASINI","date":"31 ao\u00fbt 2021","format":false,"excerpt":"MySQL, the world\u2019s most popular open source database, is available as a managed cloud service in Oracle Cloud Infrastructure (OCI) under the name of MySQL Database Service (MDS). This is the fifth episode of \u201cDiscovering MySQL Database Service\u201c, a series of tutorials where I will show you, step by step,\u2026","rel":"","context":"Dans &quot;Cloud&quot;","block_context":{"text":"Cloud","link":"https:\/\/dasini.net\/blog\/category\/cloud\/"},"img":{"alt_text":"MySQL Database Service","src":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4989,"url":"https:\/\/dasini.net\/blog\/2021\/09\/14\/discovering-mysql-database-service-episode-7-use-a-bastion-ssh-port-forwarding-session\/","url_meta":{"origin":5067,"position":4},"title":"Discovering MySQL Database Service \u2013 Episode 7 \u2013 Use a Bastion SSH port forwarding session","author":"Olivier DASINI","date":"14 septembre 2021","format":false,"excerpt":"MySQL, the world\u2019s most popular open source database, is available as a managed cloud service in Oracle Cloud Infrastructure (OCI) under the name of MySQL Database Service (MDS). This is the seventh episode of \u201cDiscovering MySQL Database Service\u201c, a series of tutorials where I will show you, step by step,\u2026","rel":"","context":"Dans &quot;Cloud&quot;","block_context":{"text":"Cloud","link":"https:\/\/dasini.net\/blog\/category\/cloud\/"},"img":{"alt_text":"MySQL Database Service","src":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4719,"url":"https:\/\/dasini.net\/blog\/2021\/08\/10\/discovering-mysql-database-service-episode-2-create-a-compartment\/","url_meta":{"origin":5067,"position":5},"title":"Discovering MySQL Database Service &#8211; Episode 2 &#8211; Create a compartment","author":"Olivier DASINI","date":"10 ao\u00fbt 2021","format":false,"excerpt":"This is the second episode of \u201cDiscovering MySQL Database Service\u201c, a series of tutorials where I will show you, step by step, how to use MySQL Database Service and some other Oracle Cloud Infrastructure services. In the previous episode we've introduced the different components that we will use during this\u2026","rel":"","context":"Dans &quot;Cloud&quot;","block_context":{"text":"Cloud","link":"https:\/\/dasini.net\/blog\/category\/cloud\/"},"img":{"alt_text":"MySQL Database Service","src":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/dasini.net\/blog\/wp-content\/uploads\/2021\/06\/MDS_car_801x600.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts\/5067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/comments?post=5067"}],"version-history":[{"count":55,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts\/5067\/revisions"}],"predecessor-version":[{"id":7246,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/posts\/5067\/revisions\/7246"}],"wp:attachment":[{"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/media?parent=5067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/categories?post=5067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasini.net\/blog\/wp-json\/wp\/v2\/tags?post=5067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}