Appfuse-------about MySQL

问题
  E:\java\workspace\appfuse>ant setup-db
  Buildfile: build.xml
  Trying to override old definition of datatype resources

  init:

  db-create:
     [echo] Detected MySQL, creating database...
     [echo] Creating 'appfuse' database with: mysql-create.sql
     [echo] URL: jdbc:mysql://localhost/mysql
     [copy] Copying 1 file to E:\java\workspace\appfuse\build\dao\gen

  BUILD FAILED
  E:\java\workspace\appfuse\build.xml:740: java.sql.SQLException: Access denied   for user: 'root@localhost' (Using password
  : NO)
answer: 1)启动mysql;
2)看用户名和密码正确否。

你可能感兴趣的:(java,sql,mysql,ant,Appfuse)