簡體   English   中英

Mysql服務器啟動但無法連接網絡問題

[英]Mysql server starts but can not connect network issue

我可以通過運行 5.7 安裝程序看到我有一個正在運行的服務器。 當我去運行 --install 我得到“安裝/刪除服務被拒絕!”。 我想運行服務器並使用 mysqlshow 來查看我是否正確安裝了服務器。 找到https://dev.mysql.com/doc/refman/5.7/en/can-not-connect-to-server.html並通讀。

我已經嘗試在端口 330 上 telnet 到本地主機並得到:

Connecting To localhost...Could not open connection to the host, on port 330: Connect failed

當我查看打開的端口時,我根本沒有看到 330 列出。

我使用了 mysqladmin 並指定了我所在的端口,我確實得到了一個 mysqladmin 用法列表,看起來我可以開始寫入表,但我沒有連接到服務器,所以它都不起作用。 之后嘗試使用 mysqlshow 並得到:

bin\mysqlshow: Can't connect to MySQL server on 'localhost' (10061)

C:\MYSQL>bin\mysqld --console
2017-07-24T16:17:23.646121Z 0 [Warning] TIMESTAMP with implicit DEFAULT 
value is deprecated. Please use --explicit_defaults_for_timestamp server 
option (see documentation for more details).
2017-07-24T16:17:23.646121Z 0 [Note] --secure-file-priv is set to NULL. 
Operations related to importing and exporting data are disabled
2017-07-24T16:17:23.646121Z 0 [Note] bin\mysqld (mysqld 5.7.19) starting as 
process 3572 ...
2017-07-24T16:17:23.646121Z 0 [ERROR] Can't find error-message file 
'C:\MYSQL\share\errmsg.sys'. Check error-message file location and 'lc-
messages-dir' configuration directive.
2017-07-24T16:17:23.646121Z 0 [Note] InnoDB: Mutexes and rw_locks use 
Windows interlocked functions
2017-07-24T16:17:23.646121Z 0 [Note] InnoDB: Uses event mutexes
2017-07-24T16:17:23.646121Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() 
are used for memory barrier
2017-07-24T16:17:23.646121Z 0 [Note] InnoDB: Compressed tables use zlib 
1.2.3
2017-07-24T16:17:23.646121Z 0 [Note] InnoDB: Number of pools: 1
2017-07-24T16:17:23.646121Z 0 [Note] InnoDB: Not using CPU crc32 
instructions
2017-07-24T16:17:23.677544Z 0 [Note] InnoDB: Initializing buffer pool, total 
size = 128M, instances = 1, chunk size = 128M
2017-07-24T16:17:23.693017Z 0 [Note] InnoDB: Completed initialization of 
buffer pool
2017-07-24T16:17:24.640166Z 0 [Note] InnoDB: Highest supported file format 
is Barracuda.
2017-07-24T16:17:27.906296Z 0 [Note] InnoDB: Creating shared tablespace for 
temporary tables
2017-07-24T16:17:27.906296Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 
12 MB. Physically writing the file full; Please wait ...
2017-07-24T16:17:30.117639Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 
MB.
2017-07-24T16:17:30.351854Z 0 [Note] InnoDB: 96 redo rollback segment(s) 
found. 96 redo rollback segment(s) are active.
2017-07-24T16:17:30.351854Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) 
are active.
2017-07-24T16:17:30.351854Z 0 [Note] InnoDB: Waiting for purge to start
2017-07-24T16:17:33.071230Z 0 [Note] Executing 'SELECT * FROM 
INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated 
partition engine. You may use the startup option '--disable-partition-
engine-check' to skip this check.
2017-07-24T16:17:33.071230Z 0 [Note] Beginning of list of non-natively 
partitioned tables
2017-07-24T16:17:34.880009Z 0 [Note] End of list of non-natively partitioned 
tables

我該怎么做才能開始編寫可以創建我需要的表的 mysql 命令?

"C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqld" --install

如果您沒有以管理員身份運行 cmd,您將看到安裝/刪除服務被拒絕!

因此,運行提升的命令提示符(開始->cmd->以管理員身份運行)以查看服務已成功安裝消息。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM