{"id":100611,"date":"2004-10-16T21:39:38","date_gmt":"2004-10-16T21:39:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/installation-error-database-problem\/"},"modified":"2016-08-18T18:31:57","modified_gmt":"2016-08-18T18:31:57","slug":"installation-error-database-problem","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/installation-error-database-problem\/","title":{"rendered":"installation error (database problem)"},"content":{"rendered":"<p>Hi everybody!<br \/>\nI have just installed an apache server on my computer to test wordpress before I get my own webspace. I have the apache server and mysql database running. So far I have tested the server with various php sites and yes it displays them &#8211; so the server is working (it&#8217;s by the way the latest release).<br \/>\nThen I have downloaded wordpress and copied everything into the &#8220;htdocs&#8221; folder of the apache installation. I hope this is right, because you have to copy all *.php files into the &#8220;htdocs&#8221; folder to load them in your browser with the &#8220;http:\/\/localhost\/xyz.php&#8221; command. So I though I have to copy the wordpress folder into that directory as well.<br \/>\nThen I edited the wp-config (acutally I have left everything the way it was):<br \/>\n&lt;?php<br \/>\n\/** WordPress&#8217;s config file **\/<br \/>\n\/** <a href=\"https:\/\/wordpress.org\/\">https:\/\/wordpress.org\/<\/a>   **\/<br \/>\n\/\/ ** MySQL settings ** \/\/<br \/>\ndefine(&#8216;DB_NAME&#8217;, &#8216;wordpress&#8217;);     \/\/ The name of the database<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;username&#8217;);     \/\/ Your MySQL username<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;password&#8217;); \/\/ &#8230;and password<br \/>\ndefine(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);     \/\/ 99% chance you won&#8217;t need to change this value<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n?&gt;<br \/>\nThen I tried to execute the install.php (http:\/\/localhost\/wp-admin\/install.php) and I got this error message:<br \/>\nError establishing a database connection! This probably means that the connection information in your wp-config.php file is incorrect. Double check it and try again.<br \/>\n    * Are you sure you have the correct user\/password?<br \/>\n    * Are you sure that you have typed the correct hostname?<br \/>\n    * Are you sure that the database server is running?<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nSo what does this mean? Can someone help me out? Thanks for every tip!<br \/>\nBye<br \/>\nPhil<\/p>\n","protected":false},"template":"","class_list":["post-100611","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/100611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/100611\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=100611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}