ps aux | grep ruby ps -awwx | grep mysql# find running app on port number
ps aux | grep 12005# kill process, first number listed follow above result
kill XXXXX
ps aux | grep ruby ps -awwx | grep mysql# find running app on port number
ps aux | grep 12005# kill process, first number listed follow above result
kill XXXXX
mysqldump --default-character-set=latin1 --opt -h localhost -u export -p export > export.sql replace "CHARSET=latin1" "CHARSET=utf8" "SET NAMES latin1" "SET NAMES utf8" < export.sql > export-utf8.sql mysql --user=root -p --host=localhost --default-character-set=utf8 cms_production < export-utf8.sql
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
<div id="social"></div>
mate ~/.profileEdit your path in .profile adding /Applications/MAMP/Library/bin:$PATH
export PATH="/usr/local/bin:/usr/local/mysql/bin:/Applications/MAMP/Library/bin:$PATH"Also after you start MAMP to use mysql on command line :
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]--> <!--[if IE 7 ]> <body class="ie7"> <![endif]--> <!--[if IE 8 ]> <body class="ie8"> <![endif]--> <!--[if IE 9 ]> <body class="ie9"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->
// set Search input to default text
$('#s').attr('value','Search');
// clear search input form
$('#s').focus(function(){
$('#s').val('');
});