-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import database #133
Comments
Yep - just added this to the documentation so it's more apparent: |
This seems to fail for me:
I've tried another way, got another error:
|
put the magento.sql file on your local host machine --- after the < it looks at your local machine, not the docker container for the file
…________________________________
From: Julian <notifications@github.com>
Sent: Wednesday, February 27, 2019 3:12 AM
To: markshust/docker-magento
Cc: Mark Shust; State change
Subject: Re: [markshust/docker-magento] Import database (#133)
This seems to fail for me:
$ bin/cli ls -la | grep sql
1084 -rw-r--r-- 1 app app 1106550 Feb 26 08:01 magento.sql
$ bin/cli mysql -h db -umagento -pmagento magento < magento.sql
-bash: magento.sql: No such file or directory
I've tried another way, got another error:
$ bin/bash
$ mysql -h db -umagento -pmagento magento < magento.sql
ERROR 1227 (42000) at line 12508: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<#133 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAarJWZnH6RCdBf33up4pQFtBjoA9Jidks5vRj3fgaJpZM4bRgc5>.
|
Sorry for bothering you:
|
if you don't want a tty (automated script or otherwise), you can use bin/clinotty
…________________________________
From: Julian <notifications@github.com>
Sent: Friday, March 1, 2019 1:07 AM
To: markshust/docker-magento
Cc: Mark Shust; State change
Subject: Re: [markshust/docker-magento] Import database (#133)
Sorry for bothering you:
$ bin/cli mysql -h db -umagento -pmagento magento < magento.sql
the input device is not a TTY
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<#133 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAarJbFfBIA2W13P6mDbqKCYNlM77_X2ks5vSNGVgaJpZM4bRgc5>.
|
I noticed that on the section you posted you're using root:
But in the existing projects section you're using the magento user: https://github.com/markshust/docker-magento#existing-projects
Following the existing projects section commands I kept getting the following permission error when trying to import a database:
In order to bypass the error I had to change the user to root. I thought this was kind of confusing. You might want to change the user name to root in the existing projects section of the initial readme in order to reduce confusion if you're just going through the steps. |
This ticket should be reopened. me@192-168-0-100 ~/P/text.in (master) [1]> bin/clinotty mysql -hdb -umagento -pmagento magento < test.sql |
@Julime @carlos-reynosa @verdde @markshust Solution is remove the DEFINER clause from sql dump file or using
And then you can use magento user to import database.
Ref: |
I can confirm that this works for the latest update:
Everything else is making me wanna dump my mind :) |
@mrkovalski solution works fine for the latest update! |
I plan to use this as a local development setup. Therefore i need to import the production database. I couldn't find any hint how to do so at startup in this repo.
Should i do this via
bin/cli
?The text was updated successfully, but these errors were encountered: