8

Windows 8 と MySQL 5.6 ワークベンチがありました。

昨日、Windows 8.1 にアップグレードしたところ、PC の動作は改善されましたが、MySQL が台無しになりました。

ワークベンチに入ると、古い接続が表示されますが、それをクリックすると次のようになります。

Cannot Connect to Database Server
Your connection attempt failed for user 'root' from your host to server at 
127.0.0.1:3306:Can't connect to mysql server on '127.0.0.1'(10061)
Please:
 1. Check that mysql is running on server 127.0.0.1
 2. Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)
 3. Check the root has rights to connect to 127.0.0.1 from your address (mysql rights define what clients can connect to the server and from which machines) 
 4. Make sure you are both providing a password if needed and using the correct password for 127.0.0.1 connecting from the host address you're connecting from the host address you're connecting from.
4

4 に答える 4

2

mysqld サービスを再インストールすると、実際にデータベース サーバーが再起動されますが、ユーザーの詳細と同様に、データベースが失われていることがわかります。

Windows 8 では、MySQL はそのデータベースを C:\ProgramData\MySQL\MySQL Server 5.5\data に保存しますが、8.1 ではすべて C:\Program Files\MySQL\MySQL Server 5.5\data に移動しました。

これに対する簡単な解決策は次のとおりです。

  • タスクバーの MySQL Notifier から mysqld サービスを停止します。
  • C:\ProgramData\MySQL\MySQL Server 5.5 を C:\Program Files\MySQL\MySQL Server 5.5 にコピーします。
  • Notifier を介して mysqld サービスを再起動します。

データベースとユーザー資格情報が戻ってきました。

于 2013-11-13T08:55:14.920 に答える