简体   繁体   English

在WAMP上安装wordpress仅提供空表

[英]Installing wordpress on WAMP gives empty tables only

I'm installing wordpress on WAMP and i have problem. 我在WAMP上安装了wordpress,但出现了问题。 nstallation is not completed properly and all database tables are empty ( wp_users are empty ). 安装未正确完成,并且所有数据库表均为空(wp_users为empty)。 Not sure how it manages to create tables but not enter data. 不确定如何管理创建表但不输入数据。 after last step of wordpress install, page is not loaded completely, it doesn't say “WP installed and you can now login". Cannot login(login error). I tried creating new user for database with all privileges and using these details for installation. Still doesn't work. All database tables are empty, something is preventing entering sample data and I'm not sure what this could be. Wamp server is working ok! (apache and mysql run and work). 在WordPress安装的最后一步之后,页面没有完全加载,没有显示“ WP已安装,您现在可以登录”。无法登录(登录错误)。我尝试为数据库创建所有权限的新用户,并将这些详细信息用于安装。仍然无法正常工作。所有数据库表都是空的,阻止了输入示例数据,我不确定这可能是什么。Wamp服务器工作正常!(apache和mysql运行正常)。

Check your php error log and apache error log . 检查您的php error logapache error log The issue is probably that the script is timing out somewhere in the database creation and load step. 问题可能是该脚本在数据库创建和加载步骤的某个地方超时。

If so try increasing the max_execution_time in your php.ini. 如果是这样,请尝试增加php.ini中的max_execution_time Edit the php,ini using the wampmanager menu system to ensure you are editing the correct file. 使用wampmanager菜单系统编辑php,ini,以确保您正在编辑正确的文件。

Try changing it temporarily to a larger number like 尝试暂时将其更改为更大的数字,例如

max_execution_time = 240

But change it back to something sensible like 30 or 60 once the install has completed. 但安装完成后,将其更改回合理的值,例如30或60。

I had this problem and I resolved incrementing max_execution_time until 240. 我遇到了这个问题,我解决了将max_execution_time递增到240的问题。

Thanks! 谢谢!

I did some research on Google and it turns out more people are having these problems on WAMP and in most cases they are adviced to check if their PHP version isn't too low - i'd suggest doing the same, so: 我在Google上进行了一些研究,结果发现更多的人在WAMP上遇到了这些问题,在大多数情况下,建议他们检查其PHP版本是否不太低-我建议您这样做,因此:

  • Make sure your AMP environment meets the Wordpress requirements (AMP versions and required mods). 确保您的AMP环境符合Wordpress要求(AMP版本和必需的mod)。

  • Make sure the user in database you are passing credencials for in installation steps have all required privileges (and FLUSH PRIVILEGES ). 确保要在安装步骤中传递凭据的数据库中的用户具有所有必需的特权(和FLUSH PRIVILEGES )。

PS Some person asked yesterday similar question on official WordPress forums - there is no answer so far, but following this topic won't hurt: PS昨天有人在官方WordPress论坛上问了类似的问题-到目前为止,还没有答案,但是关注此主题不会有任何伤害:

http://wordpress.org/support/topic/installing-wordpress-on-wamp-gives-empty-tables-only http://wordpress.org/support/topic/installing-wordpress-on-wamp-gives-empty-tables-only

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM