I want to use MySQL/MariaDB from the command line. In Windows, when I type "mysqld" to start the database server, the command prompt to run the MySQL client and type SQL disappears. How do I start the server and interact with the database on the command line?
2 Answers
You're running mysqld (the MySQL daemon) successfully. It's a server and now serves MySQL.
After that, you need to run mysql, the MySQL client from the command-line interface for interacting with the server.
1 Comment
Peter Mortensen
Do you understand your own writing? Are you using machine translation (e.g., Google Translate)?
You can install the MySQL shell from here.
And then start it like this:
mysqlsh --uri user@localhost
Take a look at the official documentation
