无法选择数据库-Wordpress [英] Can't select database - Wordpress
问题描述
当我从wordpress.org下载一个新的wordpress,然后将其粘贴到WAMP的www文件夹中,然后在phpmyadmin中创建一个新数据库,然后转到localhost并单击wordpress网站时,它会要求创建配置文件,并输入数据库详细信息,我可以正确地执行此操作,但是当我单击提交时,它会显示无法选择数据库。
When I download a new wordpress from wordpress.org and then paste it into my www folder of WAMP, then create a new database in phpmyadmin, then go to localhost and click the wordpress site, it asks to create the config file, and enter the database details, and i do that correctly, but when I click submit, it says "Can’t select database".
知道这是为什么吗?
我已经有一个本地wordpress网站,该站点开始说连接数据库错误。配置设置都是正确的,所以我试图下载一个新的wordpress网站并使用它,但我什至无法设置一个新的。我以前从未遇到过一个新的wordpress网站无法正常工作。
I already have a local wordpress site that started saying error connecting to database. The config settings are all correct so i tried to download a fresh wordpress site and use it and I cannot even set up a fresh one. I have never encountered a fresh wordpress site not working like this before.
我对旧站点进行了msqldump,以便老板可以将其放在他的服务器上。不确定是否相关。
I did a msqldump of my old site so that my boss could put it on his server. Not sure if that is relevant.
干杯。
推荐答案
请不要太复杂。
在数据库主机字段中添加 localhost:例如,在我的情况下, localhost:3308解决了该问题。
In the "Database Host" field add "localhost: e.g. in my case "localhost:3308" solved the problem.
这篇关于无法选择数据库-Wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!