1.1 Connect via SSH. Mysql root password is shown on login. Run mysql
.
1.2 Create a new database with CREATE DATABASE db_name;
.
1.3 Create a new user with CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'
.
1.4 Grant permissions to user with GRANT ALL PRIVILEGES ON db_name.* TO 'username'@'localhost';
.
1.5 When finished run FLUSH PRIVILEGES;
.
Last active
March 4, 2017 16:28
-
-
Save aerobless/a593eac418974b8a87b60f3c3c69bc2e to your computer and use it in GitHub Desktop.
Digital Ocean: Setup a new LAMP site
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment