MYSQL+raspberry建立測試成功

pi@raspberrypi:~ $ sudo mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 7
Server version: 10.1.38-MariaDB-0+deb9u1 Raspbian 9.0

Copyright © 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MariaDB [(none)]> create user ‘root’@‘192.168.87.100’ identified by ‘MYSQL’;
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> grant all priviledges on . to ‘root’@‘192.168.87.100’ with grant option;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘priviledges on . to ‘root’@‘192.168.87.100’ with grant option’ at line 1
MariaDB [(none)]> grant all privileges on . to ‘root’@‘192.168.87.100’ with grant option;
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> exit
Bye
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章