背景:此问题会跟进我过去一周在此发布的其他2个问题。在为期2-3周的学习MySQL的过程中,并尝试获取Python股票信息报废程序以将数据提供给MySQL模式(数据库,表格),我遇到了严重的连接困难。我相信我现在已经发现了我的问题的根源。在我的Python脚本和MySQL表之间的通信过程中似乎发生了一些事情。我会进一步研究这个问题;但是,与此同时,在运行Python脚本后,我刷新了MySQL表以确认数据已成功写入;在那一点上,我得到的消息是,数据库的通信链接已经陨落。检查Windows服务显示已停止相应的服务。尝试重新启动Windows服务导致
我花了20-30分钟从Workbench中尝试各种重启方法,并专注于Windows服务无济于事。最后,在关闭所有打开的应用程序后,我在计算机上完全重启。完全重启后,一切都恢复正常。 MySQL Windows服务正在“运行”,并且重新建立了与MySQL数据库的通信。
所以,真正的问题是:
关闭我的计算机并重新启动重新建立通信的唯一方法,还是采用不那么激烈的方法?
我的设置参数很香草,除了我将MySQL程序放在我的D:驱动器而不是C:驱动器(为操作系统保留的SSD)。
系统: Xeon Ivy Bridge处理器上的Windows 8 64位,大型SSD,大型高清内存,双X射频视频卡,华硕Sabertooth MB(自建一年前)< / p>
软件: MySQL 5.7,完全安装,除了Visual Basic和Python3模块(运行2.7)。试图将上述硬件用作服务器和服务器。客户端。
TIA,道格
添加了部分日志两者的最后几个条目。
来自MySQL.err的
2013-11-13T02:05:27.793705Z 0 [Note] IPv6 is available.
2013-11-13T02:05:27.793705Z 0 [Note] - '::' resolves to '::';
2013-11-13T02:05:27.793705Z 0 [Note] Server socket created on IP: '::'.
2013-11-13T02:05:28.199955Z 0 [Note] Event Scheduler: Loaded 0 events
2013-11-13T02:05:28.199955Z 0 [Note] D:/Program Files/MySQL/MySQL Server 5.7/bin\mysqld: ready for connections.
Version: '5.7.2-m12-log' socket: '' port: 3306 MySQL Community Server (GPL)
2013-11-13T02:28:05.919396Z 1 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2013-11-13T02:28:23.592157Z 4 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2013-11-13T04:50:05.102535Z 2 [Note] Aborted connection 2 to db: 'unconnected' user: 'root' host: 'localhost' (Got an error reading communication packets)
2013-11-13T04:50:05.102535Z 5 [Note] Aborted connection 5 to db: 'unconnected' user: 'root' host: 'localhost' (Got an error reading communication packets)
来自MySQL.log
2013-11-11T23:17:49.240559Z 0 [Note] IPv6 is available.
2013-11-11T23:17:49.240559Z 0 [Note] - '::' resolves to '::';
2013-11-11T23:17:49.241559Z 0 [Note] Server socket created on IP: '::'.
2013-11-11T23:17:49.252567Z 0 [Note] Event Scheduler: Loaded 0 events
2013-11-11T23:17:49.253567Z 0 [Note] D:/Program Files/MySQL/MySQL Server 5.7/bin\mysqld: ready for connections.
Version: '5.7.2-m12-log' socket: '' port: 3306 MySQL Community Server (GPL)
2013-11-11T23:18:44.161120Z 2 [Note] Aborted connection 2 to db: 'mysql' user: 'root' host: 'localhost' (Got an error reading communication packets)
2013-11-11T23:18:44.161120Z 1 [Note] Aborted connection 1 to db: 'mysql' user: 'root' host: 'localhost' (Got an error reading communication packets)
2013-11-11T23:23:42.738555Z 4 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2013-11-12T01:32:37.841648Z 5 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2013-11-12T01:33:17.269224Z 8 [Note] Access denied for user 'root'@'localhost' (using password: NO)
2013-11-12T03:59:44.116187Z 6 [Note] Aborted connection 6 to db: 'unconnected' user: 'root' host: 'localhost' (Got an error reading communication packets)
2013-11-12T03:59:44.117186Z 9 [Note] Aborted connection 9 to db: 'tutorial' user: 'root' host: 'localhost' (Got an error reading communication packets)
2013-11-12T10:19:52.316073Z 18 [Note] Aborted connection 18 to db: 'tutorial' user: 'Doug' host: 'ISAAC' (Got timeout reading communication packets)
2013-11-12T11:43:28.296173Z 20 [Note] Aborted connection 20 to db: 'tutorial' user: 'root' host: 'localhost' (Got timeout reading communication packets)