Question: I am trying to delay the link attrib so that it is applied after the content has faded out. But adding a timeout function does not work. Any ideas?

```
$(function () {
    $(".layout a").click(function () {
        setTimeout(function () { $("link:first").attr("href", $(this).attr('rel')); }, 500)
    $.cookie("Layout", $(this).attr('name'), { expires: 365, path: '/media', secure: true });
    $('.content, .searchresults').fadeOut(500).delay(500).fadeIn(275);
        window.scrollTo(0, 0); // Scroll Window back to Top
        return false;
    });
});

```

Answer: 
If you are concerned with stomping over existing rows, you need to mysqldump it as follows:

```
MYSQLDUMP_OPTIONS="--no-create-info --skip-extended-insert"
mysqldump -uroot --ppassword ${MYSQLDUMP_OPTIONS} --databases mydatabase > C:\mydatabase.sql

```

This will do the following:

* remove `CREATE TABLE` statements and use only INSERTs.
* It will INSERT exactly one row at a time. This helps mitigate rows with duplicate keys

With the mysqldump performed in this manner, now you can import like this

```
mysql -uroot -p --force -Dtargetdb < c:\mydatabase.sql

```

Give it a Try !!!

**WARNING** : Dumping with `--skip-extended-insert` will make the mysqldump really big, but at least you can control each duplicate done one by one. This will also increase the length of time the reload of the mysqldump is done.
I would edit the mydatabase.sql file in a text editor, dropping the lines that reference dropping tables or deleting rows, then manually import the file normally using the `mysql` command as normal.

```
mysql -u username -p databasename < mydatabase.sql

```

The [mysqlimport](http://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html) command is designed for dumps created with the mysql command `SELECT INTO OUTFILE` rather than direct database dumps.