Mysql数据库操作(命令行)

1 环境

  树莓派:

  mysql:

2  指令

  1. 以下是从命令行中连接mysql服务器的简单实例:

[root@host]# mysql -u root -p
Enter password:******

 或者:

pi@raspberrypi:~ $ sudo mysql

 

  查看数据库:

mysql> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| sakila             |
| sys                |
| world              |
+--------------------+
6 row in set (0.22 sec)

  

猜你喜欢

转载自www.cnblogs.com/lxz365/p/11909491.html