I am moving my site to a completely different server with a different url. I'm using godaddy for linux hosting.
I backed up my site and my database onto my harddrive.
I changed my wordpress to my new url.
I uploaded my old site into a subdirectory.
I created a new database and uploaded my old database. (I also tried with a blank database and it did not work)
I updated wp-config.php to match my new settings.
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
/** Database Charset to use in creating database tables. */
/** The Database Collate type. Don't change this if in doubt. */
and I cannot get the database to connect. I've also tried changing hostname to the IP and localhost.