Is it possible to get rid of mysql on local machine - because it is using a lot of resources - and connect to staging server's db when I need to work on front-end, etc? Can you describe how to do it? Thanks!
You can connect by specifying the required credentials (username,password) along with host ip
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: app_development
pool: 5
username: root
password: xxxxxxxxxx
host: 192.168.x.xxx
socket: /tmp/mysql.sock
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.