> Try > > alias 'mysql-start'='cd ~/Documents/mysql-5.0.51b-osx10.5-x86; > bin/mysqld_safe --defaults-file=my.cnf & cd ~-' > > It should start the process in the background and change directory. > Don't put the "&" and the ";" together. Just one or the other. > You could even put the job in the background and disown it, then change > the directory: > > bin/mysqld_safe --defaults-file=my.cnf & disown; cd ... > > This worked - thanks. That's interesting that the "&" ends the command so you don't need a ";", but I guess that makes sense. > I don't see very cleary the symbol after cd but I believe that should > be "cd -" not "cd ~-" if you want to return to your previous directory. > > I experimented with this, and it turns out that cd - will echo the directory that it's switching to, while cd ~- won't. They both take you to the same place, but cd ~- is quieter. > Or you could use the built-in sqlite3 with the built-in rails (that's > what I'm doing for my project) and not have to worry about jumping > through hoops. Since rails pretty much takes all of the manual > database configuration out of the picture, there's no sense swimming > up stream to get mysql to work unless your honestly prefer it. > > I didn't know sqlite3 was built in... But, I already got mysql installed and working, and I know more about using mysql than sqlite3, and the book that I have uses mysql, so it's easier that way. Thanks for the tip, though.
-------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/mailman/listinfo/uug-list
