Hello! I have a droplet on Ubuntu with RoR, rvm and MySQL are installed and configured.
I dont have the source code, itll should be downloaded by the other man, through the remote access.
He asked my to open him access to a new, none-root user, access to DB and the way, where he can download files with the RoR application.
What do I have to do?
Much thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
First step:
MAKE SURE YOU TRUST THEM
Next Step:
edit /etc/mysql/my.cnf change this line (if it exists)
bind-address = 127.0.0.1
To this:
#bind-address = 127.0.0.1
restart MySQL:
service mysql restart
add rule in the firewall:
ufw allow from any to any port 3306
Finally, grant them access in MySQL. This example assumes the user is “remote_user”, the password is “remote_password” and database is “local_db”. Change to match what you need. If you need full access:
GRANT ALL PRIVILEGES ON local_db.* to 'remote_user'@'%' IDENTIFIED BY 'remote_password'; FLUSH PRIVILEGES;
For most rights, but not full rights:
GRANT SELECT,UPDATE,INSERT ON local_db.* to 'remote_user'@'%' IDENTIFIED BY 'remote_password'; FLUSH PRIVILEGES;
For Read-Only:
GRANT SELECT ON local_db.* to 'remote_user'@'%' IDENTIFIED BY 'remote_password'; FLUSH PRIVILEGES;
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.