Home  >  Article  >  Operation and Maintenance  >  How to check the version of mysql in docker

How to check the version of mysql in docker

尚
Original
2020-03-20 17:44:278806browse

How to check the version of mysql in docker

Check the version of mysql in docker:

1. Find the currently running container

# docker ps

2. Enter the mysql container (nothing in the command) With parentheses)

#docker exec -it (mysql的名字,或id) bash

3. Log in to mysql and enter your account and password (without parentheses in the command)

#mysql -u(root ) -p(abcd)

After successful login, the detailed information of the mysql will be displayed, including the version No.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to check the version of mysql in docker. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn