mysql点击都是一闪而过是为什么

mysql点击都是一闪而过是为什么,第1张

写在前面:mysql命令行工具的正常运行,需要有前提,就是MYSQL服务器正常运行。

然后:

什么叫mysql命令行工具?以WIN系统来说,CDM就是一个命令行工具。

什么叫mysql服务器?mysql服务器,简单点理解就等价于mysqld.exe,一般在mysql5.x.x/bin/目录下。

最后:进入bin目录,启动mysqld.exe,按ctrl+alt+del键,查看是否有mysqld.exe程序在运行。【有,正常|没有,请重启电脑再试】然后启动bin目录下的mysql.exe,应该会成功的。码字不容易,

解决办法:

1、碰到这种情况,找到my.ini配置文件

2、找到这一部分

# Installation Instructions

# ----------------------------------------------------------------------

#

# On Linux you can copy this file to /etc/my.cnf to set global options,

# mysql-data-dir/my.cnf to set server-specific options

# (@localstatedir@ for this installation) or to

# ~/.my.cnf to set user-specific options.

#

# On Windows you should keep this file in the installation directory

# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To

# make sure the server reads the config file use the startup option

# "--defaults-file".

#

# To run run the server from the command line, execute this in a

# command line shell, e.g.

# mysqld --defaults-file="c:\Program Files\MySQL\MySQL Server X.Y\my.ini"

#

# To install the server as a Windows service manually, execute this in a

# command line shell, e.g.

# mysqld --install MySQLXY --defaults-file="c:\Program Files\MySQL\MySQL Server X.Y\my.ini"

#

# And then execute this in a command line shell to start the server, e.g.

# net start MySQLXY

#

#

# Guildlines for editing this file

3、如果My.ini实际是在D盘,则将C:改为D: 如下

# Installation Instructions

# ----------------------------------------------------------------------

#

# On Linux you can copy this file to /etc/my.cnf to set global options,

# mysql-data-dir/my.cnf to set server-specific options

# (@localstatedir@ for this installation) or to

# ~/.my.cnf to set user-specific options.

#

# On Windows you should keep this file in the installation directory

# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To

# make sure the server reads the config file use the startup option

# "--defaults-file".

#

# To run run the server from the command line, execute this in a

# command line shell, e.g.

# mysqld --defaults-file="d:\Program Files\MySQL\MySQL Server X.Y\my.ini"

#

# To install the server as a Windows service manually, execute this in a

# command line shell, e.g.

# mysqld --install MySQLXY --defaults-file="d:\Program Files\MySQL\MySQL Server X.Y\my.ini"

#

# And then execute this in a command line shell to start the server, e.g.

# net start MySQLXY

#

#

# Guildlines for editing this file


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

原文地址: http://outofmemory.cn/zaji/5898538.html

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

发表评论

登录后才能评论

评论列表(0条)

保存