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
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/huangbojun2008/article/details/89741897
今日推荐