在本地不安装mysql 数据库 能连接吗?

就像连接access那样直接就连接了啊,难道access不需要服务器吗??

本地不安装mysql 服务器是可以的。

但是至少要安装客户端。

再至少, 也要安装一个 ODBC 的驱动。

否则 总不能什么驱动没有, 然后用 Access 连接 MySQL 吧?

下面这种情况, 是 连接本机的 MySQL
前提是 本机安装了 MySQL , 并开启了 MySQL 的服务。

E:\MySQL\MySQL Server 5.1\bin>mysql -u root -p
Enter password: ********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.50-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>

下面这种情况, 是 本机只有客户端, 没有运行服务程序。
连接的是 另外一台机器上面的 MYSQL 数据库, 本机是没有数据库的。

F:\mysql-4.1.10a-win32\bin>mysql -u test_user -h 192.168.56.101 -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 5.0.96-community-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
温馨提示:答案为网友推荐,仅供参考
第1个回答  2018-04-04

本地不安装mysql 服务器是可以的,但是至少要安装客户端, 也要安装一个  ODBC 的驱动。

下面这种情况, 是 连接本机的 MySQL
前提是 本机安装了  MySQL , 并开启了 MySQL 的服务。

E:\MySQL\MySQL Server 5.1\bin>mysql -u root -p
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.50-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>

下面这种情况, 是 本机只有客户端, 没有运行服务程序。
连接的是 另外一台机器上面的  MYSQL 数据库,  本机是没有数据库的。

F:\mysql-4.1.10a-win32\bin>mysql -u test_user -h 192.168.56.101 -p
Enter password: ************
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 5.0.96-community-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

本回答被网友采纳
第2个回答  2013-03-06
必须要有相应的mysql服务,若没有mysql服务器,你怎么连接数据库,你的本地没有安装,远程服务器器有,你可以使用navicat 之类的msyql客户端连接
第3个回答  2013-03-06
如果你有远程数据库,你可以连接远程数据库的。来自:求助得到的回答
第3个回答  2013-03-06
你不装数据库 谈什么连接?连哪?
相似回答