-- 用命令行试试:C:\Documents and Settings\Administrator>mysql -uroot -pbee56915 --database=test Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.52-community MySQL Community Server (GPL)Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 licenseType 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show tables -> ; +----------------+ | Tables_in_test | +----------------+ | dkld | +----------------+ 1 row in set (0.02 sec)mysql>
mysql 首先配置好环境,然后在cmd下试试,能不能连接,如果成功,那就是,你在安装的时候,没点那个命令行组件、
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.52-community MySQL Community Server (GPL)Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 licenseType 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show tables
-> ;
+----------------+
| Tables_in_test |
+----------------+
| dkld |
+----------------+
1 row in set (0.02 sec)mysql>