Mac-- management mysql, redis services commonly used commands

# # Start MySQL service 
sudo / usr / local / MySQL / Support-Files / mysql.server Start 

# # Stop the MySQL service 
sudo / usr / local / MySQL / Support-Files / mysql.server STOP 

# # Restart MySQL service 
sudo / usr /local/mysql/support-files/mysql.server restart

Modify the mysql root Password: empty by default

https://www.cnblogs.com/xingxiangyi/p/9334694.html
https://www.cnblogs.com/nyfz/p/8514131.html

 

# Mounting Redis 
BREW the install Redis
 # start the server 
redis- Server
 # commond + a n-opening addition cmd 
redis- CLI
 # A prompt port 6379, described successful connection 
# detection service is started, Run 
of ping
 # obtain successful results described pong

 

Guess you like

Origin www.cnblogs.com/lutt/p/11892776.html