<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: lnoueryo</title>
    <description>The latest articles on DEV Community by lnoueryo (@lnoueryo).</description>
    <link>https://dev.to/lnoueryo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1190657%2Fb86e2b5a-4357-4fe5-9901-40ffdc1d48ff.png</url>
      <title>DEV Community: lnoueryo</title>
      <link>https://dev.to/lnoueryo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lnoueryo"/>
    <language>en</language>
    <item>
      <title>Renaming a Git Branch</title>
      <dc:creator>lnoueryo</dc:creator>
      <pubDate>Tue, 24 Sep 2024 06:14:45 +0000</pubDate>
      <link>https://dev.to/lnoueryo/renaming-a-git-branch-2i1a</link>
      <guid>https://dev.to/lnoueryo/renaming-a-git-branch-2i1a</guid>
      <description>&lt;h2&gt;
  
  
  Rename feature/a to feature/b
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# make sure that feature/a is selected on the local branch
git checkout feature/a

# rename the local branch to feature/b
git branch -m feature/b

# push the new branch to the remote
git push origin feature/b

# delete the old branch on the remote
git push origin --delete feature/a
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>github</category>
      <category>git</category>
    </item>
    <item>
      <title>The process of setting up a Mysql container with Docker Desktop and connecting from the host machine</title>
      <dc:creator>lnoueryo</dc:creator>
      <pubDate>Sun, 14 Jul 2024 03:40:58 +0000</pubDate>
      <link>https://dev.to/lnoueryo/the-process-of-setting-up-a-mysql-container-with-docker-desktop-and-connecting-from-the-host-machine-gl5</link>
      <guid>https://dev.to/lnoueryo/the-process-of-setting-up-a-mysql-container-with-docker-desktop-and-connecting-from-the-host-machine-gl5</guid>
      <description>&lt;p&gt;Docker Desktop version is &lt;code&gt;4.32.0&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Get Mysql Image
&lt;/h2&gt;

&lt;p&gt;There is a search bar at the header.&lt;br&gt;
Input &lt;code&gt;mysql&lt;/code&gt; and you will see a list containing mysql.&lt;br&gt;
Click on it.&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb838lemrmojfcs8rqepu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb838lemrmojfcs8rqepu.png" alt="A search bar" width="800" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flmc9g570hog7jgu6f3gb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flmc9g570hog7jgu6f3gb.png" alt="A list containing mysql" width="800" height="590"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will see the &lt;code&gt;Pull&lt;/code&gt; button and click it.&lt;br&gt;
If you wanna pull the image via the terminal, use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker pull &lt;span class="o"&gt;{&lt;/span&gt;image_name&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcz32nph26twqilxaigbp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcz32nph26twqilxaigbp.png" alt="The Pull button" width="800" height="278"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Set Up Environmental Variables
&lt;/h2&gt;

&lt;p&gt;After the image is downloaded, go to the images page from the drawer and you will see the MySQL image listed.&lt;br&gt;
Click the &lt;code&gt;run&lt;/code&gt; buttn.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqydczanc5u08lmk30je3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqydczanc5u08lmk30je3.png" alt="The MySQL image listed" width="800" height="243"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the Optional settings, input the values as below and click the &lt;code&gt;Run&lt;/code&gt; button&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fajavula8qiv2y7daycno.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fajavula8qiv2y7daycno.png" alt="The Optional settings" width="800" height="937"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The command is as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;--name&lt;/span&gt; mysql-container &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="nv"&gt;MYSQL_ROOT_PASSWORD&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;password &lt;span class="nt"&gt;-p&lt;/span&gt; 3306:3306 &lt;span class="nt"&gt;-d&lt;/span&gt; mysql:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Connect To The Mysql Container From The Host Machine
&lt;/h2&gt;

&lt;p&gt;You might think that you can connect with the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql -u root -p
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But actually you can't.&lt;br&gt;
The error message will be: &lt;br&gt;
&lt;code&gt;ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
I asked ChatGPT about the reason for the error and the answer is you need to add the host IP as below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql -u root -p -h 127.0.0.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And now you can connect to it.&lt;br&gt;
Thank You!!&lt;/p&gt;

</description>
      <category>docker</category>
    </item>
    <item>
      <title>Resolving Dependency Installation Error with npm install</title>
      <dc:creator>lnoueryo</dc:creator>
      <pubDate>Sun, 29 Oct 2023 11:14:48 +0000</pubDate>
      <link>https://dev.to/lnoueryo/resolving-dependency-installation-error-with-npm-install-5837</link>
      <guid>https://dev.to/lnoueryo/resolving-dependency-installation-error-with-npm-install-5837</guid>
      <description>&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;Executing &lt;code&gt;npm install&lt;/code&gt; results in the following error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;failed to solve: error from sender: open \develop\project\webtech-bookstore\frontend\node_modules\.pnpm\@babel+core@7.23.2\node_modules\debug: The file cannot be accessed by the system.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Cause
&lt;/h2&gt;

&lt;p&gt;The node_modules directory installed by different versions of Node.js or on different operating systems may cause compatibility issues&lt;/p&gt;

&lt;p&gt;Sharing the &lt;code&gt;node_modules&lt;/code&gt; directory installed by different versions of Node.js or on different operating systems may cause compatibility issues. To avoid such problems, it's common to delete the &lt;code&gt;node_modules&lt;/code&gt; directory and then run &lt;code&gt;npm install&lt;/code&gt; to reinstall the dependencies.&lt;/p&gt;

</description>
      <category>npm</category>
    </item>
  </channel>
</rss>
