10bet网址
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr)- 42.0Mb
PDF (A4)- 42.1Mb
Man Pages (TGZ)- 267.5Kb
Man Pages (Zip)- 377.2Kb
Info (Gzip)- 4.1Mb
Info (Zip)- 4.1Mb
Excerpts from this Manual

2.3.4.9 Testing The MySQL Installation

You can test whether the MySQL server is working by executing any of the following commands:

C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqlshow" C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqlshow" -u root mysql C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqladmin" version status proc C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" test

Ifmysqldis slow to respond to TCP/IP connections from client programs, there is probably a problem with your DNS. In this case, startmysqldwith theskip_name_resolvesystem variable enabled and use onlylocalhostand IP addresses in theHostcolumn of the MySQL grant tables. (Be sure that an account exists that specifies an IP address or you may not be able to connect.)

You can force a MySQL client to use a named-pipe connection rather than TCP/IP by specifying the--pipeor--protocol=PIPEoption, or by specifying.(period) as the host name. Use the--socketoption to specify the name of the pipe if you do not want to use the default pipe name.

If you have set a password for therootaccount, deleted the anonymous account, or created a new user account, then to connect to the MySQL server you must use the appropriate-uand-poptions with the commands shown previously. SeeSection 4.2.4, “Connecting to the MySQL Server Using Command Options”.

For more information aboutmysqlshow, seeSection 4.5.7, “mysqlshow — Display Database, Table, and Column Information”.