windows Magento 安装停止创建数据库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6470320/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:10:39  来源:igfitidea点击:

Magento install stops creating database

windowsmagentoinstall

提问by marcolopes

I've tried win xp and 7
Apache 2.2.19
php-5.3.6 (tried php 5.1.x)
Mysql 5.1.44

我试过 win xp 和 7
Apache 2.2.19
php-5.3.6(试过 php 5.1.x)
Mysql 5.1.44

The install process runs ok until the database creation screen. After 1 minute, the process stops at: http://127.0.0.1/magento/index.php/install/wizard/installDb/with a BLANK page

安装过程运行正常,直到数据库创建屏幕。1 分钟后,该过程在以下位置停止:http: //127.0.0.1/magento/index.php/install/wizard/installDb/带有空白页面

The database has only 199 tables (sometimes stops with less tables)

数据库只有 199 个表(有时会因表较少而停止)

If i refresh the webpage, sometimes more tables are created, but then i get a database error.

如果我刷新网页,有时会创建更多表,但随后会出现数据库错误。

Tried to IMPORT the database manually and start the install, but i get an error at the same step!

尝试手动导入数据库并开始安装,但在同一步骤中出现错误!

Also retried the install (deleting the cached data in the Magento folder).

还重试安装(删除 Magento 文件夹中的缓存数据)。

What am i doing wrong?

我究竟做错了什么?

thanks.

谢谢。

回答by manish

I used to get the same behavior. Other observation is you do not get the blank screen if you are running installation wizard while magento sample data imported to the database. I did some googling and find the following poge which resolved my issue.

我曾经得到相同的行为。其他观察结果是,如果在将 magento 示例数据导入数据库时​​运行安装向导,则不会出现空白屏幕。我做了一些谷歌搜索,找到了以下解决了我的问题的 poge。

http://www.magentocommerce.com/boards/viewthread/76240/

http://www.magentocommerce.com/boards/viewthread/76240/

that is modify apache httpd.conf and add following lines:

即修改 apache httpd.conf 并添加以下行:

Options FollowSymLinks AllowOverride All Order allow,deny Allow from all

选项 FollowSymLinks AllowOverride All Order allow,deny Allow from all

回答by B00MER

I would suggest trying to install via the Command Line Interface:

我建议尝试通过命令行界面安装:

http://www.magentocommerce.com/wiki/groups/227/command_line_installation_wizard

http://www.magentocommerce.com/wiki/groups/227/command_line_installation_wizard

回答by asarfraz

Open the index.php file (at the root) and write the following line at the top

打开 index.php 文件(在根目录)并在顶部写入以下行

<?php
set_time_limit(0);
?>

Empty the tables in your database and try again. The white page appears because the script times out and when you refresh that same page Magento gives you an error page where it says the table already exists. The SQL script which creates the tables in the database does not check whether the table exists in the database or not.

清空数据库中的表并重试。出现白页是因为脚本超时,当您刷新同一页面时,Magento 会为您提供一个错误页面,其中显示该表已存在。在数据库中创建表的 SQL 脚本不会检查该表是否存在于数据库中。

回答by clockworkgeek

A blank screen in PHP is a strong sign of running out of memory. Check the memory limit according to the requirementsand then maybe add a bit more too.

PHP 中的空白屏幕是内存不足的强烈迹象。根据要求检查内存限制,然后也可以添加更多。

回答by Rafee

Change the name localhost file

更改名称 localhost 文件

with any www.example123.com in

与任何 www.example123.com 中的

c:\Windows\System32\drivers\etc\hosts

c:\Windows\System32\drivers\etc\hosts

and add

并添加

127.0.0.1 www.example123.com

127.0.0.1 www.example123.com

after wards follow these steps through this torrent link.

之后通过此 torrent 链接执行这些步骤。

http://tinyurl.com/3r6dpop

http://tinyurl.com/3r6dpop



After installing some images may not upload so even uploaded the books.

安装后有些图片可能无法上传所以甚至上传了书籍。

回答by inf3rno

I got blank screen too, and the following error:

我也有黑屏,并出现以下错误:

[09-Feb-2012 15:27:43] PHP Fatal error: Maximum execution time of 30 seconds exceeded in D:\creation\software developer\projects\magento\document root\lib\Zend\Db\Statement\Pdo.php on line 228

[09-Feb-2012 15:27:43] PHP 致命错误:在 D:\creation\software developer\projects\magento\document root\lib\Zend\Db\Statement\Pdo.php 中超过了 30 秒的最大执行时间在线 228

I'm pretty sure, that you have execution timeout too...

我很确定,您也有执行超时...

You have to setup your php.ini, and increase the max_execution_timeout, and in the iis manager you have to increase the fastcgi request and activity timeouts too.

您必须设置您的 php.ini,并增加 max_execution_timeout,并且在 iis 管理器中您也必须增加 fastcgi 请求和活动超时。