我希望能够使用psql对MySQL做类似的事情(我已经删除了许多额外的行):$ mysql -u root -prootpasswordWelcome to the MySQL monitor.Server version: 5.5.28 MySQL Community Server (GPL)| mysql |
当我使用Hibernate创建一个新的web项目时,我打开新建连接向导,选择MySQL (连接器/J驱动程序)选项(连接器jar出现在驱动程序文件列表中),我按下下一步按钮,设置主机: 127.0.0.1然后我得到了cannot establish a connection to jdbc:mysql://127.0.0.1:3306/databasename using com.mysql.jdbc.Driver/etc/mysql/