We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75680b4 commit 1b20eb6Copy full SHA for 1b20eb6
Readme.md
@@ -37,6 +37,24 @@ fi
37
- if certbot fails run `sudo certbot --apache --debug-challenges`
38
- or list all loaded vhosts `apache2ctl -S`
39
40
+# MySQL settings a new user and new database
41
+
42
+- create a new user `mysql -uroot -p`
43
+- list all users `SELECT User, Host FROM mysql.user;`
44
+-
45
+```sql
46
+-- Create the user
47
+CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'user_password';
48
49
+-- Grant all privileges on a specific database
50
+GRANT ALL PRIVILEGES ON database_name.* TO 'newuser'@'localhost';
51
52
+-- Apply changes
53
+FLUSH PRIVILEGES;
54
55
+```
56
+- import db `mysql -u username -p database_name < /path/to/your/file.sql`
57
58
59
60
### Extend the terminal idle time / disable automatic logout
0 commit comments