我的本地MySQL 5.5服务器突然停止在Windows SP3上运行。
我还安装了WAMP Apache和WAMP MySQL,但是WAMP MySQL没有运行。错误日志显示:
我尝试将端口从3306更改为3307,但服务仍未启动,从而产生错误:
事件查看器显示:
显然,只有当服务器运行时,我才能运行mysql_upgrade。如果服务无法启动,我如何创建“mysql.host”?
我卸载并重新安装了MySQL服务器,在安装后的配置向导中,我收到了一个错误:服务无法启动。错误:0。
从这里开始我该怎么做?
发布于 2011-07-28 14:42:12
运行以下命令
mysql_install_db发布于 2015-12-21 09:28:22
在windows上开始之前初始化mysql。
mysqld --initialize发布于 2011-07-29 18:35:43
您需要做的第一件事是运行以下命令:
use mysql
show tables;请注意不同之处
MySQL5.0在MySQL模式中有17个表
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| func |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| proc |
| procs_priv |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+MySQL5.1在MySQL模式中有23个表
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| event |
| func |
| general_log |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| ndb_binlog_index |
| plugin |
| proc |
| procs_priv |
| servers |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+MySQL5.5在MySQL模式中有24个表
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| event |
| func |
| general_log |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| ndb_binlog_index |
| plugin |
| proc |
| procs_priv |
| proxies_priv |
| servers |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+请注意,mysql.plugin在MySQL 5.0中不存在。可以推测,您以某种方式安装了MySQL 5.0,并使MySQL 5.5的重要表消失了。
这里有一些好消息。有件事你可以试试。
对于这个例子
这是你的舞步
就这样。
如果您在Windows中运行此操作,则必须应用相同的原则。
试试看!!
如果您的用户名具有DB特定的特权,下面是您的步骤
https://serverfault.com/questions/291126
复制相似问题