Setting MySQL, Apache dan PHP from the Command Line Terminal on Mac OS X 10.7

Untuk menghidupkan mysql server dalam Mac OS X 10.7 gunakan command line :
sudo /usr/local/mysql/support-files/mysql.server start
Untuk mematikan mysql server dalam Mac OS X 10.7 gunakan command line :
sudo /usr/local/mysql/support-files/mysql.server stop
Untuk restart mysql server dalam Mac OS X 10.7 gunakan command line :
sudo /usr/local/mysql/support-files/mysql.server restart
Buat user baru di mysql server dalam Mac OS X 10.7 , contoh user : sumar43 pass : rahasia, pada command line :
#  /usr/local/mysql/bin/mysql -hlocalhost -uroot -p[your password root]
mysql> create user 'sumar43'@'localhost' identified by 'rahasia';
mysql> grant all privileges on *.* to 'sumar43'@'localhost' identified by 'rahasia';

Konfigurasi php.ini dalam Mac OS X 10.7 , pada command line :
 # nano usr/local/php5-20130127-205115/lib/php.ini
Start Apache dalam Mac OS X 10.7 , pada command line :
# apachectl start (On Apache Server)
# apachectl stop (Off Apache Server)
# apachectl restart (Refresh Apache Server) 
 
 
 

Tidak ada komentar: