Home  >  Article  >  Database  >  巧用命令测试MySQL服务器是否正常工作_MySQL

巧用命令测试MySQL服务器是否正常工作_MySQL

WBOY
WBOYOriginal
2016-06-01 13:56:50883browse

  问:如何测试 MySQL安装?

  答:你可以通过以下命令测试MySQL服务器是否工作:

  C:/> C:/Program Files/MySQL/MySQL Server 5.1/bin/mysqlshowC:/> C:/Program

  Files/MySQL/MySQL Server 5.1/bin/mysqlshow -u root mysqlC:/> C:/Program

  Files/MySQL/MySQL Server 5.1/bin/mysqladmin version status procC:/> C:/Program

  Files/MySQL/MySQL Server 5.1/bin/mysql test

  如果mysqld对客户端程序TCP/IP连接的响应较慢,可能是DNS问题。此时,使用--skip-name-resolve选项启动mysqld,在MySQL授权表的Host列只使用localhost和IP号。

  可以通过--pipe或--protocol=PIPE选项强制MySQL客户端使用命名管道连接代替TCP/IP连接,或指定.(阶段)做为主机名。使用--socket选项指定管道名。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn