Skip to content
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

Hi! There I have a question. #1

Closed
meezin opened this issue Sep 29, 2017 · 1 comment
Closed

Hi! There I have a question. #1

meezin opened this issue Sep 29, 2017 · 1 comment

Comments

@meezin
Copy link

meezin commented Sep 29, 2017

I was trying to use your delta_migration_Script but i don't know how to use it.
What is connect.php file ? could you give me a hand for me a little bit?

  1. I have a live site, a staging site(M v.1.9) and a dev site for M2.
  2. A live site in on A server
    A staging site, which is clone site for live site and dev site is on B server.
  3. I can't find the way to migrate live site to dev site directly because they are on different DNS server.
    I should clone all of database to staging site and run migration tool, anyway.
  4. I already ran data mode from staging site to dev site.
  5. I restored database to staging site from live site newly to run delta mode for dev site.
  6. I tried delta mode migration. However i faced the same issue on post where Delta changes not migrated magento/data-migration-tool#316 is
  7. I will run your script under public_html which i wrote as
  • $conm1 = mysqli_connect("localhost","dev_m2"," ","dev_m2");
  • $conm2 = mysqli_connect("localhost","staging","","staging");

++ I have a question here : I'm a quite newbie to run script file.

  1. Where do i put this file? under usr/bin?
  2. What is the connect.php?

I will wait for your reply.

[email protected]

@MoMannn
Copy link
Owner

MoMannn commented Oct 3, 2017

This is what connect.php includes:

function conm1()
{
ob_start();

$host = "host";
$upImeBaza = "username";
$gesloBaza = "password";
$imeBaze = "databaseName";

$conn = mysqli_connect($host, $upImeBaza, $gesloBaza, $imeBaze);
mysqli_set_charset($conn, 'utf8');
ob_end_flush();
return $conn;
}

function conm2()
{
ob_start();

$host = "host";
$upImeBaza = "username";
$gesloBaza = "password";
$imeBaze = "databaseName";

$conn = mysqli_connect($host, $upImeBaza, $gesloBaza, $imeBaze);
mysqli_set_charset($conn, 'utf8');
ob_end_flush();
return $conn;
}

You can put the script anywhere on the server you just need to make sure it can connect to both databases.

I would advice you to connect directly M1 database and migrate via default migration tool since that makes things much simpler.

@MoMannn MoMannn closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants