Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Page 1 of 2
PDOexception object with Magento 0.9.17740 during the installation
 
Black Cat
Guru
 
Avatar
Total Posts:  689
Joined:  2008-02-14
Gonnesa (Italy)
 

Hi.
I have tried to install in local (Wamp 5) Magento 0.9 but an error returns me “PDOException object” and a long series of code.
Yet with Magento 0.8 have not had this problem.
Does someone know me to help?
thanks

File Attachments
exception object magento error.txt  (File Size: 27KB - Downloads: 475)
 Signature 

Cerchi un Webdesigner o grafico per Magento? Contattami

Maintainer Traduzione Italiana
Moderatore Forum Italiano Magento
Magento Webdesigner

-------------My Blog--------------

 
Magento Community Magento Community
Magento Community
Magento Community
 
UltraFlux
Member
 
Avatar
Total Posts:  38
Joined:  2008-03-05
 

Well just by looking at the code it looks like something is wrong with MySQL

SQLSTATE[HY000]: General error: 1005 Can’t create table

Verify MySQL is setup properly, you have correct perms to create a table, enter the correct details into the config.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Guru
 
Avatar
Total Posts:  689
Joined:  2008-02-14
Gonnesa (Italy)
 

I have already verified the data yet they are all correct ones..

 Signature 

Cerchi un Webdesigner o grafico per Magento? Contattami

Maintainer Traduzione Italiana
Moderatore Forum Italiano Magento
Magento Webdesigner

-------------My Blog--------------

 
Magento Community Magento Community
Magento Community
Magento Community
 
Garrone
Sr. Member
 
Avatar
Total Posts:  103
Joined:  2007-11-03
Lauria
 

I also got an PDOException Object on a fresh install.
I got ... Base table or view already exists: 1050 Table ‘customer_address_entity’ already exists’ ...

 Signature 

La Compagnia del Cavatappi, Prodotti Tipici, vini e Vendita Vini.
Se cerchi un Agriturismo in Italia visita Vacanze in Agriturismo.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Guru
 
Avatar
Total Posts:  689
Joined:  2008-02-14
Gonnesa (Italy)
 

the problem is that there is not any database… and the installation more than 2-3 minutes +

 Signature 

Cerchi un Webdesigner o grafico per Magento? Contattami

Maintainer Traduzione Italiana
Moderatore Forum Italiano Magento
Magento Webdesigner

-------------My Blog--------------

 
Magento Community Magento Community
Magento Community
Magento Community
 
Juxecl
Member
 
Total Posts:  33
Joined:  2007-12-08
 

@Black Cat
I had the same problem and created an issue report about it. The fix is simple, you just need to change the order of the CREATE statements.

First open file ./app/code/core/Mage/Core/sql/core_setup/mysql4-install-0.8.0.php

Then change the order of the CREATE statements for the tables core_layout_link and core_layout_update so that core_layout_update is first.

Below is how those two statements should be.

