title: XAMPP MySQL not starting: /opt/lampp/bin/mysql.server: 263: kill: No such process
body: <p>When I launch XAMPP, apache works fine but mysql doesn't start, it always say:<br />
  '<em>Failed to start &quot;mysql&quot;: cannot start service: /opt/lampp/bin/mysql.server: 263: kill: No such process</em>'
  It is weird because before, everything was working great, and one time, while working on my project, I sent an sql request from php and after when I refreshed phpmyadmin, my database wouldn't show. I restarted XAMPP and mysql wouldn't start again. The sql request from php was looking like this:</p>
  <pre><code>$sql = &quot;UPDATE courses_messages SET message=? WHERE id=?;&quot;;
  $stmt = mysqli_stmt_init($conn);
  if (!mysqli_stmt_prepare($stmt, $sql)) {
      header(&quot;Location: ../error.php&quot;);
      exit();
  }
  else {
      mysqli_stmt_bind_param($stmt, &quot;si&quot;, $newQues, $quesId);
      mysqli_stmt_execute($stmt);
      header(&quot;Location: ../course.php?courseid=&quot;.$courseIdFromGet.&quot;&amp;change=success&quot;.$quesId);
      exit();
  }
  </code></pre>
  <p>I am using a MacBook Air and while this happened I was on Big Sur but just today I updated to Monterey and no difference.</p>