MySql没有响应

MySql没有响应,mysql,cygwin,easyphp,Mysql,Cygwin,Easyphp,可能和 所以有时候它会回应。。。但只有当你真的不在乎响应是什么,并且只有在mysql决定自燃之后 PHP无法在我的系统上编译,因此我现在使用EasyHP(我认为这与此无关) 任何想法。。。好像mysql无法与我的控制台正确通信。。。mysql是否使用非标准终端仿真????它在CentOS服务器上运行良好 这些命令看起来很有效,但是如果不能直接看到数据库的实际内容,则会严重阻碍任何调试问题。MySQL几乎与Cygwin的控制台完全不兼容 我不知道使用非标准终端行为是谁的错。。。(但我倾向于假设M

可能和

所以有时候它会回应。。。但只有当你真的不在乎响应是什么,并且只有在mysql决定自燃之后

PHP无法在我的系统上编译,因此我现在使用EasyHP(我认为这与此无关)

任何想法。。。好像mysql无法与我的控制台正确通信。。。mysql是否使用非标准终端仿真????它在CentOS服务器上运行良好


这些命令看起来很有效,但是如果不能直接看到数据库的实际内容,则会严重阻碍任何调试问题。

MySQL几乎与Cygwin的控制台完全不兼容

我不知道使用非标准终端行为是谁的错。。。(但我倾向于假设MySql是错误的,因为它只应该是基本的输入和输出,而且大多数其他本机程序都工作得很好)


为了在Windows上使用本机MySQL,您必须使用Windows命令提示符。

为cygwin安装MySQL客户端包解决了我的问题。

MySQL命令行问题与PHP有什么关系?也就是说,在没有看到实际的控制台级输出和理解您正在做什么的情况下,我不清楚您的问题是什么。您是否可以复制/粘贴准确的控制台输入输出而无需各种注释。由于它是locahost,您可以安全地省略指定协议和主机。为了节省一点时间或糟糕的格式设置,在前两种情况下,只需将其更改为使控制台输出更清晰。在查询之前,您似乎没有发出任何use*命令来选择您的数据库。@MikeBrant谢谢,但它仍然要求我“退出”才能看到任何结果。。。即使这样,错误也与正确命令的输出不同步
$ ./mysql -u root -proot --protocol=tcp --host=127.0.0.1
Warning: Using a password on the command line interface can be insecure.
> show databases;
[WAIT FOREVER AND NOTHING EVER HAPPENS]
> exit;
ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exit' at line 1
[uhhhhhhhh what?]
Database
information_schema
mysql
performance_schema
phpmyadmin
temp
othertables
[!?!]


$ ./mysql -u root -proot --protocol=tcp --host=127.0.0.1
Warning: Using a password on the command line interface can be insecure.
> UPDATE blah blah blah;
[NOTHING EVER]
exit;
ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exit' at line 1
[SO DID IT WORK????!!!!!!! WHAT THE!!!!!]

$ ./mysql -u root -proot --protocol=tcp --host=127.0.0.1
Warning: Using a password on the command line interface can be insecure.
> select * from blah blah blah
[NOTHING EVER]
> exit;
ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exit' at line 1
[UHHH so did it select zero lines???? one two.....   !!!!!!!]