MYSQL operation under Linux

1. Check whether there is mysql under Linux, if not, please install it. The version must be above 5.5, the newer the better!

2. Create a database under mysql, the name is testdb, there is a table linuxtest, and the table fields are as follows:

userid (own student ID), varchar 50, keyword

mysql_version (current mysql version number), varchar 50

Enter select version()

linux_version (uname -a return value for current distribution), varchar 100

Type  uname -a

eth0_HW (eth0 physical address), varchar 50

Type cat /sys/class/net/eth0/address

3. Insert the corresponding data to the table linuxtest

4. Export the sql file of the database and name it student number.sql

5. Submit the sql file

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325727319&siteId=291194637