设为首页 收藏本站
查看: 915|回复: 0

[经验分享] 连接mysql服务器

[复制链接]

尚未签到

发表于 2016-9-12 12:28:55 | 显示全部楼层 |阅读模式
  mysql> SELECT
-> user();
+----------------+
| user() |
+----------------+
| ODBC@localhost |
+----------------+
1 row in set (0.00 sec)
  
=========
14:00:51 Baron-lwl (#)YingNing E:\HYN\Java\B2C\customer\info\src\vssver.scc -(不存在)
2006-7-24 14:01:12 Baron-lwl (#)YingNing 经理,eclips提示这个不存在
2006-7-24 14:01:25 (#)YingNing Baron-lwl 这个没有用的,按F5刷新一下就好了。
2006-7-24 14:01:34 Baron-lwl (#)YingNing ok
2006-7-24 14:03:04 Baron-lwl (#)YingNing 我调试项目,总提示说所需项目中存在错误:info.
2006-7-24 14:03:29 Baron-lwl (#)YingNing .java文件中又没错误提示
2006-7-24 14:03:41 Baron-lwl (#)YingNing 只有些警告
2006-7-24 14:13:19 Baron-lwl (#)YingNing 是不是数据库没设置的原因?
2006-7-24 14:15:33 (#)YingNing Baron-lwl 通过Eclipse重新编译一次。数据库错误的话在 resin 运行的提示中显示。
2006-7-24 14:20:58 Baron-lwl (#)YingNing 所需项目中存在错误:info. 但可以启动
2006-7-24 14:21:17 (#)YingNing Baron-lwl 那没问题。
2006-7-24 14:24:08 Baron-lwl (#)YingNing 启动后再插软件狗也行吗?
2006-7-24 14:24:25 (#)YingNing Baron-lwl 可以
2006-7-24 14:24:39 (#)YingNing Baron-lwl 一直插着就是了。
2006-7-24 14:24:46 Baron-lwl (#)YingNing 好
2006-7-24 14:42:39 Baron-lwl (#)YingNing file:/E:/HYN/Java/B2C/customer/info/info/WEB-INF/struts-html.tld:19: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
2006-7-24 14:43:08 Baron-lwl (#)YingNing 经理,这是什么原因?百度没度到
2006-7-24 14:44:10 Baron-lwl (#)YingNing 我在浏览器中输入http://localhost:8080/info/,出现那个问题
2006-7-24 15:00:49 (#)YingNing Baron-lwl servlet 包的版本问题。没有这个方法。我把我设置好的配置文件发给你吧。
14:05:48 (#)YingNing sends Eclipse-info.rar
2006-7-25 14:16:28 You have successfully received F:\Java\info程序\Eclipse-info.rar from (#)YingNing.
2006-7-29 15:07:49 Baron-lwl (#)YingNing 经理,是不是用你发过来的Eclipse-info.rar里的文件替换掉原来的就ok了?
2006-7-29 15:10:12 (#)YingNing Baron-lwl 是的
2006-7-29 15:10:50 Baron-lwl (#)YingNing ok
2006-7-29 15:19:54 Baron-lwl (#)YingNing 呵呵,可以运行了啊
2006-7-29 15:22:37 Baron-lwl (#)YingNing 经理,登录的用户和密码是?我输入hyn,hyn,不行
2006-7-29 15:23:46 (#)YingNing Baron-lwl 是 hyn 密码 hyn
2006-7-29 15:25:54 (#)YingNing Baron-lwl 看数据库连接是否有错误。mysql安装时指定 用户名和密码都是 root
2006-7-29 15:27:20 (#)YingNing Baron-lwl 运行 E:\Server\MySQL-Server\bin\winmysqladmin.exe 来安装 mysql数据库
Baron-lwl says:
mysql> -u user -p B2C
-> ;
ERROR 1064: You have an error in your SQL syntax near '-u user -p B2C' at line 1
Baron-lwl says:
[WinMySQLadmin]
Server=E:/Server/MySQL-Server/bin/mysqld-nt.exe
user=user
password=root
Baron-lwl says:
因为local user name是user,我就设user=user了
YingNing says:
用户名用 root 吧,不然程序的配置还要改。你还不属性,先别改,一切按默认的设置吧。
Baron-lwl says:
哦,好的.开始我试过root,登录不了数据库(cmd下),然后才改的.
我现在改回来
Baron-lwl says:
Server=E:/Server/MySQL-Server/bin/mysqld-nt.exe
user=root
password=root
Baron-lwl says:
E:\Server\MySQL-Server\bin>mysql -h LWL -u root -proot mysql;
ERROR 1045: Access denied for user: 'root@202.116.86.136' (Using password: YES)
这是什么原因啊?
Baron-lwl says:
E:\Server\MySQL-Server\bin>mysql -h localhost -u root -proot B2C;
ERROR 1049: Unknown database 'b2c;'
YingNing says:
不要;
Baron-lwl says:

Baron-lwl says:
可以了,晕死
  Baron-lwl says:
mysql> show databases;
+----------+
| Database |
+----------+
| B2C |
| mysql |
| tmp |
+----------+
3 rows in set (0.11 sec)
  mysql> use mysql
ERROR 1044: Access denied for user: '@127.0.0.1' to database 'mysql'
  E:\Server\MySQL-Server\bin>mysql -h LWL -u user -proot mysql;
ERROR 1045: Access denied for user: 'user@202.116.86.136' (Using password: YES)
  E:\Server\MySQL-Server\bin>mysql -h LWL -u root -proot mysql;
ERROR 1045: Access denied for user: 'root@202.116.86.136' (Using password: YES)
  E:\Server\MySQL-Server\bin>mysql -h localhost -u root -proot mysql;
ERROR 1049: Unknown database 'mysql;'
  E:\Server\MySQL-Server\bin>mysql -h localhost -u root -proot B2C;
ERROR 1049: Unknown database 'b2c;'
  E:\Server\MySQL-Server\bin>mysql -h localhost -u root -proot B2C
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.0.3-beta-nt
  Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
  mysql> select database();
+------------+
| database() |
+------------+
| b2c |
+------------+
1 row in set (0.05 sec)
---------------
E:\Server\MySQL-Server\bin>mysql -u root -h localhost -p //sequence is trivial
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 4.0.3-beta-nt
  Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
  E:\Server\MySQL-Server\bin>mysql -p -u root -h localhost
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11 to server version: 4.0.3-beta-nt
  Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
--------------------------
  C:\Documents and Settings\user>mysql -h host -u root -p
'mysql' 不是内部或外部命令,也不是可运行的程序
或批处理文件。//must in the current directory
  C:\Documen

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-271309-1-1.html 上篇帖子: Mongodb VS Mysql 查询性能 下篇帖子: Visual C++ 读写 MySQL
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表