MySQL 8.4 · Connecting

Connect to a specific host and database

Open the client on a given host, port and database.

mysql -h 127.0.0.1 -P 3306 -u root -p mydb

Official MySQL 8.4 documentation

More connecting commands

All connecting commands · MySQL 8.4 cheatsheet

Was this page helpful?