Archive for May, 2008

How to quickly import/export MySQL database scripts

# Export MySQL Database Script

mysqldump -uroot -p db_name_1 > dump_name.sql

# Import MySQL Database Script

mysql -uroot -p db_name_2 < dump_name.sql

Importing a MySQL database script (.sql) will potentially overwrite data!  (That’s what it’s supposed to do.)  Make sure you know that what you’re doing is safe!-)

Done!

What rubygems does Mac OS X Leopard come pre-installed with?

What does a mac/linux developer’s ~/.bashrc file look like?

Well, here’s an example of mine.  Run ‘mate ~/.bashrc’ to view and edit the file, then save it and run ’source ~/.bash_profile’ (on Mac) or whatever your shell equivalent is.  Then, you can just use the aliases ‘bashrc’ and ’sourceb’ if you choose to set these aliases as I have.

Read the rest of this entry »