win7中怎么连接MySQL服务器?

win7中怎么连接MySQL服务器?,第1张

你先运行 CMD
然后 进入到那个 mysql 的目录下, 再运行。
例如:
D:\>cd mys
D:\mysql-5150-win32>cd bin
D:\mysql-5150-win32\bin>mysql
Welcome to the MySQL monitor Commands end with ; or \g
Your MySQL connection id is 1
Server version: 5150-community MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates All rights reserved
This software comes with ABSOLUTELY NO WARRANTY This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help Type '\c' to clear the current input statement
mysql> use test
Database changed

mysql -u用户名 -h主机名 -p
前提是服务器的mysql上有该用户,以及对应的IP
登入mysql服务器上执行
grant all on test to 用户名@‘客户机IP’ identified by '密码' ;
flush privileges; #刷新权限表,让所做修改生效
上面指令的意思是 将test这个数据库的全部内容以及全部的 *** 作权限赋权给从特定IP上登入到本服务器的用户。

区别:

1MySQL Community Server 这是主程序,也是你最需要的,需要收费,另一款不需要收费;

2MySQL on Windows (Installer & Tools) 这是一个傻瓜化的安装包,包括了数据库和工具。
所以你只要安装最后一个就可以了;

3MySQL Community Server是开源免费的,这也是我们通常用的MySQL的版本。根据不同的 *** 作系统平台细分为多个版本。

4如果您的业务符合以下任何一个需求特征,那么推荐您采用MySQL企业版解决方案:


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/13467371.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-08-12
下一篇 2023-08-12

发表评论

登录后才能评论

评论列表(0条)

保存