Skip to content

Commit

Permalink
add mysql/create-user docs
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Najmabadi committed Oct 5, 2024
1 parent a232422 commit 5b6a2a8
Show file tree
Hide file tree
Showing 6 changed files with 528 additions and 0 deletions.
51 changes: 51 additions & 0 deletions public/casts/connect-to-mysql-via-mysql-cli.cast
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{"version": 2, "width": 202, "height": 15, "timestamp": 1728116557, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}}
[0.133254, "o", "\u001b[?2004h"]
[0.136163, "o", "\u001b]0;\u0007\u001b[01;32m\u001b[00m\u001b[01;34m~\u001b[00m "]
[0.384506, "o", "m"]
[0.548224, "o", "y"]
[0.686641, "o", "s"]
[0.791549, "o", "q"]
[0.839665, "o", "l"]
[0.949466, "o", " "]
[1.200046, "o", "-"]
[1.276317, "o", "-"]
[1.512314, "o", "h"]
[1.600086, "o", "o"]
[1.688679, "o", "s"]
[1.7832, "o", "t"]
[1.925111, "o", " "]
[2.426094, "o", "\u001b[7mfitz-roy.liara.cloud\u001b[27m"]
[2.925882, "o", "\u0007\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bfitz-roy.liara.cloud"]
[3.113446, "o", " "]
[3.613764, "o", "-"]
[3.889723, "o", "u"]
[4.019217, "o", " "]
[4.519619, "o", "r"]
[4.57964, "o", "o"]
[4.664292, "o", "o"]
[4.74138, "o", "t"]
[4.934298, "o", " "]
[5.368825, "o", "-"]
[5.512957, "o", "p"]
[6.013499, "o", "\u001b[7mIRQfi37gpcdVwumGhE77R\u001b[27m\u001b[7mQ\u001b[27m\u001b[7mvj\u001b[27m"]
[6.439222, "o", "\u0007"]
[6.816963, "o", " "]
[7.316749, "o", "-"]
[7.384213, "o", "-"]
[7.512232, "o", "p"]
[7.642831, "o", "o"]
[7.776781, "o", "r"]
[7.993682, "o", "t"]
[8.198025, "o", " "]
[8.697986, "o", "\u001b[7m34024\u001b[27m"]
[8.872261, "o", "\u0007\b\b\b\b\b34024"]
[9.196164, "o", " "]
[9.606765, "o", "-"]
[9.824764, "o", "D"]
[10.025098, "o", " "]
[10.52472, "o", "\u001b[7msharp_noyce\u001b[27m"]
[11.024952, "o", "\u0007\b\b\b\b\b\b\b\b\b\b\bsharp_noyce"]
[11.334277, "o", "\r\n\u001b[?2004l\r"]
[11.577248, "o", "\u001b(B\u001b[0;1mWelcome to the MariaDB monitor. Commands end with ; or \\g.\r\n"]
[11.579959, "o", "\u001b(B\u001b[m\u001b(B\u001b[0;1mYour MySQL connection id is 8\r\nServer version: 8.0.30 MySQL Community Server - GPL\r\n\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1mCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\r\n\r\n"]
[11.580395, "o", "\u001b(B\u001b[m\u001b(B\u001b[0;1mType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\n\u001b(B\u001b[mMySQL [sharp_noyce]> "]
53 changes: 53 additions & 0 deletions public/casts/connect-to-readonly-user-mysql.cast
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{"version": 2, "width": 202, "height": 16, "timestamp": 1728120718, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}}
[0.110168, "o", "\u001b[?2004h\u001b]0;\u0007\u001b[01;32m\u001b[00m\u001b[01;34m~\u001b[00m "]
[0.3474, "o", "m"]
[0.429104, "o", "y"]
[0.485586, "o", "s"]
[0.558033, "o", "q"]
[0.590681, "o", "l"]
[0.65983, "o", " "]
[0.808637, "o", "-"]
[0.857606, "o", "-"]
[1.191903, "o", "h"]
[1.272466, "o", "o"]
[1.29011, "o", "s"]
[1.383624, "o", "t"]
[1.427252, "o", " "]
[1.760849, "o", "\u001b[7mfitz-roy.liara.cloud\u001b[27m"]
[2.069618, "o", "\u0007\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bfitz-roy.liara.cloud"]
[2.266407, "o", " "]
[2.422653, "o", "-"]
[2.537784, "o", "u"]
[2.60585, "o", " "]
[2.938912, "o", "\u001b[7mreadonly_user\u001b[27m"]
[3.236676, "o", "\u0007"]
[3.236857, "o", "\b\b\b\b\b\b\b\b\b\b\b\b\breadonly_user"]
[3.457074, "o", " "]
[3.790321, "o", "-"]
[3.888939, "o", "p"]
[4.121223, "o", "p"]
[4.16047, "o", "a"]
[4.244984, "o", "s"]
[4.300921, "o", "s"]
[4.479931, "o", "w"]
[4.544776, "o", "o"]
[4.643878, "o", "r"]
[4.822689, "o", "d"]
[5.156024, "o", "\r\n"]
[5.488645, "o", "-"]
[5.529698, "o", "-"]
[5.625177, "o", "p"]
[5.714371, "o", "o"]
[6.047234, "o", "r"]
[6.175373, "o", "t"]
[6.22201, "o", " "]
[6.55547, "o", "\u001b[7m31736\u001b[27m"]
[6.889285, "o", "\u0007\b\b\b\b\b31736"]
[7.048767, "o", " "]
[7.198087, "o", "-"]
[7.337198, "o", "D"]
[7.450831, "o", " "]
[7.783741, "o", "\u001b[7mnaughty_varahamihira\u001b[27m"]
[8.117535, "o", "\r\n\u001b[?2004l\r"]
[8.161039, "o", "\u001b(B\u001b[0;1mWelcome to the MySQL monitor. Commands end with ; or \\g.\r\n"]
[8.162754, "o", "\u001b(B\u001b[m\u001b(B\u001b[0;1mYour MySQL connection id is 5\r\nServer version: 10.6.8-MySQL-1:10.6.8+mysql~focal MySQL.org binary distribution\r\n\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1mCopyright (c) 2000, 2018, Oracle, MySQL Corporation Ab and others.\r\n\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1mType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\n\u001b(B\u001b[mMySQL [naughty_varahamihira]> "]
151 changes: 151 additions & 0 deletions public/casts/create-limited-user-mysql.cast
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
{"version": 2, "width": 202, "height": 16, "timestamp": 1728125701, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}}
[0.107159, "o", "\u001b[?2004h\u001b]0;\u0007\u001b[01;32m\u001b[00m\u001b[01;34m\u001b[00m~ "]
[0.44102, "o", "\u001b[mmysql -u root -ppJMLsj4Pe3EYfwyPQTz5ynjb --port 32437 --host fi\u001b[\u001b[t\u001b[2\u001b[z-roy.liara.cloud\u001b[27m"]
[0.853255, "o", "\r\n\u001b[?2004l\r"]
[0.893529, "o", "\u001b(B\u001b[0;1mWelcome to the MariaDB monitor. Commands end with ; or \\g.\r\n"]
[0.894476, "o", "\u001b(B\u001b[m\u001b(B\u001b[0;1mYour MySQL connection id is 12\r\nServer version: 8.0.30 MySQL Community Server - GPL\r\n\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1mCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\r\n\r\n"]
[0.89492, "o", "\u001b(B\u001b[m\u001b(B\u001b[0;1mType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\n\u001b(B\u001b[mMySQL [(none)]> "]
[1.882551, "o", "C"]
[1.973866, "o", "R"]
[2.023905, "o", "E"]
[2.059118, "o", "A"]
[2.102037, "o", "T"]
[2.147342, "o", "E"]
[2.199978, "o", " "]
[2.534107, "o", "U"]
[2.56563, "o", "S"]
[2.642775, "o", "E"]
[2.704558, "o", "R"]
[2.814425, "o", " "]
[3.024607, "o", "'"]
[3.208482, "o", "l"]
[3.379289, "o", "i"]
[3.46114, "o", "m"]
[3.528633, "o", "i"]
[3.699593, "o", "t"]
[3.724954, "o", "e"]
[3.797818, "o", "d"]
[4.131739, "o", "_"]
[4.279379, "o", "u"]
[4.309706, "o", "s"]
[4.391659, "o", "e"]
[4.443116, "o", "r"]
[4.582334, "o", "'"]
[4.726492, "o", " "]
[4.949764, "o", "\r\u001b[43G"]
[5.095985, "o", "@"]
[5.264199, "o", "'"]
[5.597416, "o", "%"]
[5.708454, "o", "'"]
[5.945619, "o", " "]
[6.230455, "o", "I"]
[6.360432, "o", "D"]
[6.432455, "o", "E"]
[6.456065, "o", "N"]
[6.615879, "o", "T"]
[6.651178, "o", "I"]
[6.78085, "o", "F"]
[6.813968, "o", "I"]
[6.892037, "o", "E"]
[7.019493, "o", " "]
[7.165039, "o", "\r\u001b[57G"]
[7.196401, "o", "D"]
[7.245047, "o", " "]
[7.416529, "o", "B"]
[7.608708, "o", "Y"]
[7.73649, "o", " "]
[8.028834, "o", "'"]
[8.221733, "o", "p"]
[8.260835, "o", "a"]
[8.586949, "o", "s"]
[8.642931, "o", "s"]
[8.723164, "o", "w"]
[8.752537, "o", "o"]
[8.815796, "o", "r"]
[8.908992, "o", "d"]
[9.224947, "o", "'"]
[9.557804, "o", ";"]
[9.817336, "o", "\r\n"]
[9.8382, "o", "\u001b(B\u001b[0;1mQuery OK, 0 rows affected (0.064 sec)\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1m\r\n\u001b(B\u001b[mMySQL [(none)]> "]
[10.171375, "o", "G"]
[10.249304, "o", "R"]
[10.275567, "o", "A"]
[10.389773, "o", "N"]
[10.486022, "o", "T"]
[10.566034, "o", " "]
[10.830021, "o", "S"]
[11.025748, "o", "E"]
[11.118613, "o", "L"]
[11.165869, "o", "E"]
[11.375714, "o", "C"]
[11.416828, "o", "T"]
[11.613136, "o", ","]
[11.654698, "o", " "]
[11.930979, "o", "I"]
[11.99791, "o", "N"]
[12.059651, "o", "S"]
[12.238888, "o", "E"]
[12.312005, "o", "R"]
[12.38476, "o", "T"]
[12.546497, "o", ","]
[12.575657, "o", " "]
[12.909436, "o", "U"]
[13.011414, "o", "P"]
[13.065828, "o", "D"]
[13.154237, "o", "A"]
[13.191436, "o", "T"]
[13.239473, "o", "E"]
[13.361585, "o", " "]
[13.499257, "o", "O"]
[13.599635, "o", "N"]
[13.681251, "o", " "]
[14.014153, "o", "vigorous_lovelace"]
[14.330887, "o", " "]
[14.664361, "o", "\r\u001b[66G"]
[14.813217, "o", "."]
[15.146725, "o", "employees"]
[15.479768, "o", " "]
[15.813568, "o", "T"]
[15.855669, "o", "O"]
[16.032017, "o", " "]
[16.365464, "o", "'"]
[16.608588, "o", "l"]
[16.69648, "o", "i"]
[16.760052, "o", "m"]
[16.82981, "o", "i"]
[17.021063, "o", "t"]
[17.04956, "o", "e"]
[17.119665, "o", "d"]
[17.392708, "o", "_"]
[17.623604, "o", "u"]
[17.660731, "o", "s"]
[17.748923, "o", "e"]
[17.809733, "o", "r"]
[17.809733, "o", "'"]
[17.809733, "o", "@"]
[17.809733, "o", "'"]
[17.809733, "o", "%"]
[18.058443, "o", "' \b"]
[18.392057, "o", ";"]
[18.6078, "o", "\r\n"]
[18.640423, "o", "\u001b(B\u001b[0;1mQuery OK, 0 rows affected (0.099 sec)\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1m\r\n"]
[18.640633, "o", "\u001b(B\u001b[mMySQL [(none)]> "]
[18.974684, "o", "F"]
[19.007058, "o", "L"]
[19.119287, "o", "U"]
[19.230618, "o", "S"]
[19.259927, "o", "H"]
[19.337095, "o", " "]
[19.670487, "o", "P"]
[19.819232, "o", "R"]
[19.940673, "o", "I"]
[20.177806, "o", "V"]
[20.354219, "o", "I"]
[20.655475, "o", "L"]
[20.769945, "o", "E"]
[20.885565, "o", "G"]
[20.914826, "o", "E"]
[20.999377, "o", "S"]
[21.23282, "o", ";"]
[21.494903, "o", "\r\n"]
[21.505119, "o", "\u001b(B\u001b[0;1mQuery OK, 0 rows affected (0.032 sec)\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1m\r\n\u001b(B\u001b[mMySQL [(none)]> "]
129 changes: 129 additions & 0 deletions public/casts/create-readonly-user-in-mysql.cast
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{"version": 2, "width": 197, "height": 15, "timestamp": 1728119138, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}}
[0.109371, "o", "\u001b[?2004h\u001b]0;: ~/news\u0007\u001b[01;32m\u001b[00m\u001b[01;34m~ \u001b[00m"]
[0.359893, "o", "\u0007\u001b[01;32m\u001b[00m\u001b[01;34m\u001b[00mmysql -u root -pMbQDkgpiutl5xqPlQL05dX5w --port 31736 --host fitz-roy.liara.cloud"]
[0.470511, "o", "\r\n\u001b[?2004l"]
[0.720492, "o", "\u001b(B\u001b[mMySQL [(none)]> "]
[0.970514, "o", "C"]
[1.028642, "o", "R"]
[1.07141, "o", "E"]
[1.074917, "o", "A"]
[1.325555, "o", "T"]
[1.345391, "o", "E"]
[1.393173, "o", " "]
[1.511526, "o", "U"]
[1.534774, "o", "S"]
[1.597064, "o", "E"]
[1.645225, "o", "R"]
[1.674863, "o", " "]
[1.816732, "o", "'"]
[2.014345, "o", "r"]
[2.064792, "o", "e"]
[2.091623, "o", "a"]
[2.221153, "o", "d"]
[2.361934, "o", "o"]
[2.426861, "o", "n"]
[2.49567, "o", "l"]
[2.745878, "o", "y"]
[2.995627, "o", "_"]
[3.152896, "o", "u"]
[3.17864, "o", "s"]
[3.237137, "o", "e"]
[3.343215, "o", "r"]
[3.538017, "o", "'"]
[3.787893, "o", "@"]
[3.868359, "o", "'"]
[4.041595, "o", "%"]
[4.114329, "o", "'"]
[4.36462, "o", " "]
[4.579077, "o", "I"]
[4.625732, "o", "D"]
[4.683977, "o", "E"]
[4.719389, "o", "N"]
[4.833067, "o", "T"]
[4.88667, "o", "I"]
[5.070061, "o", "F"]
[5.151495, "o", "I"]
[5.230539, "o", "E"]
[5.284213, "o", "D"]
[5.348072, "o", " "]
[5.598889, "o", "B"]
[5.666424, "o", "Y"]
[5.736962, "o", " "]
[5.986748, "o", "'"]
[6.212768, "o", "p"]
[6.235201, "o", "a"]
[6.291501, "o", "s"]
[6.32485, "o", "s"]
[6.400483, "o", "w"]
[6.440643, "o", "o"]
[6.532514, "o", "r"]
[6.59653, "o", "d"]
[6.756164, "o", "'"]
[7.006244, "o", ";"]
[7.227614, "o", "\r\n"]
[7.232403, "o", "\u001b(B\u001b[0;1mQuery OK, 0 rows affected (0.020 sec)\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1m\r\n\u001b(B\u001b[mMySQL [(none)]> "]
[7.483151, "o", "G"]
[7.546423, "o", "R"]
[7.564204, "o", "A"]
[7.628314, "o", "N"]
[7.702761, "o", "T"]
[7.748406, "o", " "]
[7.999049, "o", "S"]
[8.112675, "o", "E"]
[8.147491, "o", "L"]
[8.16552, "o", "E"]
[8.293217, "o", "C"]
[8.380917, "o", "T"]
[8.397043, "o", " "]
[8.505724, "o", "O"]
[8.587038, "o", "N"]
[8.662163, "o", " "]
[8.912138, "o", "naughty_varahamihira"]
[9.162733, "o", "."]
[9.412256, "o", "*"]
[9.620347, "o", " "]
[9.870266, "o", "T"]
[9.892386, "o", "O"]
[9.968068, "o", " "]
[10.218009, "o", "'"]
[10.468509, "o", "r"]
[10.527946, "o", "e"]
[10.670298, "o", "a"]
[10.747819, "o", "d"]
[10.915237, "o", "o"]
[10.978242, "o", "n"]
[11.035803, "o", "l"]
[11.106466, "o", "y"]
[11.312493, "o", "_"]
[11.471489, "o", "u"]
[11.51619, "o", "s"]
[11.623936, "o", "e"]
[11.705884, "o", "r"]
[11.956275, "o", "'"]
[12.161989, "o", "@"]
[12.41203, "o", "'"]
[12.649582, "o", "%"]
[12.774362, "o", "'"]
[13.024226, "o", ";"]
[13.274505, "o", "\r\n"]
[13.278858, "o", "\u001b(B\u001b[0;1mQuery OK, 0 rows affected (0.019 sec)\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1m\r\n\u001b(B\u001b[mMySQL [(none)]> "]
[13.528757, "o", "F"]
[13.564262, "o", "L"]
[13.634522, "o", "U"]
[13.669149, "o", "S"]
[13.706081, "o", "H"]
[13.778099, "o", " "]
[14.028697, "o", "P"]
[14.09059, "o", "R"]
[14.444579, "o", "I"]
[14.694927, "o", "V"]
[14.769874, "o", "I"]
[14.892097, "o", "L"]
[14.964561, "o", "E"]
[15.11292, "o", "G"]
[15.134574, "o", "E"]
[15.204529, "o", "S"]
[15.454791, "o", ";"]
[15.540392, "o", "\r\n"]
[15.541129, "o", "\u001b(B\u001b[0;1mQuery OK, 0 rows affected (0.004 sec)\r\n\u001b(B\u001b[m\u001b(B\u001b[0;1m\r\n\u001b(B\u001b[mMySQL [(none)]> "]

5 changes: 5 additions & 0 deletions src/components/Sidebar/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -3070,6 +3070,11 @@ export default {
icon: <GoVersions />,
link: "/dbaas/mysql/choose-version"
},
{
title: "ایجاد و مدیریت کاربر جدید",
icon: <GoKey />,
link: "/dbaas/mysql/create-user"
},
{
hr: true
},
Expand Down
Loading

0 comments on commit 5b6a2a8

Please sign in to comment.