myeclipse 连接mysql 提示 unable to create connection.check your url
来源:互联网 发布:单片机led灯不亮 编辑:程序博客网 时间:2024/05/17 04:42
打开myeclipse然后点击window窗口 点击Open Perspective菜单中的MyEclipse Database Explorer 进入
第二步 创建连接
在空白处右击鼠标新建(即new)或者点击菜单栏中的快捷键(图二中向下的三角符号)新建。弹出Database Driver 菜单见
选择连接方式
在Driver template选项框中 选择MySql Connector/j 如
第四步 填写配置信息
在 Driver name填写链接数据库的名称(这个可由自己喜好填写,建议最好和所做项目名称相关便于使用时查找) Connection URL用于填写连接要使用mysql数据库的地址(jdbc:mysql://<hostname>[<:3306>]/<dbname>)可改为(jdbc:mysql://localhost:3306/test),其中localhost表示的是连接本地数据库的意思,3306是表示连接mysql数据库的端口号(不同的数据库端口号也不相同), User name 填写数据库用户名mysql默认的是root Password填写访问mysql数据库时的你所设置的访问密码。如,图五
第五步 添加驱动
点击Add JARs添加myeclipse连接mysql数据库的驱动文件(存放驱动的文件最好是英文目录,在测试时确定mysql数据库已经打开,否则测试不会成功),在这里添加的是mysql-connector-java-5.1.7-bin版本(可以在网上搜索下载、)
第六步 测试数据配置是否正确
点击Test Driver测试是否配置成功,输入访问数据库密码。
第七步 测试成功
测试连接mysql数据库成功,点击Finish完成创建连接。
注意事项:
1.在driver jars当中把下载的jdbc包中的mysql connect 这个包以及src/lib下的jar包全部add进去。并且将drive classname改成com.mysql.jdbc.Driver。
2.Myeclipse dataconnection 配置
Driver name: 随便填
Connection URL: jdbc:mysql://127.0.0.1:3306/asci
JAR 全部导入
Driver classname: 选择com.mysql.jdbc.Driver
- myeclipse 连接mysql 提示 unable to create connection .check your url
- myeclipse 连接mysql 提示 unable to create connection.check your url
- Myeclipse 2016 c1 连接mysql 提示 unable to create connection check your url
- Myeclipse连接Mysql数据库时提示 unable to create connection .check your url
- myeclipse中DB Browse连接mysql出错,UNable to create connection。Check your URL
- Myeclipse添加Mysql数据库时出现“Unable to create connection .Check your URL”
- 初学者使用hibernate连接MySQL出现unable to create connection check your url问题
- MyEclipse中连接mysql数据库提示error while performing database login with the testMySQL driver check your url
- MyEclipse中连接mysql数据库提示error while performing database login with the testMySQL driver check your url
- ASIHttpRequest出错提示:Unable to create request (bad url?)
- error while performing database login with the Dome driver:unable to create connection.check yoururl
- Error while performing database login with the sqljdbc driver:Unable to create connection. Check you
- ArcCatalog连接ArcSDE连接报:unable to create new database connection file,permission is denied
- com.mysql.jdbc.CommunicationsException: The driver was unable to create a connection......
- Android Studio升级提示 Connection failed. Please check your network ...
- myeclipse unable to create new native thread
- vba 用ADO连接不上sqlserver 错误提示:client unable to establish connection
- Unable to perform query. Please check your parameters
- iOS8 的毛玻璃效果(UIVisualEffectView)
- hdu 1049 Climbing Worm
- java spring定时器(注解)
- 写了一个 51单片机外部中断程序
- 32.Python的单元测试工具——unittest(初级)
- myeclipse 连接mysql 提示 unable to create connection.check your url
- CodeForces 478D-Red-Green Towers
- <C++略识> 之关键字const
- js变量以及其作用域详解
- PHP 原生分页
- Linux内核驱动之GPIO子系统(一)GPIO的使用
- 数据库索引
- aapt 命令可应用于查看apk包名、主activity、版本等很多信息
- Java内存详解