mysql - enter the database to see the sql execution command

1. Enter the mysql command

Enter mysql:
	mysql -uroot -prs232345;
show all libraries
	show databases;
Choose a library:
	use library name;
Show all tables under the database:
	show tables;

 

2、show processlist;

    This command can view the sql being executed

 

3. Then you can kill the executing sql by kill

Guess you like

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