Title: Database errors and random issues
Last modified: September 27, 2017

---

# Database errors and random issues

 *  [bmtrnavsky](https://wordpress.org/support/users/bmtrnavsky/)
 * (@bmtrnavsky)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/database-errors-and-random-issues/)
 * Ok, my site is OLD. I’ve been using it since 2007 and back then I really didn’t
   know what I was doing. I’m currently on shared hosting but I’m fixing to move
   to a VPS. My site has random weird issues. sometimes links won’t work but a few
   minutes later they will. The menu on my mobile theme won’t load, pages load slowly
   I’m just not happy. I’ve gon into PHPMyAdmin and repaired and optimized my database
   and also reinstalled WordPress but I’m still having these issues.
 * When I migrate is my best bet to just start a new database, do a fresh install
   of WordPress and somehow migrate all or some of my data over?
 * I looked at my daughter’s site and she had 21 tables in her DB mine has 54 so
   I feel like there is a lot of old crap in there that could just be messing things
   up. If I start over what the best route to make it simple and not lose my posts,
   site structure etc…
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-errors-and-random-issues%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Pramod Pandey](https://wordpress.org/support/users/pramodpandey/)
 * (@pramodpandey)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/database-errors-and-random-issues/#post-9533986)
 * Hello [@bmtrnavsky](https://wordpress.org/support/users/bmtrnavsky/),
    I will
   help you with steps and you will not lose any of your posts.
    1. Take backup of your old site database from phpmyadmin
    2.  Copy all the source code from your hosting
    3.  In new hosting create new database and import the old database
    4.  Upload all your old source code to new hosting site
    5. Now goto wp-config.php file and change DB_NAME, DB_USER,DB_PASSWORD and DB_HOST
    6. Once your done with this. If your website url is changing then download this
       plugin [https://wordpress.org/plugins/velvet-blues-update-urls/](https://wordpress.org/plugins/velvet-blues-update-urls/).
       Which replace all the website old link with new link.
    7. Now goto admin panel and inside settings menu then permalinks and click on save
       changes that will generate new .htaccess.
 * After doing this steps everything will work fine.
 *  Thread Starter [bmtrnavsky](https://wordpress.org/support/users/bmtrnavsky/)
 * (@bmtrnavsky)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/database-errors-and-random-issues/#post-9535593)
 * How do I get rid of all of those old database tables? I can see things in there
   from themes I installed and no longer use. What will happen if I just export 
   my blog in the dashboard, export Yoast settings, then create a new database install
   WordPress, import the content from the export I did, import Yoast settings and
   then start fresh by setting up all my plugins manually? I have a TON of extra
   database tables and I am not sure why menus and whatnot are not working but I’d
   like to start as fresh as possible without losing posts and comments.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Database errors and random issues’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [reinstall](https://wordpress.org/support/topic-tag/reinstall/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [bmtrnavsky](https://wordpress.org/support/users/bmtrnavsky/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/database-errors-and-random-issues/#post-9535593)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
