{"id":17438290,"date":"2024-02-20T05:29:38","date_gmt":"2024-02-20T05:29:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cannot-select-database-6\/"},"modified":"2024-02-20T05:29:38","modified_gmt":"2024-02-20T05:29:38","slug":"cannot-select-database-6","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cannot-select-database-6\/","title":{"rendered":"Cannot select database"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Trying to install WordPress on my local computer using WAMPServer.  I cannot provide a link because the site is on my computer, not on my hosting company&#8217;s server. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I set up the local folder to contain WordPress files then created the virtual host in WAMPServer and set up the database using PHP MyAdmin. When setting up the database, I made sure to select &#8220;MariaDB rather than MySQL. After doing these steps, I went back to WAMP, selected Your virtualhosts &#8211;&gt;easylivinghomeservices.test and started the WP install.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I get the following error:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Cannot select database  The database server could be connected to (which means your username and password is okay) but the\u00a0database could not be selected.<\/em><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I used the username &#8220;root&#8221; with no password as I have done in the past. The message indicates that doing this is not the issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I can log into the database through PHP MyAdmin, There isn&#8217;t anything there because the WP install won&#8217;t run. Last time I set up a local WP site, WordPress populated the database as part of the install process. Is the process different when using MariaDB? I have never used MariaDB before but couldn&#8217;t find any information on using it as my database when installing  WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Again, I made sure to select MariaDB when I added the database in PHP MyAdmin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have set up local sites many times without a problem. I have always used MySQL for the database but am using MariaDB for this site as this is the database that is used by the hosting company. (I don&#8217;t want to run into issues because I used MySQL locally and will have to use MariaDB when the site goes live.) <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Is the cause of my problem the fact I used PHP MyAdmin instead of something else?<\/p>\n","protected":false},"template":"","class_list":["post-17438290","topic","type-topic","status-publish","hentry","topic-tag-cannot","topic-tag-install-error","topic-tag-install-wordpress","topic-tag-mariadb"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17438290","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\/17438290\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17438290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}