📜  如何在 Windows 中启动 mysql 服务器 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:36.403000             🧑  作者: Mango

代码示例3
option 1: Launch the MySQL Command-Line Client. To launch the client, enter the following command in a Command Prompt window: mysql -u root -p . The -p option is needed only if a root password is defined for MySQL. Enter the password when prompted.


Option 2:
Start MySQL Server on Windows

On Windows, you can start the MySQL Server using the mysqld program as follows:

First, open the Run dialog by pressing Windows+R keyboards:

Second, type cmd and press Enter:

Third, type mysqld and press Enter:

mysqld

If the bin folder is not in the Windows path environment, you can navigate to the bin folder e.g., C:\Program Files\MySQL\MySQL Server 8.0\bin\ and use the mysqld command.