如何使用 xampp 访问 MySQL 命令行?

How can I access the MySQL command line with xampp?

我正在尝试使用此命令从 xampp 访问 MYSQL:

mysql.exe -u root --password

这没有任何问题。但是,因为我的电脑里有两个Mysql(其中一个是独立的(它的端口是3306),另一个安装了xampp(端口3307))。问题是因为当我从 xampp 的文件夹访问 Mysql 然后我验证端口时,它说端口是 3306,而不是 3307。

我做这一切是因为我需要知道 mysql 在 xampp 中的版本。

所以我想知道如何在xampp中访问mysql。

I'm doing all of this because I need to know the mysql's version in xampp.

怎么样

SELECT VERSION()

这就是你需要的版本。