wordpress database connection error / manually changed php port
<p>I had to change the apache port to 7777 in windows 10 since apache refused to start with xampp.</p>

<p>I know this is affecting my local installation of wordpress, but what should I do? </p>

<p>I also changed the php port, but I still get an error in wordpress.</p>

<p><a href="https://i.stack.imgur.com/J3oHa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J3oHa.png" alt="enter image description here"></a></p>

<p>I manually created a wp-config.php file with the following values:</p>

<pre><code>define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', 'password');

/** MySQL hostname */
define('DB_HOST', '127.0.0.1:7777');
</code></pre>

<p>But the only thing I was able to to is get the following notice: </p>

<blockquote>
  <p>The file 'wp-config.php' already exists. If you need to reset any of
  the configuration items in this file, please delete it first. You may
  try installing now.</p>
</blockquote>

<p>So, what is the correct way to install wordpress when you manually change the apache port?</p>