database Magento 安装卡在配置中

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2927197/
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-08 07:45:01  来源:igfitidea点击:

Magento Installation stuck at configuration

databasemagentophpmyadminubuntu-9.10

提问by itsandy

I am not sure what is going wrong when I am trying to install magento to my local ubuntu machine. I did all the steps mentionsed in the magento wiki. Everything goes well until I reach the point where I am herewhich is the magento config page. When I try and continue after entering the necessary details like host, database name and user name and submit it comes back to the same page. I checked for everything like db in my phomyadmin panel and it still gets stuck there. What is the possible reason for that.

当我尝试将 magento 安装到我的本地 ubuntu 机器时,我不确定出了什么问题。我做了magento wiki 中提到的所有步骤。一切顺利,直到我到达我在这里的位置,即 magento 配置页面。当我在输入必要的详细信息(如主机、数据库名称和用户名)后尝试继续并提交时,它会返回到同一页面。我在我的 phomyadmin 面板中检查了像 db 这样的所有东西,但它仍然卡在那里。可能的原因是什么。

Thanks

谢谢

采纳答案by Javed

You have to create a database first and then proceed further.

您必须先创建一个数据库,然后再继续。

Step 1 - First create a database with name of your choice like magento

第 1 步 - 首先使用您选择的名称创建一个数据库,例如 magento

Step 2 - Use that database name in the installation form now

步骤 2 - 现在在安装表单中使用该数据库名称

Step 3 - Continue

第 3 步 - 继续

Hope this solves your problem.

希望这能解决您的问题。

回答by Syprien

Have you try with 127.0.0.1 instead of localhost ? They have some trouble on login in the admin section.

您是否尝试过使用 127.0.0.1 而不是 localhost ?他们在管理部分登录时遇到了一些麻烦。

And check the user/password in the config too !

并检查配置中的用户/密码!

回答by juan

I solved this modifing app/code/core/Mage/Install/etc/config.xml(near 71th string) this

我解决了这个修改app/code/core/Mage/Install/etc/config.xml(接近第 71 个字符串)这个

<extensions>
    <pdo_mysql/>
</extensions>

for this

为了这

<extensions>
    <pdo_mysql>1</pdo_mysql>
</extensions>

回答by dardub

Verify that you meet the following requirements:

验证您是否满足以下要求:

http://www.magentocommerce.com/system-requirements

http://www.magentocommerce.com/system-requirements

Magento only runs on php 5.2.x, not 5.3. Also make sure the extensions listed on the requirements page are enabled.

Magento 只能在 php 5.2.x 上运行,而不是 5.3。还要确保启用了要求页面上列出的扩展。

Might be different for you, but I can check the php version using

您可能会有所不同,但我可以使用以下命令检查 php 版本

php -v

php -v

Edit

编辑

Also what c-verde said about using 127.0.0.1 instead of localhost: This isn't your current problem, but you'll run into it later. You need to be able to accept cookies to log into Magento. Your browser won't accept cookies for local sites.

还有 c-verde 关于使用 127.0.0.1 而不是 localhost 的说法:这不是您当前的问题,但您稍后会遇到它。您需要能够接受 cookie 才能登录 Magento。您的浏览器不接受本地站点的 cookie。

In /etc/hosts you need to add 127.0.0.1 localhost.com

在 /etc/hosts 你需要添加 127.0.0.1 localhost.com

And when you install magento you need to use either localhost.com or 127.0.0.1 instead of localhost.

当您安装 magento 时,您需要使用 localhost.com 或 127.0.0.1 而不是 localhost。

I didn't have this problem with linux, but when installing on windows, it took several minutes after the config page to set up magento. Make sure the browser isn't doing anything.

我在linux上没有这个问题,但是在windows上安装的时候,在配置页面后花了几分钟来设置magento。确保浏览器没有做任何事情。

回答by dardub

Before running the installation of Magento:

在运行Magento安装之前:

  1. Navigate to the Varien.phpfile located in magento/app/code/core/Mage/core/Model/Session/Abstract/Varien.php
  2. You must comment out the last 3 linesin the $cookieParams array:

    $cookieParams = array(
        'lifetime' => $cookie->getLifetime(),
        'path'     => $cookie->getPath()
        //'domain'   => $cookie->getConfigDomain(),
        //'secure'   => $cookie->isSecure(),
        //'httponly' => $cookie->getHttponly()
    );
    
  1. 导航到Varien.php位于magento/app/code/core/Mage/core/Model/Session/Abstract/Varien.php
  2. 你必须注释掉最后3行$cookieParams array

    $cookieParams = array(
        'lifetime' => $cookie->getLifetime(),
        'path'     => $cookie->getPath()
        //'domain'   => $cookie->getConfigDomain(),
        //'secure'   => $cookie->isSecure(),
        //'httponly' => $cookie->getHttponly()
    );
    

