cloudlets.com.au logo
cloudlets
1300 839 448
  • Home
  • Get Started
  • Pricing
  • Environments
    • Wordpress
    • Magento
    • PHP
    • Node.JS
    • JAVA
    • Ruby
    • Python
    • Go
    • Knowledgebase
      Rebuild database mappings
      Posted by Will Kruss on 09 November 2020 08:15 AM

      If you discover that databases are not mapped properly within cPanel after a server transfer using the transfer tool, the mapping database can be rebuild using the following commands:

      cp -a /var/cpanel/databases{,.bak}
      for accounts in $(cut -d":" -f2 /etc/userdomains); do /usr/local/cpanel/scripts/rebuild_dbmap $accounts; done

      (0 vote(s))
      Helpful
      Not helpful

Help Desk Software by Kayako