{"id":24381,"date":"2003-09-24T11:03:00","date_gmt":"2003-09-24T11:03:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/database-problems\/"},"modified":"2016-08-18T18:15:13","modified_gmt":"2016-08-18T18:15:13","slug":"database-problems","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/database-problems\/","title":{"rendered":"Database Problems"},"content":{"rendered":"<p>I got a problem with the installation of wp,<br \/>\ni changed my php config file to:<br \/>\n\/\/ ** MySQL settings **<br \/>\ndefine(&#8216;DB_NAME&#8217;, &#8216;motou&#8217;); \/\/ The name of the database<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;motou&#8217;); \/\/ Your MySQL username<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;password&#8217;); \/\/ &#8230;and password<br \/>\ndefine(&#8216;DB_HOST&#8217;, &#8216;freesql.org&#8217;); \/\/ 99% chance you won&#8217;t need to change this value<br \/>\nbut it doesn&#8217;t work. It complained always<br \/>\n&#8220;Cannot connect to the database&#8221;<br \/>\nand when i click further, i found Wp-install.php tries using &#8216;root@localhost&#8217; to connect a database, but not the user name. Is that a bug in WP?<br \/>\ni use freesql.org as mySQL supporter.<br \/>\nAny reply will be appreciated.<\/p>\n","protected":false},"template":"","class_list":["post-24381","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/24381","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\/24381\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=24381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}