回答by user2060571

I did this and it worked!

我这样做了,它奏效了!

Navigate to the Varien.php file located in magento/app/code/core/Mage/core/Model/Session/Abstract/Varien.php You must comment out the last 3 lines in the $cookieParams array:

导航到位于 magento/app/code/core/Mage/core/Model/Session/Abstract/Varien.php 中的 Varien.php 文件,您必须注释掉 $cookieParams 数组中的最后 3 行:

$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path'     => $cookie->getPath()
//'domain'   => $cookie->getConfigDomain(),
//'secure'   => $cookie->isSecure(),
//'httponly' => $cookie->getHttponly()

);

);

and if you got InnoDB error then do this Go To Line 59 of the file app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php

如果您遇到 InnoDB 错误,请转到文件 app/code/core/Mage/Install/Model/Installer/Db/Mysql4.php 的第 59 行

Use following code instead of current one

使用以下代码而不是当前代码

public function supportEngine()
{
$variables  = $this->_getConnection()
    ->fetchPairs('SHOW ENGINES');
return (isset($variables['InnoDB']) && $variables['InnoDB'] != 'NO');
}

回答by Charley Ramm

Tick the box for

勾选方框

Skip Base URL Validation Before the Next Step Check this box only if it is not possible to automatically validate the Base URL.

在下一步之前跳过基本 URL 验证 仅当无法自动验证基本 URL 时才选中此框。

I also added to my C:\windows\system32\drivers\etc\hosts file

我还添加到我的 C:\windows\system32\drivers\etc\hosts 文件

127.0.0.1 www.localhost.com

127.0.0.1 www.localhost.com

and removed my magento directory and database tables and started from scratch.

并删除了我的 magento 目录和数据库表并从头开始。

Works for me now.

现在对我来说有效。

回答by Deepak Lamichhane

I had also been through this problem. I had just create the db first named "magento" and put the 127.0.0.1 instead of localhost. I think, instead of 127.0.0.1, 'localhost' should also work if you had configure it. The problem might be because you didn't have the password for the database but you trying to put the password while installing the magento. Hope this helps some of them.

我也遇到过这个问题。我刚刚创建了第一个名为“magento”的数据库,并将 127.0.0.1 而不是 localhost。我认为,如果你配置了它,'localhost' 也应该可以工作,而不是 127.0.0.1。问题可能是因为您没有数据库的密码,但您在安装 magento 时尝试输入密码。希望这对他们中的一些人有所帮助。

回答by rda3mon

Make sure you load php5-mysql extenion. Thats how I solved my problem. I loaded with http://localhost.com(adding 127.0.0.1 localhost.com to /etc/hosts), it gave my error load pdo-mysql php extension. Otherwise with http://localhost, no error just reloading in configuration page)

确保你加载了 php5-mysql 扩展。这就是我如何解决我的问题。我加载了http://localhost.com(将 127.0.0.1 localhost.com 添加到 /etc/hosts),它给出了我的错误load pdo-mysql php extension。否则http://localhost,在配置页面中重新加载没有错误)

回答by kekaoyunfuwu

My answer might be late for the PM, but probably useful to those who landed in this page via google.

我的回答对 PM 来说可能晚了,但可能对那些通过谷歌登陆此页面的人有用。

My experience was that the whole configuration page is a blank page, without any form regarding database, user info or anything.

我的经验是整个配置页面是一个空白页面,没有任何关于数据库、用户信息或任何内容的表格。

I fixed it by modifying the {Megento Path}/app/etc/config.xmlfile.

我通过修改{Megento Path}/app/etc/config.xml文件来修复它。

 <default_setup>
            <connection>
                <host>localhost</host>
                <username/>
                <password/>
                <dbname>magento</dbname>
                <model>mysql4</model>
                <initStatements>SET NAMES utf8</initStatements>
                <type>pdo_mysql</type>
                <active>0</active>
            </connection>
        </default_setup>

Change the value of the hostitem to anything other than localhost. Then you get those forms and everything and can move on.

主机项的值更改为localhost 以外的任何值。然后你会得到这些表格和所有东西,然后可以继续前进。