-- DROP TABLE IF EXISTS `{$installer->getTable('core_layout_update')}`;
CREATE TABLE `{$installer->getTable('core_layout_update')}` (
  `
layout_update_idint(10unsigned NOT NULL auto_increment,
  `
handlevarchar(255) default NULL,
  `
xmltext,
  
PRIMARY KEY  (`layout_update_id`),
  
KEY `handle` (`handle`)
ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- 
DROP TABLE IF EXISTS `{$installer->getTable('core_layout_link')}`;
CREATE TABLE `{$installer->getTable('core_layout_link')}` (
  `
layout_link_idint(10unsigned NOT NULL auto_increment,
  `
store_idsmallint(5unsigned NOT NULL default '0',
  `
packagevarchar(64NOT NULL default '',
  `
themevarchar(64NOT NULL default '',
  `
layout_update_idint(10unsigned NOT NULL default '0',
  
PRIMARY KEY  (`layout_link_id`),
  
UNIQUE KEY `store_id` (`store_id`,`package`,`theme`,`layout_update_id`),
  
KEY `FK_core_layout_link_update` (`layout_update_id`),
  
CONSTRAINT `FK_CORE_LAYOUT_LINK_STOREFOREIGN KEY (`store_id`) REFERENCES `{$installer->getTable('core_store')}` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  
CONSTRAINT `FK_core_layout_link_updateFOREIGN KEY (`layout_update_id`) REFERENCES `{$installer->getTable('core_layout_update')}` (`layout_update_id`) ON DELETE CASCADE ON UPDATE CASCADE
ENGINE=InnoDB DEFAULT CHARSET=utf8;

That worked for me, let us know if it solves the issue for you too.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Flowstack
Sr. Member
 
Total Posts:  130
Joined:  2008-01-30
London, United Kingdom
 

Thanks Rowd.

Your fix worked for me. No idea why smile.

Still strange why it was telling me a table existed in the database when it clearly didn’t.

EDIT: I Spoke too soon. It now says another table already exists :(.

 
Magento Community Magento Community
Magento Community
Magento Community
 
scend
Jr. Member
 
Total Posts:  14
Joined:  2008-02-20
 

I’ve had the same installation problem on Linux/Red Hat Enterprise, although mine appears to be with; app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-0.7.26-0.7.27.php

NOTES: Previously had 0.8x installed and running fine, I removed everything to start from scratch. I have now posted a bug report.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Howard
Jr. Member
 
Total Posts:  14
Joined:  2008-03-21
 

I am getting a similar error when trying to install 0.9.17740 on fedora core.  If you look, my error is referencing Syntax error or access violation.  I am using mysql 5.0.45 and was able to install the previous version of Magenta without any issues.  I appreciate any advice anyone might have about this issue. 

Thanks,
Howard

File Attachments
exception.txt  (File Size: 10KB - Downloads: 104)
 
Magento Community Magento Community
Magento Community
Magento Community
 
atlantide
Sr. Member
 
Avatar
Total Posts:  168
Joined:  2008-02-16
France
 

I have the same error.

I tried to change the order of the CREATE statements for the tables core_layout_link and core_layout_update so that core_layout_update is first, but that didn’t work. Any idea ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
Joined:  2007-08-07
Los Angeles
 

@Howard: you are getting this error because you put invalid character into table prefix during install wizard. Please use underscore instead of dash.

@atlantide: need more details, such as the error message text.

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
Howard
Jr. Member
 
Total Posts:  14
Joined:  2008-03-21
 

@Moshe - You were right on.  I should have caught that.  Thank you for the quick and kind reply.

Howard

 
Magento Community Magento Community
Magento Community
Magento Community
 
atlantide
Sr. Member
 
Avatar
Total Posts:  168
Joined:  2008-02-16
France
 

I tried again to reinstall. Here is my configuration :

php5.ini with :

php_flag short_open_tag on

.htaccess with added :

SetEnv DEFAULT_PHP_VERSION 5

CHMOD :

/Magento 755
/Magento/index.php 755
/Magento/app/etc 775
/Magento/var 775
/Magento/var/.htaccess 775
/Magento/media 775

mysql4-install-0.8.0.php :

-- DROP TABLE IF EXISTS `{$installer->getTable(’core_layout_update’)}`;

before

-- DROP TABLE IF EXISTS `{$installer->getTable(’core_layout_link’)}`;

After setting the database info, I get the PDOException Object error…

any idea ?

File Attachments
mysql4-install-0.8.0.php  (File Size: 11KB - Downloads: 73)
PDOException Object.txt  (File Size: 13KB - Downloads: 66)
 
Magento Community Magento Community
Magento Community
Magento Community
 
beau
Member
 
Avatar
Total Posts:  50
Joined:  2008-02-03
 

I have the same error. I modified my install file like suggested but still get the error.

File Attachments
installDb.txt  (File Size: 27KB - Downloads: 99)
 
Magento Community Magento Community
Magento Community
Magento Community
 
scend
Jr. Member
 
Total Posts:  14
Joined:  2008-02-20
 

I had this problem too; the Magento team have fixed it for the next release but for now this worked for me;

“check and set MySQL privilege “CREATE TEMPORARY TABLES” for your database user (see http://dev.mysql.com/doc/refman/5.0/en/privileges-provided.html for details)

 
Magento Community Magento Community
Magento Community
Magento Community
 
atlantide
Sr. Member
 
Avatar
Total Posts:  168
Joined:  2008-02-16
France
 

Thank you for that answer, but how to proceed in phpMyAdmin ?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
53273 users|840 users currently online|107369 forum posts