Connecting to MySQL with JDeveloper
Hi,
I built a small test projcet, based on default (Struts) technology with JDeveloper and MySQL. I configured the project to work with MySql connector, and when I test the connection I craeted it works fine, and the same is true when I test the model projcet by selectig TEST on the applicaton module pop up manue. However, when I try to run the view-controler project, uix DataPage I bulit, I get the follwing error message: Error initializing data-source 'jdbc/MySQL-orderentryCoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver' not found.
Can anyone help?
Thanks
Uri Baruch
Uri,
A couple of articles that might help you setup your environment:
http://www.developer.com/db/article.php/3492406
and
http://otn.oracle.com/products/jdev/howtos/10g/MySql/MySQL_and_BC_HowTo.html
Similar Messages
-
Connection of Mysql with visual web developer 2010 using visual basic
Aslam o Alaikum friends,
i want to connect my asp.net website with mysql database. i have successfully installed mysql and mysql connector 6.3.6
but i don't know how to connect my website with mysql database
please anyone can help meHello,
This should be asked in Microsoft's ASP.Net forums:
http://forums.asp.net/
As Microsoft's ASP.Net forums are on a different platform, we cannot move the question for you.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Using MySQL with JDeveloper 3.2 in a BC4J JSP Application
Hi!
I'm trying to create a BC4J JSP application using MySQL.
I'm using the mm.mysql-2.0.4-bin.jar which I've registered in
IDE and ClassPath. I created a connection with the option Other
JDBC.
I tested successfully the connection in the Connection Manager.
After, I created a new project with BC4J. Using the 'tester' I
got an error: no suitable driver.
While editing the created view object I got a SQLException when
I clicked in Attribute Mapping.
How to solve this problem? I realized that other people here had
this kind of problem but nobody gave a definitive solution.
Thanks.Ok, I'm doing exactly the same Jdevloper BC4J over mySQL.
I got one step further.
In order to solve your problem:
1. Add AddJavaLibFile ../lib/mysql_comp.jar (or whereever
is your mysql driver) in bin/jdev.conf.
resart the application
In that case your driver will be available for all tasks.
It works for me.
My problem:
When I run the Tester for my generated module, I obtain:
No attribute with the Primary key property was found...
Can you emeil me the procedure if you find how to use
BC4J over mysql -
Heterogeneous Connectivity to MySQL with ODBC 5.1
Hi,
I have a setup with an oracle 10g XE version on an windows Server 2003 together with a MySQL 5.5
I setup a Heterogeneous Link using MySQL ODBC 5.1.
Every time I select something from a mysql table all varchar and text fields ignored in result set.
so the
select * from project@sugarcrm
returns only the non text/varchar fields (dates,numeric)
the select name from project@sugarcrm where name is char fiels
returns ORA-00904 'name invalid identifier '
ThanksI was looking for the sql.log in defined path if was in c:\ ...
odbcad32 1860-2944 ENTER SQLAllocHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 0007D2C0
odbcad32 1860-2944 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 0x0007D2C0 ( 0x009f14e8)
odbcad32 1860-2944 ENTER SQLSetEnvAttr
SQLHENV 009F14E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003
SQLINTEGER 0
odbcad32 1860-2944 EXIT SQLSetEnvAttr with return code 0 (SQL_SUCCESS)
SQLHENV 009F14E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003 (BADMEM)
SQLINTEGER 0
odbcad32 1860-2944 ENTER SQLAllocHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 009F14E8
SQLHANDLE * 0007D2BC
odbcad32 1860-2944 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 009F14E8
SQLHANDLE * 0x0007D2BC ( 0x009f1590)
odbcad32 1860-2944 ENTER SQLDriverConnectW
HDBC 009F1590
HWND 00000000
WCHAR * 0x4BF78088 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x4BF78088
SWORD 2
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
odbcad32 1860-2944 EXIT SQLDriverConnectW with return code 0 (SQL_SUCCESS)
HDBC 009F1590
HWND 00000000
WCHAR * 0x4BF78088 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x4BF78088
SWORD 2
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
odbcad32 1860-2944 ENTER SQLAllocHandle
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 009F1590
SQLHANDLE * 0007D2B8
odbcad32 1860-2944 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 009F1590
SQLHANDLE * 0x0007D2B8 ( 0x009f21c8)
odbcad32 1860-2944 ENTER SQLTablesW
HSTMT 009F21C8
WCHAR * 0x01336BC8 [ -3] "%\ 0"
SWORD -3
WCHAR * 0x01336BCC [ -3] "\ 0"
SWORD -3
WCHAR * 0x01336BCC
SWORD 0
WCHAR * 0x01336BCC
SWORD 0
odbcad32 1860-2944 EXIT SQLTablesW with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
WCHAR * 0x01336BC8 [ -3] "%\ 0"
SWORD -3
WCHAR * 0x01336BCC [ -3] "\ 0"
SWORD -3
WCHAR * 0x01336BCC
SWORD 0
WCHAR * 0x01336BCC
SWORD 0
odbcad32 1860-2944 ENTER SQLBindCol
HSTMT 009F21C8
UWORD 1
SWORD -8 <SQL_C_WCHAR>
PTR 0x0007D2CC
SQLLEN 255
SQLLEN * 0x0007D2C8
odbcad32 1860-2944 EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
UWORD 1
SWORD -8 <SQL_C_WCHAR>
PTR 0x0007D2CC
SQLLEN 255
SQLLEN * 0x0007D2C8 (2000326715)
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFreeHandle
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 009F21C8
odbcad32 1860-2944 EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 009F21C8
odbcad32 1860-2944 ENTER SQLDisconnect
HDBC 009F1590
odbcad32 1860-2944 EXIT SQLDisconnect with return code 0 (SQL_SUCCESS)
HDBC 009F1590
odbcad32 1860-2944 ENTER SQLFreeHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 009F1590
odbcad32 1860-2944 EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 009F1590
odbcad32 1860-2944 ENTER SQLFreeHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 009F14E8
odbcad32 1860-2944 EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 009F14E8
odbcad32 1860-2944 ENTER SQLAllocHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 0007CFF8
odbcad32 1860-2944 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 00000000
SQLHANDLE * 0x0007CFF8 ( 0x009f14e8)
odbcad32 1860-2944 ENTER SQLSetEnvAttr
SQLHENV 009F14E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003
SQLINTEGER 0
odbcad32 1860-2944 EXIT SQLSetEnvAttr with return code 0 (SQL_SUCCESS)
SQLHENV 009F14E8
SQLINTEGER 200 <SQL_ATTR_ODBC_VERSION>
SQLPOINTER 0x00000003 (BADMEM)
SQLINTEGER 0
odbcad32 1860-2944 ENTER SQLAllocHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 009F14E8
SQLHANDLE * 0007CFF4
odbcad32 1860-2944 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 009F14E8
SQLHANDLE * 0x0007CFF4 ( 0x009f1590)
odbcad32 1860-2944 ENTER SQLDriverConnectW
HDBC 009F1590
HWND 00000000
WCHAR * 0x4BF78088 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x4BF78088
SWORD 2
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
odbcad32 1860-2944 EXIT SQLDriverConnectW with return code 0 (SQL_SUCCESS)
HDBC 009F1590
HWND 00000000
WCHAR * 0x4BF78088 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x4BF78088
SWORD 2
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>
odbcad32 1860-2944 ENTER SQLAllocHandle
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 009F1590
SQLHANDLE * 0007CFF0
odbcad32 1860-2944 EXIT SQLAllocHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 009F1590
SQLHANDLE * 0x0007CFF0 ( 0x009f21c8)
odbcad32 1860-2944 ENTER SQLExecDirectW
HSTMT 009F21C8
WCHAR * 0x01336BD0 [ -3] "SHOW CHARACTER SET\ 0"
SDWORD -3
odbcad32 1860-2944 EXIT SQLExecDirectW with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
WCHAR * 0x01336BD0 [ -3] "SHOW CHARACTER SET\ 0"
SDWORD -3
odbcad32 1860-2944 ENTER SQLBindCol
HSTMT 009F21C8
UWORD 1
SWORD -8 <SQL_C_WCHAR>
PTR 0x0007D004
SQLLEN 255
SQLLEN * 0x0007D000
odbcad32 1860-2944 EXIT SQLBindCol with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
UWORD 1
SWORD -8 <SQL_C_WCHAR>
PTR 0x0007D004
SQLLEN 255
SQLLEN * 0x0007D000 (512124)
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 0 (SQL_SUCCESS)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFetch
HSTMT 009F21C8
odbcad32 1860-2944 EXIT SQLFetch with return code 100 (SQL_NO_DATA_FOUND)
HSTMT 009F21C8
odbcad32 1860-2944 ENTER SQLFreeHandle
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 009F21C8
odbcad32 1860-2944 EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 3 <SQL_HANDLE_STMT>
SQLHANDLE 009F21C8
odbcad32 1860-2944 ENTER SQLDisconnect
HDBC 009F1590
odbcad32 1860-2944 EXIT SQLDisconnect with return code 0 (SQL_SUCCESS)
HDBC 009F1590
odbcad32 1860-2944 ENTER SQLFreeHandle
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 009F1590
odbcad32 1860-2944 EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 009F1590
odbcad32 1860-2944 ENTER SQLFreeHandle
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 009F14E8
odbcad32 1860-2944 EXIT SQLFreeHandle with return code 0 (SQL_SUCCESS)
SQLSMALLINT 1 <SQL_HANDLE_ENV>
SQLHANDLE 009F14E8 -
Connecting to MySQL with JDBC in Reports
Hi,
I need help connecting to a MySQL db through oracle reports using a jdbc connection.
I have downloaded the MySQL JDBC driver:mysql-connector-java-3.0.17-ga-bin.jar.
I can succesfully use it to connect if I write a simple java program. So I know the driver works.
I have set it in my classpath & edited the jdbcpds.conf file by adding the following:
<driver name = "mysql-merant"
sourceDatabase = "other"
subProtocol = "mysql"
connectString = "mainProtocol:subProtocol://databaseName"
class = "com.mysql.jdbc.Driver"
connection = "oracle.reports.plugin.datasource.jdbcpds.JDBCConnectionHandling">
</driver>
When I try to connect, I get the following error, ERR 62002 failed to connect to the data source.
What do I have to do to connect? Is there a way to directly give the connect string?
I can connect to an oracle DB using a the Oracle drivers no problem, why does forms not accept the MySQL driver? What can I do to make this work?
Any help would be appreciated.
Michael Baran
[email protected]Michael,
there is a Reports forum here on OTN as well. Posting your question there might be a better chance.
Frank -
How to Connect to Mysql databse from Java Studio Enterprise 8
Hello everybody,
I have a database in mysql in linux.I have downloaded Java Studio Enterprise 8.
How is it possible to connect to mysql.
Could you tell the procedure .., I would be really thankfull
From
Ranjitha Raohi
u can connect to Mysql with the following code
Class.forName("com.mysql.jdbc.Driver");
String url1 = "jdbc:mysql://localhost/<database name>";
String user1 = "root";
String pass1 = "";
Connection con1=DriverManager.getConnection(url1, user1, pass1); -
Hi all:
I've set up a LAMP (Linux-Apache-MySQL-PHP of course) server
and I'm getting the good old unidentified error when trying to
connect. The Adobe technote gives a number of seemingly ambiguous
reasons why this can happen. Has anyone else encountered this
problem and if so what is the most common cause? I have a user set
up for Dreamweaver in the MySQL database and I can connect wtih an
admin program from the same computer. The error occurs just as I
click test on the add connection dialog. I can supply more info but
I'm so new at this I don't even know what's important. Any help
would be greatly appreciated.
Thanks!
Ken Ha QuadIfyO wrote:
> I begin to wonder if the makers of Dreamweaver8 intended
to give
> us all a Jigsaw puzzle.
No, the makers of Dreamweaver give you software that works
correctly
with a properly configured setup.
> How can Adobe sit bag and let us keep going through this
stress?
I agree that the setup documentation could be clearer, but
most of the
problems that I've encountered are the result of incorrect
installation
of PHP/MySQL. That's not Adobe's responsibility. The other
main source
of problems is failure to define a testing server correctly
in the
Dreamweaver site setup.
> Following your suggestion, how does one determine a more
uptodate library when
> you have just installed the latest version of
Dreamweaver 8 and EasyPHPserver?
Dreamweaver 8 relies on a correctly configured installation
of PHP and
MySQL. It installs nothing that affects the performance of
PHP or MySQL.
Part of your problem may lie in using EasyPHP. I've just
visited the
EasyPHP site, and see that the latest version of EasyPHP uses
PHP
4.3.10, MySQL 4.1.9, and phpMyAdmin 2.6.1. The latest "real"
versions
are PHP 5.1.4, MySQL 5.0.22, and phpMyAdmin 2.8.
There is a warning in the PHP manual that none of the
"all-in-one"
packages are endorsed by php.net. The fact that EasyPHP can't
be
bothered to update to more recent versions is one reason you
shouldn't
rely on such packages.
> You still keep getting the error message that it cannot
find MMHTTPDB which is
> sitting clearly in the appropriate folders!!
If it were sitting in the appropriate folder, Dreamweaver
would find it.
It sounds as though you haven't defined your testing server
correctly.
To start off with, the site files must be in the Apache
server root. In
the testing server definition, enter the location of the
files in
testing server folder, and the correct URL in URL prefix.
On my setup, the Apache server root is C:\htdocs. So the
correct
settings for a site called "mysite" is as follows:
Server model: PHP MySQL
Access: Local/network
Testing server folder: C:\htdocs\mysite\
URL prefix:
http://localhost/mysite/
However, you may still have problems connecting to MySQL with
EasyPHP,
because it uses PHP 4.3 in combination with MySQL 4.1. You
may need to
set up your MySQL passwords using the OLD_PASSWORD protocol:
http://dev.mysql.com/doc/refman/5.0/en/old-client.html
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/ -
Connecting Crystal report with MySql
Post Author: brajbhushan
CA Forum: Data Connectivity and SQL
hi all
i m trying to connect crystal reports XI Release 2 to MySql 5.0 using ODBC.Problem is that after connecting it successfully it shows only few fields of our table in database when i see it in Database Expert of Crystal Reports. The second problem is that the fields don't have any data with them. Can anyone guide me is there any problem with Crystal Reports while connecting to MySql. Is there any Compatibilty Problem of DataType in Crystal Reports while using MySql.
ThanksMoved to .NET SDK forums
First issue is CR 10 has not been tested nor is it supported in VS 2010.
To use CR in VS 2010 download [CR for VS 2010|Crystal Reports for Visual Studio 2010 Production Release Now Available;
Likely what your problem is is you are not setting or replacing the database connection info but without more info I can't suggest how to fix it. It could also be that you have set your framework to 4.0, CR 10 is FW 1.1 or possibly 2.0 only.
Or you may even be trying to use the craxddrt.dll which is again no longer supported not are you licensed to use it or distribute it.
Also you'll likely run into version problems with IIS. I believe CR 10 only supported IIS 5 but check the platforms PDF for more info.
Good luck.
Don -
How to connect MS SQL Server 2000 with JDeveloper 11g
Hi,
I am new to JDevleoper, Is it possible to connect MS SQL Server 2000 with JDeveloper 11g.
If possible can anyone help me in doing that?
waiting for ur reply...
Thanks in advance
Regards,
reddyShay or other knowledgeable folks,
Is there a way to utilize the wizard for "Business Tier > ADF Business Components > Business Components from Tables" for SQL Server 2000, 2005 or 2008. I can successfully execute sql via java programmatically or import a table from SQL Server with "Business Tier > ADF Business Components > Entity Object" wizard, but the Business Components from Tables simply doesn't see any tables under any schema. Without the "Business Components from Tables", i don't get the referential constraints imported into the application and to code all those from scratch is just not as elegant. So far i have only utilized the sql server jdbc driver from Microsoft (versions, 1.1, 1.2 and 2.0). Is there an alternative client that i need to use to enable selecting tables from that "Business Components from Tables" wizard. Is this a limitation of SQL Server, the jdbc driver or the wizard itself? Did anybody else experience the same issues? I am using Jdeveloper 11.1.1.0.1 against SQL Server 2005 (currently)
Thanks,
Andy -
Database connectivity in struts with mysql
Hi,
I want to database connectivity in struts with mysql in struts-config.xml file. I have give the code in struts-config.xml file is given below...................
<data-sources>
<data-source key="dbname" type="org.apache.commons.dbcp.BasicDataSource" >
<set-property property="driverClassName" value="com.mysql.jdbc.Driver" />
<set-property property="url" value="jdbc:mysql://localhost:3306/antrowinnovation" />
<!-- <set-property property="username" value=""/>
<set-property property="password" value="indra" /> -->
</data-source>
</data-sources>
And give the code in Action class is given below...
int i=0;
Connection con;
Statement stmt;
DataSource dataSource = (DataSource)servlet.getServletContext().getAttribute("dbname");
System.out.println(dataSource);
try{
System.out.println("Database connecting....");
con=dataSource.getConnection();
stmt=con.createStatement();
System.out.println("Database connected....");
i=stmt.executeUpdate("insert into login values('" + username + "','" + password + "')");
System.out.println("Values inserted....");
}catch(Exception e){
System.out.println(e.getMessage());
System.out.println("Exception in try");
e.printStackTrace();
return 0;
But when i have run this then i got this Exception....
INFO: Initialize action of type: login.LoginAction
null
Database connecting....
null
Exception in try
java.lang.NullPointerException
at login.LoginAction.insertUser(LoginAction.java:27)
at login.LoginAction.execute(LoginAction.java:47)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Plz help me..Read some Struts tutorial.
-
OCI Connection with JDeveloper
As in the JDeveloper Forum noone can help, I will post this here.
I tried to connect to an Oracle 9i Rel. 2 DB with JDeveloper. With the classes12.jar (etc.) shipped with JDeveloper this is not possible. I replaced them with classes12.jar from the Oracle Client software. Now this works great. But I can't use object types with the classes12.jar from the Oracle Client - this only works with the JDeveloper version! :-(
As I am using JDK1.4.1_01 I tried the new JDBC drivers, but the application crashed with a NoSuchMethodException. Any ideas what else I could try?
Thanks
AxelHi Axel,
Are you sure that JDev is certified with JDK 1.4.
if it does then, you might want to try upgrading the client to Oracle9i v9.2 and use ojdbc14.jar from the client install to connect.
Regards
Elango. -
Connection pool issues with Mysql
Hi,
I have defined sufficient read connections (50) in the toplink configuration, I am finding toplink is not releasing the connections in Mysql, this is when run from Jboss App server.
Is anyone aware of toplink connection pool issues with MySql?
thanksTopLink always closes connections, I cannot see how this could occur.
Please include your persistence.xml or sessions.xml. Also ensure you are closing your EntityManager or ClientSession, especially if using exclusive connections.
Also include the exception you are getting.
James : http://www.eclipselink.org -
CONNECTING TO MySql DATABASE FROM Jdeveloper
Hi,
How can i connect to MySql database form Oracle Jdeveloper version 11.1.2.0.0.
I was trying to create connection using create database connection dialog box but it is giving this error:
Test failed: Driver class not found.
Verify the Driver location
Please can I get step by step procedure on how to create this connection.
Thanks.Connect JDeveloper to a MySQL database - YouTube
http://people.cis.ksu.edu/~hankley/d764/tut06/Ross_mySQL/mySQL.htm
Hil &amp; Co IT Solutions: Connecting to MySQL in JDeveloper -
MySql with JBoss connection refused
hello,
I am using MYSql with JBOSS, but while running starting JBOSS it
gives
Connection refused error:
MySqlDB] at java.net.PlainSocketImpl.socketCon
MySqlDB] at java.net.PlainSocketImpl.doConnect
MySqlDB] at java.net.PlainSocketImpl.connectTo
MySqlDB] at java.net.PlainSocketImpl.connect(U
MySqlDB] at java.net.Socket.<init>(Unknown Sou
MySqlDB] at java.net.Socket.<init>(Unknown Sou
MySqlDB] at org.gjt.mm.mysql.MysqlIO.<init>(My
MySqlDB] at org.gjt.mm.mysql.jdbc2.IO.<init>(I
MySqlDB] at org.gjt.mm.mysql.jdbc2.Connection.
159)
MySqlDB] at org.gjt.mm.mysql.Connection.connec
MySqlDB] at org.gjt.mm.mysql.jdbc2.Connection.
va:89)
MySqlDB] at org.gjt.mm.mysql.Driver.connect(Dr
MySqlDB] at java.sql.DriverManager.getConnecti
MySqlDB] at java.sql.DriverManager.getConnecti
MySqlDB] at org.opentools.minerva.jdbc.xa.wrap
nnection(XADataSourceImpl.java:118)
MySqlDB] at org.opentools.minerva.jdbc.xa.wrap
nnection(XADataSourceImpl.java:151)
MySqlDB] at org.opentools.minerva.jdbc.xa.XACo
(XAConnectionFactory.java:246)
MySqlDB] at org.opentools.minerva.pool.ObjectP
ol.java:819)
MySqlDB] at org.opentools.minerva.pool.ObjectP
a:569)
MySqlDB] at org.opentools.minerva.pool.ObjectP
a:521)
MySqlDB] at org.opentools.minerva.jdbc.xa.XAPo
APoolDataSource.java:165)
MySqlDB] at org.jboss.jdbc.XADataSourceLoader.
der.java:330)
MySqlDB] at org.jboss.util.ServiceMBeanSupport
ava:93)
MySqlDB] at java.lang.reflect.Method.invoke(Na
MySqlDB] at com.sun.management.jmx.MBeanServer
java:1628)
MySqlDB] at com.sun.management.jmx.MBeanServer
java:1523)
MySqlDB] at org.jboss.util.ServiceControl.star
MySqlDB] at java.lang.reflect.Method.invoke(Na
MySqlDB] at com.sun.management.jmx.MBeanServer
java:1628)
MySqlDB] at com.sun.management.jmx.MBeanServer
java:1523)
MySqlDB] at org.jboss.Main.<init>(Main.java:21
MySqlDB] at org.jboss.Main$1.run(Main.java:121
MySqlDB] at java.security.AccessController.doP
MySqlDB] at org.jboss.Main.main(Main.java:117)
I used the following tag in in JBOSS.jacml
<!-- MYSQL -->
<mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=MySqlDB">
<attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
<attribute name="PoolName">MySqlDB</attribute>
<attribute name="URL">jdbc:mysql://192.168.0.6/AccountingDb:3333</attribute>
<attribute name="Properties">DatabaseName=AccountingDb</attribute>
<attribute name="JDBCUser"></attribute>
<attribute name="Password"></attribute>
<attribute name="MinSize">0</attribute>
<attribute name="MaxSize">10</attribute>
<attribute name="GCEnabled">false</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="InvalidateOnError">false</attribute>
<attribute name="TimestampUsed">false</attribute>
<attribute name="Blocking">true</attribute>
<attribute name="LoggingEnabled">false</attribute>
<attribute name="IdleTimeoutEnabled">false</attribute>
<attribute name="IdleTimeout">1800000</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
</mbean>
<!-- END MYSQL -->
and JDBC tag is
<!-- JDBC -->
<mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
<attribute name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,com.pervasive.jdbc.v2.Driver,org.gjt.mm.mysql.Driver</attribute>
</mbean>
plz help me out
thanks
bhuwanI am just use that ...But it works...!!
MySQL is Runing good ...
the problem is that you must reset the defaultDS,
to be Mysql.
So,Jboss must have only one DefaultDS,
In My Setup...
1.standardjaws.xml
<?xml version="1.0" encoding="UTF-8"?>
<jaws>
<datasource>java:/mySQL</datasource>
2.jboss.jcml (must changed as followed)
<!-- JDBC -->
<mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
<attribute name="Drivers">org.gjt.mm.mysql.Driver</attribute>
</mbean>
<mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=mySQL">
<attribute name="PoolName">mySQL</attribute>
<attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
<attribute name="Properties"></attribute>
<attribute name="URL">jdbc:mysql://localhost/j2ee</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="JDBCUser" />
<attribute name="MaxSize">10</attribute>
<attribute name="Password" />
<attribute name="GCEnabled">false</attribute>
<attribute name="InvalidateOnError">false</attribute>
<attribute name="TimestampUsed">false</attribute>
<attribute name="Blocking">true</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="IdleTimeout">1800000</attribute>
<attribute name="IdleTimeoutEnabled">false</attribute>
<attribute name="LoggingEnabled">false</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
<attribute name="MinSize">0</attribute>
</mbean> -
Connecting Oracle 11g with MySQL 5.1
Hey all,
I've been looking all over the web for this, and I can't find any information that applies to my case. I have an Oracle 11g DB setup on a Windows Server 2003 SP2, and have installed the Heterogeneous services ODBC driver. I want to connect this to another Windows 2003 SP2 machine that runs MySQL Community.
On the Oracle side, I have configured the ODBC Systems connection to MySQL, and it connects successfully. I have also configured tnsnames.ora as follows:
mysqlecommerce=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=dvlps11.cosine.com.cy)
(PORT=1521)
(CONNECT_DATA=
(SID=mysql_gateway))
(HS=OK))
I have initmysql_gateway.ora with the following two lines:
HS_FDS_CONNECT_INFO = mysqlecommerce
HS_FDS_TRACE_LEVEL = ODBC
and I have included the following into the listener.ora file:
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=mysql_gateway)
(ORACLE_HOME=C:\Oracle11g\product\11.1.0\db_1)
(PROGRAM=dg4odbc)
I have also created a dblink as follows:
create public database link "MYSQLECOMMERCE"
connect to MYSQLDB
identified by "<pwd>"
using 'mysqlecommerce';
Now when I try to run a simple SQL selection such as:
select "id_category" from "ps_category"@mysqlecommerce
I get the following reply:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[MySQL][ODBC 5.1 Driver][mysqld-5.1.36-community-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"id_category" FROM "ps_category" A1' at line 1
ORA-02063: preceding 2 lines from DG4ODBC
Can anyone please help me understand what is going on?
Thank you in advance!The syntax error is caused by your MySQL database not running in ANSI mode. By default DG4ODBC sends ansi compliant code to the foreign database and this means for case sensitive column and table names it surrounds them by double quotes. MySQL db not running in ANSI compliant mode rejects them and uses a back tick to preserver the case - thus it reports a syntax error in case of double qoutes.
To solve the issue please have a look at My Oracle Support note:
Problems Selecting Mysql Data Using 11.1.0.6 DG4ODBC - Error In Your SQL Syntax [ID 553030.1]
Maybe you are looking for
-
Dynamic File name in sender file adapter
Hello, We have a requirement to pull files from our vendor's SFTP folder, the file will be pulled once a day however the file would remain in the folder for 45 days. The filename follows the pattern STL-20110425.01.002.TAB where the date keeps chang
-
B&W G3: Reset mobo/new batt. won't help - no chime, just fans/HD
So I decide to give this old G3 I had one last boost from what was already a snappy machine. - Rev. 1 mobo - Powerlogix 800Mhz 750FX 512k L2 cache (G3) - 1 GB RAM - ATI 9200 128 MB PCI - SIIG ATA card - 2 HDs connected. - USB 2.0 4 port card - FW400
-
Time Machine has stopped backing up to my Seagate Backup Plus.
My external drive is formatted for Mac OS and has worked since January with no problem. Now, all of a sudden, it will not backup and I cannot see any of my backups for the last 30 days. I have tried using disk utility to verify the disk, but keep g
-
How to build a part-hierarchy ?
Hi specialists, I fear the topic is not very descriptive. Here's my scenario and problem: A hierarchy (customers) is loaded from the R/3-system to the business warehouse. Unfortunately the Customers don't start on Level 1 of that hierachy - but o
-
Part of screen not responding to touch
The right-hand side of the screen does not react when I touch it, e.g. if I want to write a not or message, the P, Backspace and 0 dont work anymore. It seems tho have a hardware problem (screen sensitivity).