Tôi đang thử dùng MySQL (Windows 8), với bàn làm việc (gui) được cài đặt.Khởi động Máy chủ MySQL làm dịch vụ (Win 8)
Tôi vẫn đang trong quá trình cài đặt/định cấu hình. Tôi muốn tạo một cơ sở dữ liệu mới. Vì vậy, trên màn hình chào mừng của bàn làm việc, tôi đã chọn New Server Instance- Register a new Server instance to manage
.
Để làm được điều này, tôi đã đi qua các bước cấu hình sau:
Chỉ định
localhost
như máy chủ server,Give it tên người dùng và mật khẩu Tôi đang sử dụng.
Nó sau đó kiểm tra một kết nối cơ sở dữ liệu, và, trong bước tiếp theo, hỏi tôi để
Select the Service to manage from the list below. It will also help find the configuration file.
Tuy nhiên, danh sách các dịch vụ có thể là rỗng và nếu tôi bấm [tiếp theo], nó nói
Error: In Order to manage a MySQL Service it must be installed as a Service. The wizard can not find any MySQL Service at the target machine, so the Server instance cannot be started.
tôi nghĩ rằng tôi phải bằng cách nào đó bắt đầu dịch vụ MySQL, vì nó có thể đã được cài đặt khi tôi đã cài đặt toàn bộ MySQL Toolset.
Vì vậy: Tôi làm cách nào để bắt đầu Dịch vụ MySQL này trong Windows 8?
Một số điều tôi đã cố gắng:
Các Manual nói thử:
C:\> "C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld"
để cài đặt nó như một dịch vụ. Tuy nhiên, không có gì xảy ra và tôi nhận được những điều sau đây (một số tiết [Chú ý] s đã được gỡ bỏ):
2013-04-13 23:44:22 0 [Warning] TIMESTAMP with implicit DEFAULT value is depreca
ted. Please use --explicit_defaults_for_timestamp server option (see documentati
on for more details).
2013-04-13 23:44:22 2592 [Warning] Can't create test file c:\Program Files\MySQL
\MySQL Server 5.6\data\gast.lower-test
2013-04-13 23:44:22 2592 [Warning] Can't create test file c:\Program Files\MySQL
\MySQL Server 5.6\data\gast.lower-test
[...]
2013-04-13 23:44:22 2592 [ERROR] InnoDB: read can't be opened in .\ibdata1 mode
2013-04-13 23:44:22 2592 [ERROR] InnoDB: The system tablespace must be writable!
2013-04-13 23:44:22 2592 [ERROR] Plugin 'InnoDB' init function returned error.
2013-04-13 23:44:22 2592 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGIN
E failed.
2013-04-13 23:44:22 2592 [ERROR] Unknown/unsupported storage engine: InnoDB
2013-04-13 23:44:22 2592 [ERROR] Aborting
2013-04-13 23:44:22 2592 [Note] Binlog end
[...]
2013-04-13 23:44:22 2592 [Note] mysqld: Shutdown complete
Để cài đặt máy chủ như một dịch vụ, tôi đã sử dụng lệnh này (per the manual).
C:\> "C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --install
Một lần nữa, "không có gì" xảy ra, tôi nhận được (một lần nữa, hầu hết các tiết [Chú ý] s được loại bỏ):
Install/Remove of the Service Denied!
c:\Program Files\MySQL\MySQL Server 5.6\bin>mysqld -p --install
2013-04-13 23:43:24 0 [Warning] TIMESTAMP with implicit DEFAULT value is depreca
ted. Please use --explicit_defaults_for_timestamp server option (see documentati
on for more details).
2013-04-13 23:43:24 3764 [Warning] Can't create test file c:\Program Files\MySQL
\MySQL Server 5.6\data\gast.lower-test
2013-04-13 23:43:24 3764 [Warning] Can't create test file c:\Program Files\MySQL
\MySQL Server 5.6\data\gast.lower-test
[...]
2013-04-13 23:43:24 3764 [ERROR] InnoDB: read can't be opened in .\ibdata1 mode
2013-04-13 23:43:24 3764 [ERROR] InnoDB: The system tablespace must be writable!
2013-04-13 23:43:24 3764 [ERROR] Plugin 'InnoDB' init function returned error.
2013-04-13 23:43:24 3764 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGIN
E failed.
2013-04-13 23:43:24 3764 [ERROR] mysqld: unknown option '-p'
2013-04-13 23:43:24 3764 [ERROR] Aborting
2013-04-13 23:43:24 3764 [Note] Binlog end
[...]
2013-04-13 23:43:24 3764 [Note] mysqld: Shutdown complete
bạn có nhận được giải pháp không? –