你在命令行下用mysql -u ,然后跟你的用户名和密码来试试。
应该是你的服务器没有配置好
应该是你的服务器没有配置好
解决方案 »
- 请教高手:jsp以超链接action传中文参数的乱码问题
- java中TCP服务器连接数据库查询的问题
- 在做一个系统,其中有个登录页面老是出错,大家帮忙看看啊。
- 求助:jsp 显示本地磁盘上的bmp图片?????????????
- 程序员过渡期的迷茫
- java人才急求
- 请J2EE高手朋友们给我推荐几本J2EE的好书^^谢谢
- java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver 如何是好啊!!!急啊
- 100分求怎么在Servlet中用smartupload??
- 喜欢Eiffel语言的朋友团结起来!!!!!!
- 想知道大家对于<Struts 基于MVC的Java Web设计与开发>的看法
- 请问在javabean中如何设置字符集为中文?
我在终端是可以启动MySQL的,自己顶
From the mysql command-line client, logged in as a user that can grant privileges, issue the following command:GRANT ALL PRIVILEGES ON [dbname].* to
'[user]'@'[hostname]' identified by
'[password]'replacing [dbname] with the name of your database, [user] with the user name, [hostname] with the host that MySQL Connector/J will be connecting from, and [password] with the password you want to use. Be aware that RedHat Linux is broken with respect to the hostname portion for the case when you are connecting from localhost. You need to use "localhost.localdomain" for the [hostname] value in this case. Follow this by issuing the "FLUSH PRIVILEGES" command.