Magento 2 installation stops at 51% with PDO Integrity constraint violationinstallation of magento2 step 1...
Pulling the rope with one hand is as heavy as with two hands?
Is it possible to measure lightning discharges as Nikola Tesla?
What are the spoon bit of a spoon and fork bit of a fork called?
Why is the origin of “threshold” uncertain?
Upright [...] in italics quotation
Electric guitar: why such heavy pots?
Examples of non trivial equivalence relations , I mean equivalence relations without the expression " same ... as" in their definition?
Where did the extra Pym particles come from in Endgame?
A Note on N!
Why does my Photos library differ in size looking in Finder vs in the "Get Info" of Photos?
You look catfish vs You look like a catfish
Is it possible to dynamically set properties of an `Object` using Apex?
Reverse the word in a string with the same order in javascript
Can someone publish a story that happened to you?
Is there a way to get a compiler for the original B programming language?
What's the metal clinking sound at the end of credits in Avengers: Endgame?
How to back up a running remote server?
Modify locally tikzset
Do I have to worry about players making “bad” choices on level up?
What is the incentive for curl to release the library for free?
Does Danger Sense work against invisible spellcasters?
Were there two appearances of Stan Lee?
What is the strongest case that can be made in favour of the UK regaining some control over fishing policy after Brexit?
Smart diagram in Mathematica
Magento 2 installation stops at 51% with PDO Integrity constraint violation
installation of magento2 step 1 have 500 errorMagento installation on live server is throwing errorDeclaration of ZendMvcControllerPluginManager Fatal_error on upgradeNot able to add/update magento2 category post upgrade from 1.9 to 2.1.0Trying to uninstall module“Class mixed does not exist” with only one array param in the body in Magento 2unable to install magento 2.2.4 on xamppMagento 2 Setup error on latest xampp version 3.2.2“Area code is not set” in var/logwhen click on place order then paypal showing error in Magento2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am attempting to install Magento 2 on my server. Everything is set up following the guides online but when I go to install the software it stops at 51% and gives me the following error in the console:
[ERROR] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`me_magento`.`cms_page`, CONSTRAINT `CMS_PAGE_PAGE_ID_SEQUENCE_CMS_PAGE_SEQUENCE_VALUE` FOREIGN KEY (`page_id`) REFERENCES `sequence_cms_page` (`sequence_value`) ON DELETE CASCADE)
This is followed but other PDO errors. I have tried deleting all tables from the database and installing again but I get the same results. I know there isnt an error with PDO as I use it for all my websites when interacting with MySQL. Any help on how I can get this resolved and get Magento 2 installed would be great.
Thanks!
EDIT:
I tried installing the version without the sample data and I get this error:
[ERROR] LogicException: Unknown module in the requested list: 'Magento_CatalogRuleSampleData' in /public_html/magento/setup/src/Magento/Setup/Model/Installer.php:431
Stack trace:
#0 /public_html/magento/setup/src/Magento/Setup/Model/Installer.php(390): MagentoSetupModelInstaller->readListOfModules(Array, Array, 'enable_modules')
#1 /public_html/magento/setup/src/Magento/Setup/Model/Installer.php(336): MagentoSetupModelInstaller->createModulesConfig(Array, true)
#2 /public_html/magento/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#3 /public_html/magento/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#4 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#5 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#6 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#7 /public_html/magento/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#8 /public_html/magento/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#9 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#10 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#11 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#12 /public_html/magento/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#13 /public_html/magento/setup/index.php(31): ZendMvcApplication->run()
#14 {main}
in the console log at 0% so even worse. I can not find the my.cnf file looking in the /ect/ folder so if that is needed to figure out my issue then I will need help finding that.
EDIT 2:
Here is the info in my.cnf:
# The MySQL server
[mysqld]
performance_schema=0
#innodb_force_recovery = 1
port=3306
socket="/tmp/mysql.sock"
key_buffer_size=64M
max_allowed_packet=268435456
bulk_insert_buffer_size=64M
table_open_cache=32768
open_files_limit=65536
sort_buffer_size=8M
read_buffer_size=2M
read_rnd_buffer_size=4M
myisam_sort_buffer_size=128M
myisam_max_sort_file_size=10G
thread_cache_size=8
myisam-recover-options = DEFAULT
query_cache_size=256M
query_cache_limit=2M
# Try number of CPU's*2 for thread_concurrency
#thread_concurrency=16
max_connections=100
#max_user_connections = 40
max_delayed_threads=0
log-error="/var/log/mysql.error.log"
log-warnings
ft_min_word_len=3
wait_timeout=300
tmp_table_size=512M
max_heap_table_size=512M
table_definition_cache=12000
join_buffer_size=256K
magento2
bumped to the homepage by Community♦ 23 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am attempting to install Magento 2 on my server. Everything is set up following the guides online but when I go to install the software it stops at 51% and gives me the following error in the console:
[ERROR] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`me_magento`.`cms_page`, CONSTRAINT `CMS_PAGE_PAGE_ID_SEQUENCE_CMS_PAGE_SEQUENCE_VALUE` FOREIGN KEY (`page_id`) REFERENCES `sequence_cms_page` (`sequence_value`) ON DELETE CASCADE)
This is followed but other PDO errors. I have tried deleting all tables from the database and installing again but I get the same results. I know there isnt an error with PDO as I use it for all my websites when interacting with MySQL. Any help on how I can get this resolved and get Magento 2 installed would be great.
Thanks!
EDIT:
I tried installing the version without the sample data and I get this error:
[ERROR] LogicException: Unknown module in the requested list: 'Magento_CatalogRuleSampleData' in /public_html/magento/setup/src/Magento/Setup/Model/Installer.php:431
Stack trace:
#0 /public_html/magento/setup/src/Magento/Setup/Model/Installer.php(390): MagentoSetupModelInstaller->readListOfModules(Array, Array, 'enable_modules')
#1 /public_html/magento/setup/src/Magento/Setup/Model/Installer.php(336): MagentoSetupModelInstaller->createModulesConfig(Array, true)
#2 /public_html/magento/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#3 /public_html/magento/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#4 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#5 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#6 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#7 /public_html/magento/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#8 /public_html/magento/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#9 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#10 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#11 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#12 /public_html/magento/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#13 /public_html/magento/setup/index.php(31): ZendMvcApplication->run()
#14 {main}
in the console log at 0% so even worse. I can not find the my.cnf file looking in the /ect/ folder so if that is needed to figure out my issue then I will need help finding that.
EDIT 2:
Here is the info in my.cnf:
# The MySQL server
[mysqld]
performance_schema=0
#innodb_force_recovery = 1
port=3306
socket="/tmp/mysql.sock"
key_buffer_size=64M
max_allowed_packet=268435456
bulk_insert_buffer_size=64M
table_open_cache=32768
open_files_limit=65536
sort_buffer_size=8M
read_buffer_size=2M
read_rnd_buffer_size=4M
myisam_sort_buffer_size=128M
myisam_max_sort_file_size=10G
thread_cache_size=8
myisam-recover-options = DEFAULT
query_cache_size=256M
query_cache_limit=2M
# Try number of CPU's*2 for thread_concurrency
#thread_concurrency=16
max_connections=100
#max_user_connections = 40
max_delayed_threads=0
log-error="/var/log/mysql.error.log"
log-warnings
ft_min_word_len=3
wait_timeout=300
tmp_table_size=512M
max_heap_table_size=512M
table_definition_cache=12000
join_buffer_size=256K
magento2
bumped to the homepage by Community♦ 23 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You tried to install fresh version?
– Khoa TruongDinh
Jan 20 '17 at 16:41
I downloaded the zip of Magento 2 directly from Magento, the enterprise edition
– Action Coding
Jan 20 '17 at 16:47
Are you still having this issue or have you moved on? Our host changed our max_allowed_packet to 32M and resolved the situation. They also had increased our open_files_limit to what you currently have
– Navarr
Feb 13 '17 at 15:15
have you used with new database ?
– Ayush
Apr 27 '18 at 13:01
add a comment |
I am attempting to install Magento 2 on my server. Everything is set up following the guides online but when I go to install the software it stops at 51% and gives me the following error in the console:
[ERROR] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`me_magento`.`cms_page`, CONSTRAINT `CMS_PAGE_PAGE_ID_SEQUENCE_CMS_PAGE_SEQUENCE_VALUE` FOREIGN KEY (`page_id`) REFERENCES `sequence_cms_page` (`sequence_value`) ON DELETE CASCADE)
This is followed but other PDO errors. I have tried deleting all tables from the database and installing again but I get the same results. I know there isnt an error with PDO as I use it for all my websites when interacting with MySQL. Any help on how I can get this resolved and get Magento 2 installed would be great.
Thanks!
EDIT:
I tried installing the version without the sample data and I get this error:
[ERROR] LogicException: Unknown module in the requested list: 'Magento_CatalogRuleSampleData' in /public_html/magento/setup/src/Magento/Setup/Model/Installer.php:431
Stack trace:
#0 /public_html/magento/setup/src/Magento/Setup/Model/Installer.php(390): MagentoSetupModelInstaller->readListOfModules(Array, Array, 'enable_modules')
#1 /public_html/magento/setup/src/Magento/Setup/Model/Installer.php(336): MagentoSetupModelInstaller->createModulesConfig(Array, true)
#2 /public_html/magento/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#3 /public_html/magento/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#4 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#5 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#6 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#7 /public_html/magento/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#8 /public_html/magento/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#9 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#10 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#11 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#12 /public_html/magento/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#13 /public_html/magento/setup/index.php(31): ZendMvcApplication->run()
#14 {main}
in the console log at 0% so even worse. I can not find the my.cnf file looking in the /ect/ folder so if that is needed to figure out my issue then I will need help finding that.
EDIT 2:
Here is the info in my.cnf:
# The MySQL server
[mysqld]
performance_schema=0
#innodb_force_recovery = 1
port=3306
socket="/tmp/mysql.sock"
key_buffer_size=64M
max_allowed_packet=268435456
bulk_insert_buffer_size=64M
table_open_cache=32768
open_files_limit=65536
sort_buffer_size=8M
read_buffer_size=2M
read_rnd_buffer_size=4M
myisam_sort_buffer_size=128M
myisam_max_sort_file_size=10G
thread_cache_size=8
myisam-recover-options = DEFAULT
query_cache_size=256M
query_cache_limit=2M
# Try number of CPU's*2 for thread_concurrency
#thread_concurrency=16
max_connections=100
#max_user_connections = 40
max_delayed_threads=0
log-error="/var/log/mysql.error.log"
log-warnings
ft_min_word_len=3
wait_timeout=300
tmp_table_size=512M
max_heap_table_size=512M
table_definition_cache=12000
join_buffer_size=256K
magento2
I am attempting to install Magento 2 on my server. Everything is set up following the guides online but when I go to install the software it stops at 51% and gives me the following error in the console:
[ERROR] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`me_magento`.`cms_page`, CONSTRAINT `CMS_PAGE_PAGE_ID_SEQUENCE_CMS_PAGE_SEQUENCE_VALUE` FOREIGN KEY (`page_id`) REFERENCES `sequence_cms_page` (`sequence_value`) ON DELETE CASCADE)
This is followed but other PDO errors. I have tried deleting all tables from the database and installing again but I get the same results. I know there isnt an error with PDO as I use it for all my websites when interacting with MySQL. Any help on how I can get this resolved and get Magento 2 installed would be great.
Thanks!
EDIT:
I tried installing the version without the sample data and I get this error:
[ERROR] LogicException: Unknown module in the requested list: 'Magento_CatalogRuleSampleData' in /public_html/magento/setup/src/Magento/Setup/Model/Installer.php:431
Stack trace:
#0 /public_html/magento/setup/src/Magento/Setup/Model/Installer.php(390): MagentoSetupModelInstaller->readListOfModules(Array, Array, 'enable_modules')
#1 /public_html/magento/setup/src/Magento/Setup/Model/Installer.php(336): MagentoSetupModelInstaller->createModulesConfig(Array, true)
#2 /public_html/magento/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#3 /public_html/magento/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#4 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#5 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#6 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#7 /public_html/magento/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#8 /public_html/magento/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#9 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#10 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#11 /public_html/magento/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#12 /public_html/magento/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#13 /public_html/magento/setup/index.php(31): ZendMvcApplication->run()
#14 {main}
in the console log at 0% so even worse. I can not find the my.cnf file looking in the /ect/ folder so if that is needed to figure out my issue then I will need help finding that.
EDIT 2:
Here is the info in my.cnf:
# The MySQL server
[mysqld]
performance_schema=0
#innodb_force_recovery = 1
port=3306
socket="/tmp/mysql.sock"
key_buffer_size=64M
max_allowed_packet=268435456
bulk_insert_buffer_size=64M
table_open_cache=32768
open_files_limit=65536
sort_buffer_size=8M
read_buffer_size=2M
read_rnd_buffer_size=4M
myisam_sort_buffer_size=128M
myisam_max_sort_file_size=10G
thread_cache_size=8
myisam-recover-options = DEFAULT
query_cache_size=256M
query_cache_limit=2M
# Try number of CPU's*2 for thread_concurrency
#thread_concurrency=16
max_connections=100
#max_user_connections = 40
max_delayed_threads=0
log-error="/var/log/mysql.error.log"
log-warnings
ft_min_word_len=3
wait_timeout=300
tmp_table_size=512M
max_heap_table_size=512M
table_definition_cache=12000
join_buffer_size=256K
magento2
magento2
edited Jan 23 '17 at 14:02
Action Coding
asked Jan 20 '17 at 16:36
Action CodingAction Coding
1012
1012
bumped to the homepage by Community♦ 23 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 23 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You tried to install fresh version?
– Khoa TruongDinh
Jan 20 '17 at 16:41
I downloaded the zip of Magento 2 directly from Magento, the enterprise edition
– Action Coding
Jan 20 '17 at 16:47
Are you still having this issue or have you moved on? Our host changed our max_allowed_packet to 32M and resolved the situation. They also had increased our open_files_limit to what you currently have
– Navarr
Feb 13 '17 at 15:15
have you used with new database ?
– Ayush
Apr 27 '18 at 13:01
add a comment |
You tried to install fresh version?
– Khoa TruongDinh
Jan 20 '17 at 16:41
I downloaded the zip of Magento 2 directly from Magento, the enterprise edition
– Action Coding
Jan 20 '17 at 16:47
Are you still having this issue or have you moved on? Our host changed our max_allowed_packet to 32M and resolved the situation. They also had increased our open_files_limit to what you currently have
– Navarr
Feb 13 '17 at 15:15
have you used with new database ?
– Ayush
Apr 27 '18 at 13:01
You tried to install fresh version?
– Khoa TruongDinh
Jan 20 '17 at 16:41
You tried to install fresh version?
– Khoa TruongDinh
Jan 20 '17 at 16:41
I downloaded the zip of Magento 2 directly from Magento, the enterprise edition
– Action Coding
Jan 20 '17 at 16:47
I downloaded the zip of Magento 2 directly from Magento, the enterprise edition
– Action Coding
Jan 20 '17 at 16:47
Are you still having this issue or have you moved on? Our host changed our max_allowed_packet to 32M and resolved the situation. They also had increased our open_files_limit to what you currently have
– Navarr
Feb 13 '17 at 15:15
Are you still having this issue or have you moved on? Our host changed our max_allowed_packet to 32M and resolved the situation. They also had increased our open_files_limit to what you currently have
– Navarr
Feb 13 '17 at 15:15
have you used with new database ?
– Ayush
Apr 27 '18 at 13:01
have you used with new database ?
– Ayush
Apr 27 '18 at 13:01
add a comment |
3 Answers
3
active
oldest
votes
what version of mysql are you using? also post here your my.cnf
it would be helpfull if you can get a magento2 standard .sql dump and try to import it via CLI on your server.
MySQL is 5.6.34
– Action Coding
Jan 21 '17 at 14:48
What about my.cnf? It's your problem so try to give us more details
– Simone Fantini
Jan 21 '17 at 14:52
See my edit to my original post
– Action Coding
Jan 21 '17 at 18:20
I still do not see the my.cnf file. Do you know where is it? Tipically /etc/mysql/my.cnf
– Simone Fantini
Jan 21 '17 at 18:21
There is no mysql folder in my /etc/ file so I do not know where else to find it. In my edit above i stated that I can not find the file so I am not sure why you put "I still do not see the my.cnf file"
– Action Coding
Jan 21 '17 at 18:29
|
show 2 more comments
What are your server specs? Those specs are for a heavy duty highend mysql server with at lease 32gb ram...
Just try with a default mariadb or percona ...with zero modification
Do you have any idea what the issue I am getting in my original question is being caused by? Also, I use mysql for basically any site I build that needs a database so I am good as far as that goes. I just have never used Magento and am trying to get it installed so I can go through the Magento 2 training
– Action Coding
Jan 23 '17 at 14:52
Fundamentally, the sql file youre tring to import has an issue with FK. Most of the time becouse the first dump has been made without --triggers --events..but in this case, starting from a m2 default, are you using yhr git magento or the magento.com/download versione?
– Simone Fantini
Jan 23 '17 at 15:03
Downloaded directly from Magento
– Action Coding
Jan 23 '17 at 16:18
add a comment |
It happens because MySQL often use MyISAM as default engine for tables. But this engine doesn't support foreign keys.
So, to fix your error you need to execute following query in MySQL:
SET GLOBAL default_storage_engine=INNODB;
Then delete your database and try to install it again.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f155756%2fmagento-2-installation-stops-at-51-with-pdo-integrity-constraint-violation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
what version of mysql are you using? also post here your my.cnf
it would be helpfull if you can get a magento2 standard .sql dump and try to import it via CLI on your server.
MySQL is 5.6.34
– Action Coding
Jan 21 '17 at 14:48
What about my.cnf? It's your problem so try to give us more details
– Simone Fantini
Jan 21 '17 at 14:52
See my edit to my original post
– Action Coding
Jan 21 '17 at 18:20
I still do not see the my.cnf file. Do you know where is it? Tipically /etc/mysql/my.cnf
– Simone Fantini
Jan 21 '17 at 18:21
There is no mysql folder in my /etc/ file so I do not know where else to find it. In my edit above i stated that I can not find the file so I am not sure why you put "I still do not see the my.cnf file"
– Action Coding
Jan 21 '17 at 18:29
|
show 2 more comments
what version of mysql are you using? also post here your my.cnf
it would be helpfull if you can get a magento2 standard .sql dump and try to import it via CLI on your server.
MySQL is 5.6.34
– Action Coding
Jan 21 '17 at 14:48
What about my.cnf? It's your problem so try to give us more details
– Simone Fantini
Jan 21 '17 at 14:52
See my edit to my original post
– Action Coding
Jan 21 '17 at 18:20
I still do not see the my.cnf file. Do you know where is it? Tipically /etc/mysql/my.cnf
– Simone Fantini
Jan 21 '17 at 18:21
There is no mysql folder in my /etc/ file so I do not know where else to find it. In my edit above i stated that I can not find the file so I am not sure why you put "I still do not see the my.cnf file"
– Action Coding
Jan 21 '17 at 18:29
|
show 2 more comments
what version of mysql are you using? also post here your my.cnf
it would be helpfull if you can get a magento2 standard .sql dump and try to import it via CLI on your server.
what version of mysql are you using? also post here your my.cnf
it would be helpfull if you can get a magento2 standard .sql dump and try to import it via CLI on your server.
answered Jan 20 '17 at 23:50
Simone FantiniSimone Fantini
182
182
MySQL is 5.6.34
– Action Coding
Jan 21 '17 at 14:48
What about my.cnf? It's your problem so try to give us more details
– Simone Fantini
Jan 21 '17 at 14:52
See my edit to my original post
– Action Coding
Jan 21 '17 at 18:20
I still do not see the my.cnf file. Do you know where is it? Tipically /etc/mysql/my.cnf
– Simone Fantini
Jan 21 '17 at 18:21
There is no mysql folder in my /etc/ file so I do not know where else to find it. In my edit above i stated that I can not find the file so I am not sure why you put "I still do not see the my.cnf file"
– Action Coding
Jan 21 '17 at 18:29
|
show 2 more comments
MySQL is 5.6.34
– Action Coding
Jan 21 '17 at 14:48
What about my.cnf? It's your problem so try to give us more details
– Simone Fantini
Jan 21 '17 at 14:52
See my edit to my original post
– Action Coding
Jan 21 '17 at 18:20
I still do not see the my.cnf file. Do you know where is it? Tipically /etc/mysql/my.cnf
– Simone Fantini
Jan 21 '17 at 18:21
There is no mysql folder in my /etc/ file so I do not know where else to find it. In my edit above i stated that I can not find the file so I am not sure why you put "I still do not see the my.cnf file"
– Action Coding
Jan 21 '17 at 18:29
MySQL is 5.6.34
– Action Coding
Jan 21 '17 at 14:48
MySQL is 5.6.34
– Action Coding
Jan 21 '17 at 14:48
What about my.cnf? It's your problem so try to give us more details
– Simone Fantini
Jan 21 '17 at 14:52
What about my.cnf? It's your problem so try to give us more details
– Simone Fantini
Jan 21 '17 at 14:52
See my edit to my original post
– Action Coding
Jan 21 '17 at 18:20
See my edit to my original post
– Action Coding
Jan 21 '17 at 18:20
I still do not see the my.cnf file. Do you know where is it? Tipically /etc/mysql/my.cnf
– Simone Fantini
Jan 21 '17 at 18:21
I still do not see the my.cnf file. Do you know where is it? Tipically /etc/mysql/my.cnf
– Simone Fantini
Jan 21 '17 at 18:21
There is no mysql folder in my /etc/ file so I do not know where else to find it. In my edit above i stated that I can not find the file so I am not sure why you put "I still do not see the my.cnf file"
– Action Coding
Jan 21 '17 at 18:29
There is no mysql folder in my /etc/ file so I do not know where else to find it. In my edit above i stated that I can not find the file so I am not sure why you put "I still do not see the my.cnf file"
– Action Coding
Jan 21 '17 at 18:29
|
show 2 more comments
What are your server specs? Those specs are for a heavy duty highend mysql server with at lease 32gb ram...
Just try with a default mariadb or percona ...with zero modification
Do you have any idea what the issue I am getting in my original question is being caused by? Also, I use mysql for basically any site I build that needs a database so I am good as far as that goes. I just have never used Magento and am trying to get it installed so I can go through the Magento 2 training
– Action Coding
Jan 23 '17 at 14:52
Fundamentally, the sql file youre tring to import has an issue with FK. Most of the time becouse the first dump has been made without --triggers --events..but in this case, starting from a m2 default, are you using yhr git magento or the magento.com/download versione?
– Simone Fantini
Jan 23 '17 at 15:03
Downloaded directly from Magento
– Action Coding
Jan 23 '17 at 16:18
add a comment |
What are your server specs? Those specs are for a heavy duty highend mysql server with at lease 32gb ram...
Just try with a default mariadb or percona ...with zero modification
Do you have any idea what the issue I am getting in my original question is being caused by? Also, I use mysql for basically any site I build that needs a database so I am good as far as that goes. I just have never used Magento and am trying to get it installed so I can go through the Magento 2 training
– Action Coding
Jan 23 '17 at 14:52
Fundamentally, the sql file youre tring to import has an issue with FK. Most of the time becouse the first dump has been made without --triggers --events..but in this case, starting from a m2 default, are you using yhr git magento or the magento.com/download versione?
– Simone Fantini
Jan 23 '17 at 15:03
Downloaded directly from Magento
– Action Coding
Jan 23 '17 at 16:18
add a comment |
What are your server specs? Those specs are for a heavy duty highend mysql server with at lease 32gb ram...
Just try with a default mariadb or percona ...with zero modification
What are your server specs? Those specs are for a heavy duty highend mysql server with at lease 32gb ram...
Just try with a default mariadb or percona ...with zero modification
answered Jan 23 '17 at 14:17
Simone FantiniSimone Fantini
182
182
Do you have any idea what the issue I am getting in my original question is being caused by? Also, I use mysql for basically any site I build that needs a database so I am good as far as that goes. I just have never used Magento and am trying to get it installed so I can go through the Magento 2 training
– Action Coding
Jan 23 '17 at 14:52
Fundamentally, the sql file youre tring to import has an issue with FK. Most of the time becouse the first dump has been made without --triggers --events..but in this case, starting from a m2 default, are you using yhr git magento or the magento.com/download versione?
– Simone Fantini
Jan 23 '17 at 15:03
Downloaded directly from Magento
– Action Coding
Jan 23 '17 at 16:18
add a comment |
Do you have any idea what the issue I am getting in my original question is being caused by? Also, I use mysql for basically any site I build that needs a database so I am good as far as that goes. I just have never used Magento and am trying to get it installed so I can go through the Magento 2 training
– Action Coding
Jan 23 '17 at 14:52
Fundamentally, the sql file youre tring to import has an issue with FK. Most of the time becouse the first dump has been made without --triggers --events..but in this case, starting from a m2 default, are you using yhr git magento or the magento.com/download versione?
– Simone Fantini
Jan 23 '17 at 15:03
Downloaded directly from Magento
– Action Coding
Jan 23 '17 at 16:18
Do you have any idea what the issue I am getting in my original question is being caused by? Also, I use mysql for basically any site I build that needs a database so I am good as far as that goes. I just have never used Magento and am trying to get it installed so I can go through the Magento 2 training
– Action Coding
Jan 23 '17 at 14:52
Do you have any idea what the issue I am getting in my original question is being caused by? Also, I use mysql for basically any site I build that needs a database so I am good as far as that goes. I just have never used Magento and am trying to get it installed so I can go through the Magento 2 training
– Action Coding
Jan 23 '17 at 14:52
Fundamentally, the sql file youre tring to import has an issue with FK. Most of the time becouse the first dump has been made without --triggers --events..but in this case, starting from a m2 default, are you using yhr git magento or the magento.com/download versione?
– Simone Fantini
Jan 23 '17 at 15:03
Fundamentally, the sql file youre tring to import has an issue with FK. Most of the time becouse the first dump has been made without --triggers --events..but in this case, starting from a m2 default, are you using yhr git magento or the magento.com/download versione?
– Simone Fantini
Jan 23 '17 at 15:03
Downloaded directly from Magento
– Action Coding
Jan 23 '17 at 16:18
Downloaded directly from Magento
– Action Coding
Jan 23 '17 at 16:18
add a comment |
It happens because MySQL often use MyISAM as default engine for tables. But this engine doesn't support foreign keys.
So, to fix your error you need to execute following query in MySQL:
SET GLOBAL default_storage_engine=INNODB;
Then delete your database and try to install it again.
add a comment |
It happens because MySQL often use MyISAM as default engine for tables. But this engine doesn't support foreign keys.
So, to fix your error you need to execute following query in MySQL:
SET GLOBAL default_storage_engine=INNODB;
Then delete your database and try to install it again.
add a comment |
It happens because MySQL often use MyISAM as default engine for tables. But this engine doesn't support foreign keys.
So, to fix your error you need to execute following query in MySQL:
SET GLOBAL default_storage_engine=INNODB;
Then delete your database and try to install it again.
It happens because MySQL often use MyISAM as default engine for tables. But this engine doesn't support foreign keys.
So, to fix your error you need to execute following query in MySQL:
SET GLOBAL default_storage_engine=INNODB;
Then delete your database and try to install it again.
edited Dec 7 '17 at 15:03
answered Dec 7 '17 at 12:21
DirexDirex
415
415
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f155756%2fmagento-2-installation-stops-at-51-with-pdo-integrity-constraint-violation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You tried to install fresh version?
– Khoa TruongDinh
Jan 20 '17 at 16:41
I downloaded the zip of Magento 2 directly from Magento, the enterprise edition
– Action Coding
Jan 20 '17 at 16:47
Are you still having this issue or have you moved on? Our host changed our max_allowed_packet to 32M and resolved the situation. They also had increased our open_files_limit to what you currently have
– Navarr
Feb 13 '17 at 15:15
have you used with new database ?
– Ayush
Apr 27 '18 at 13:01