Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Duplicated database causes memory error when connecting.

Discussion in 'Database Discussion' started by Zoee, Jun 23, 2018.

  1. Zoee

    Zoee Member

    Joined:
    Sep 30, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hi all, we are trying to copy a database on to a development URL so we can make some upgrades to a website. The website is WordPress, and whenever we copy the database (whether using WP Migrate or directly in PHPMyAdmin), then connect the website to it, the server "falls over". I've consoled in and it repeats this error every 5 seconds or so:

    [357357.037375] Out of memory: Kill process 9920 (php) score 22 or sacrifice child

    What's reported is much larger but I can't figure out where it starts and ends every time it loads, as it just keeps repeating itself until I can manage to restart MySQL through the WHM admin panel.

    We've tested this on two Virtual Private Servers, both running CentOS 6 with 2GB RAM. I've tried cleaning up and optimising the database too, with no luck.

    What's odder is the live site is absolutely fine!!

    I'm not particularly seasoned at server management so any help would be much appreciated!
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    You can clone the website into the subdomain manually.

    # mysqldump DB_name > DB_name.sql
    --> DB Backup.

    create the new database for the subdomain

    # mysql New_DB_name < DB_name.sql
    --> DB Restore.

    Copy the contents as it is from main domain to subdomain..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Zoee,

    Can you run the "mysqladmin processlist" command when this happens and let us know the output? Ensure to replace identifying information with examples.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice