Mysql database operations (command line)

1 environment

  raspberry pie:

  mysql:

 

2 instruction

 

  1. The following example is a simple command line connecting mysql server:

 

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

 or:

pi@raspberrypi:~ $ sudo mysql

 

 

  View database:

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

  

Guess you like

Origin www.cnblogs.com/lxz365/p/11909491.html