简体   繁体   English

如何在终端或GUI中访问mysql社区服务器?

[英]How can I access the mysql community server in terminal or by GUI?

I downloaded the ' MySQL Community Server ' and installed it on my macOS (10.13.6). 我下载了“ MySQL Community Server ”并将其安装在我的macOS(10.13.6)上。

How can I access the MySLQ Community Server? 如何访问MySLQ社区服务器? Where is it? 它在哪里? I can only find that there is a new mySQL pane in the 'system preference'. 我只能在“系统偏好设置”中找到一个新的mySQL窗格。

The terminal shows me: command not found as below: 终端向我显示:找不到命令,如下所示:

$mysql $ mysql的

-bash: mysql: command not found -bash:mysql:找不到命令

I'm new about this. 我是新来的。 Is the right usage of mySQL by GUI is firstly install the 'mySQL Community Server' and then install the 'MySQL Workbench'? 通过GUI正确使用mySQL是先安装“ mySQL Community Server”,然后再安装“ MySQL Workbench”吗?

Typically, the MySQL server (MySQL Community Server) can work with terminal. 通常,MySQL服务器(MySQL Community Server)可以与终端一起使用。 Use the mysql command in terminal after the path of mysql ( /usr/local/mysql/bin ) has been added into PATH(modify the '~/.bash_profile' file for instance). 将mysql( /usr/local/mysql/bin )的路径添加到PATH之后,在终端中使用mysql命令(例如,修改'〜/ .bash_profile'文件)。

If one needs GUI, download a MySQL Workbench, and let it connect to the MySQL Server. 如果需要GUI,请下载MySQL Workbench,然后将其连接到MySQL Server。 The operations done by commands in the terminal can be done via the UI of MySQL Workbench. 终端中命令执行的操作可以通过MySQL Workbench的UI完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM