ajout exemple
This commit is contained in:
parent
f9d018dd46
commit
0c8c14916b
|
@ -321,7 +321,12 @@ Lister les droits pour tous les accès MySQL créés :
|
|||
|
||||
~~~
|
||||
# mysql -e "select concat('\'',User,'\'@\'',Host,'\'') as '' from mysql.user" | sort | \
|
||||
( while read user; do [ -z "$user" ] && continue; echo "-- $user"; mysql -e "show grants for $user"; done )
|
||||
( while read user; do [ -z "$user" ] && continue; echo "-- $user :"; mysql -e "show grants for $user"; done )
|
||||
|
||||
-- 'accesbase'@'localhost' :
|
||||
Grants for accesbase@localhost
|
||||
GRANT USAGE ON *.* TO 'accesbase'@'localhost' IDENTIFIED BY PASSWORD '*XXXX'
|
||||
GRANT ALL PRIVILEGES ON `base`.* TO 'accesbase'@'localhost'
|
||||
~~~
|
||||
|
||||
## Administration
|
||||
|
|
Loading…
Reference in a new issue