首页 > 编程知识 正文

本地服务中没有mysql服务器(无法连接到本地的mysql服务器)

时间:2023-12-22 11:30:25 阅读:318817 作者:MJTE

本文目录一览:

电脑中没有mysql服务

一般电脑上都没有这个MYSQL服务,需要的话,请自行安装MYSQL软件,才会有这个服务的。

服务没有mysql

你安装了mysql没有,没有就先安装,安装好mysql以后,在bin目录下有个mysqld.exe,运行这个程序就可以添加mysql服务,但是运行这个程序需要使用参数,否则就会以命令行窗口形式启动MYSQL数据库,命令参数如下:

安装服务(MySQL)的命令:

mysqld.exe --install

可以指定服务的名字,例如:

mysqld.exe --install MySQL5

以上命令安装的服务是开机自动运行,如果开机不自动启动,那么参数如下:

mysqld.exe --install-manual

这样就需要使用下面的命令启动服务:

net start MySQL

删除服务的命令是:

mysqld.exe --remove

本地服务中没有mysql 也无法安装mysql

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

但是至少要安装客户端。

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

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

下面这种情况, 是 连接本机的 MySQL

前提是 本机安装了 MySQL , 并开启了 MySQL 的服务。

E:MySQLMySQL Server 5.1binmysql -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-win32binmysql -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五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。