本地计算机上的MySQL服务启动然后停止ERROR

时间:2017-07-21 20:43:34

标签: mysql service

我已经通过运行df_montly_service = df_mem.groupby([pd.Grouper(freq='M'),'service']).agg(['sum','count']) Traceback (most recent call last): File "C:/Users/Karunyan/PycharmProjects/646W/import_data.py", line 24, in <module> df_montly_service = df_mem.groupby([pd.Grouper(freq='M'),'service']).agg(['sum','count']) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\generic.py", line 3991, in groupby **kwargs) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 1511, in groupby return klass(obj, by, **kwds) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 370, in __init__ mutated=self.mutated) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 2484, in _get_grouper if not isinstance(gpr, Grouping) else gpr File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\groupby.py", line 2262, in __init__ grouper = self.grouper._get_binner_for_grouping(self.obj) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\tseries\resample.py", line 1102, in _get_binner_for_grouping grouper = grouper.take(indexer) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\tseries\base.py", line 379, in take na_value=tslib.iNaT) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\indexes\base.py", line 1539, in _assert_take_fillable taken = values.take(indices) IndexError: index 142 is out of bounds for size 142 df_mem.head(15) member service option method amount ccy date 2017-07-01 20:18:00 Names_coded_out Unlimited Gold subscription payment credit card 209.05 cad 2017-07-01 19:07:00 Names_coded_out Unlimited Gold subscription payment credit card 209.05 cad 2017-07-01 18:50:00 Names_coded_out Bronze (8/mth) subscription payment credit card 152.55 cad 2017-07-01 18:33:00 Names_coded_out Unlimited Gold subscription payment credit card 209.05 cad 2017-07-01 18:15:00 Names_coded_out Unlimited Gold subscription payment credit card 209.05 cad 2017-07-01 18:14:00 Names_coded_out Bronze (8/mth) subscription payment credit card 152.55 cad 2017-07-01 16:50:00 Names_coded_out Unlimited Gold subscription payment credit card 209.05 cad 2017-07-01 16:23:00 Names_coded_out Open Gym subscription payment failed credit card 73.45 cad 2017-07-01 16:09:00 Names_coded_out Unlimited Gold subscription payment credit card 209.05 cad 2017-07-01 15:22:00 Names_coded_out Silver (12/mth) $165+HST subscription prorate credit card 179.00 cad 2017-07-01 15:20:00 Names_coded_out Silver subscription payment credit card 186.45 cad 2017-07-01 14:36:00 Names_coded_out Unlimited Gold subscription payment credit card 209.05 cad 2017-07-01 14:14:00 Names_coded_out Unlimited Gold subscription payment credit card 209.05 cad 2017-07-01 14:06:00 Names_coded_out Silver subscription payment credit card 186.45 cad 2017-07-01 13:57:00 Names_coded_out Unlimited Gold subscription payment credit card 209.05 cad 安装了MySQL服务。 MySQL服务已成功安装,但问题是我无法运行MySQL服务,它在尝试运行时总是给我这个错误:  mysqld --install

我尝试通过运行The MYSQL service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.来解决这个问题,但是遇到了这些错误:

2017-07-21T20:41:06.032938Z 0 [警告]不推荐使用具有隐式DEFAULT值的TIMESTAMP。请使用--explicit_defaults_for_timestamp服务器选项(有关详细信息,请参阅文档)。

2017-07-21T20:41:06.034939Z 0 [错误] - 指定了初始化但数据目录中包含文件。中止。

2017-07-21T20:41:06.042944Z 0 [ERROR]正在中止

请帮忙(:

谢谢!

1 个答案:

答案 0 :(得分:0)

mysqld --initialize之后,尝试重新启动计算机。它对我有用。