Unidentified error connecting to MySql
I’m almost embarrassed to post this question because
there seems to be plenty of the same issue already here. On the
other hand I’m not as embarrassed as the developer who
created such a useless message as “unidentified error”
.... but that’s another story.
I’ve reviewed those other messages & solutions and
still get this error.
I’m running Dreamweaver MX version 6.1 under Windows XP
and trying to connect to a local MySql database.
I have no problem connecting to the local database using
several other applications (including Navicat) so I think my set up
is okay.
I’ve also tested the connection with my browser (
http://localhost/mysite_root/test-connect.php)
and that test was successful.
I have defined the document type (PHP of course) and testing
server models.
I am attempting to use the + sign in the databases tab and
navigate to the MySql database and that is when the
“unidentified error” occurs.
I have tried removing the connection scripts.
I have downloaded and applied updates from the Adobe web
site.
One posting mentioned modifying the php.ini file, but it is
unclear what to change or even why that would be necessary since
everything else works.
I admit that establishing this MySql connection should be a
no-brainer that takes minutes not hours. But I’m out of
ideas.
TheLark wrote:
> I appreciate the reply. My URL prefix is exactly as you
said it should be.
> And for whatever its worth, the local root folder and
the testing server folder
> point to:
> C:\Program Data\Websites Apache\htdocs\mysite_root\
Your settings seem to be correct. Other likely causes of the
"Unidentified error" are:
* MySQL isn't running (since you can connect with Navicat,
that's
probably not applicable).
* A software firewall is preventing connection between
Dreamweaver and
MySQL.
* You have old versions of the hidden connection scripts. I'm
not sure
if this option is available in MX 6.1, but go to Site >
Advanced, and
select Remove Connection Scripts. Then create a new MySQL
Connection in
Dreamweaver. This replaces the contents of a hidden folder
called
_mmServerScripts, which controls communication between
Dreamweaver and
MySQL.
The reason you get "Unidentified error" is because
Dreamweaver cannot
even communicate with MySQL, and therefore cannot identify
the problem.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Similar Messages
-
Error connecting to MySQL database
Well I am a beginner trying to get the basics of JDBC. I am following a simple connection tutorial and I cannot even make this work. I receive an error when I run the program. It is a nested error that begins with "java.io.EOFException". I'm thinking it has something to do with the URL I am using to connect to the database. Any ideas?
Here is the code I am using if that helps at all.
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class jdbctry {
public static void main(String args[]) {
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://url:port/database",
if(!con.isClosed())
System.out.println("Successfully connected to " +
"MySQL server using TCP/IP...");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
} finally {
try {
if(con != null)
con.close();
} catch(SQLException e) {}
} edit- I think the problem was I had a bad port number assigned to the URL. This time I got a "java.net.SocketException" error. It says my connection timed out.
Message was edited by:
lw22I'll assume that you've substituted appropriate values into that connection URL, right?
It s
// host = IP address or name of machine where MySQL is listening
// port = 3306 (default)
// database = instance you wish to connect to
// username, password have to be GRANTed access rights.
String url = "jdbc:mysql://host:port/database";Can you connect using the MySQL client and see the database you want in Java? If the client can't connect, neither can JDBC.
% -
Plz help me--error connecting to MySQL server
While trying to connect to the MySQL server database,
SqlConn = DriverManager.getConnection("jdbc:mysql://" + "database_server_addr/database_name?user=kiosk&password=!xyzabc");
I get the following error.
Error while connecting to mysql
Communication link failure: null
Notice the ! symbol(exclamation mark) present in the connection string above for the password value i.e., !xyzabc
Is the problem with the ! symbol in my password, coz I am able to connect
if I changed my password omitting the ! symbol. But I would like to connect with the ! symbol in the password. Any quick help is appreciated.
Thanks,
Bussa.
[email protected]specify the database Server address, you can't do it with the "HTTP URL"
String url = "jdbc:mysql://xxx.xxx.xxx.xxx";
Class.forName("mySql spec");
Connection con = DriverManager.getConnection(url,"user", "pass"); -
Error connecting to mysql via ODBC
Hi folks,
I set up Oracle Database Gateway for ODBC with mysql driver (I tried mysql-connector-odbc-5.1.11-1.x86_64.rpm (currently used and log output shown) and mysql-connector-odbc-5.2.2-1.x86_64.rpm). I am unable to create a connection to the mysql database.
Here are the parameters:
Oracle database: 11gR2, AL32UTF8 , Suse SLES11 64 Bit
Oracle Database Gateway for ODBC: installed on Suse SLES10, 64 Bit
ODBC DSN: ona_nb
initona_nb.ora in /opt/oracle/product/11.2.0/gtw_odbc/hs/admin:
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO=ona_nb
HS_FDS_TRACE_LEVEL=255
HS_FDS_SHAREABLE_NAME =/usr/lib64/libmyodbc5.so
HS_LANGUAGE=AMERICAN_AMERICA.ISO8859P1
#HS_TRANSACTION_MODEL=READ_ONLY
#HS_FDS_SQLLEN_INTERPRETATION=32
# ODBC specific environment variables
set ODBCINI=/home/oracle/odbc/ona_nb-odbc.ini
set ODBCINSTINI=/home/oracle/odbc/ona_nb-odbc.ini
(I tried diffenet Language settings or no language setting at all, slightly different ..../hs/log trace files)
ODBC file:
ona_nb-odbc.ini :
[ODBC Data Sources]
ona_nb= MySQL ODBC Driver 5.2.2-1
[ona_nb]
Driver = /usr/lib64/libmyodbc5.so
DATABASE = ona_default
DESCRIPTION = MySQL Verbindung zur ona V11 Datenbank auf Christians Notebook
PORT = 3306
SERVER = cwolbert.gsi.de
UID = oreader
PWD = xxxxxx
[ODBC]
TRACEFILE = /tmp/mysql-odbc-ona_nb.trc
TRACE = Yes
ForceTrace = Yes
set LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/
Listener.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = gridrep.gsi.de)
(ORACLE_HOME = /opt/oracle/product/11.2.0/dbhome_3)
(SID_NAME = gridrep)
(SID_DESC=
(SID_NAME=ona_nb)
(ORACLE_HOME=/opt/oracle/product/11.2.0/gtw_odbc)
(PROGRAM=dg4odbc)
(ENVS=LD_LIBRARY_PATH=/usr/lib64:/opt/oracle/product/11.2.0/gtw_odbc/lib)
Trying
select * from locations@ona_nb
whre ona_nb is the dblink
CREATE DATABASE LINK "ONA_NB.GSI.DE"
CONNECT TO OREADER
IDENTIFIED BY <PWD>
USING 'ona_nb';
I get the error
ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=ORA-28511: RPC-Verbindung zu heterogenem Remote Agent mit SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pcora11.gsi.de)(PORT=1521))(CONNECT_DATA=(SID=ona_nb))) abgebrochen abgebrochen
ORA-02063: vorherige line von ONA_NB
and here is the trace file from hs/log. I am unable to create any ODBC trace file, fiddling around with differnt settings
Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.114
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- FRIDAY NOV 23 2012 15:37:21.113
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "ona_nb"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:ona_nb
Exiting hgogprd, rc=0
hostmstr: 0: HOA After hoagprd
hostmstr: 0: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=873
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=873
HOCXU_SEM_VER=112000
Entered hgolofn at 2012/11/23-15:37:21
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libmyodbc5.so"
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLAllocHandle
symbol_peflctx=0xaab3f456
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindCol
symbol_peflctx=0xaab44ce3
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLBindParameter
symbol_peflctx=0xaab4342c
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLCancel
symbol_peflctx=0xaab3e6e5
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLDescribeParam
symbol_peflctx=0xaab4346b
.... many similar stuff
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLStatisticsW
symbol_peflctx=0xaab477de
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Entered hgolofns at 2012/11/23-15:37:21
libname=/usr/lib64/libmyodbc5.so, funcname=SQLTablesW
symbol_peflctx=0xaab47a16
hoaerr:0
Exiting hgolofns at 2012/11/23-15:37:21
Exiting hgolofn, rc=0 at 2012/11/23-15:37:21
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2012/11/23-15:37:21
hostmstr: 0: HOA After hoainit
hostmstr: 0: HOA Before hoalgon
Entered hgolgon at 2012/11/23-15:37:21
reco:0, name:OREADER, tflag:0
Entered hgosuec at 2012/11/23-15:37:21
Exiting hgosuec, rc=0 at 2012/11/23-15:37:21
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using OREADER as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2012/11/23-15:37:21
HS_FDS_CONNECT_INFO = "ona_nb"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2012/11/23-15:37:21
dsn:ona_nb, name:OREADER
optn:
Entered hgocip at 2012/11/23-15:37:21
dsn:ona_nb
Exiting hgocip, rc=0 at 2012/11/23-15:37:21
##>Connect Parameters (len=33)<##
## DSN=ona_nb;
#! UID=OREADER;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2012/11/23-15:37:21
Entered hgopoer at 2012/11/23-15:37:21
hgopoer, line 233: got native error 0 and sqlstate H; message follows...
Exiting hgopoer, rc=0 at 2012/11/23-15:37:21
hgocont, line 2752: calling SqlDriverConnect got sqlstate H
Using no HS_LANGUAGE or HS_LANGUAGE=AMERICAN_AMERICA.AL32UTF8
I still get the same error meassages and logs.
Can you help please?
Cheers MichaelHi Klaus,
I think the unixODBC driver manager is installed
I have:
oracle@pcora11:/opt/oracle/product/11.2.0/gtw_odbc/hs/log> odbcinst -j
unixODBC 2.2.11
DRIVERS............: /etc/unixODBC/odbcinst.ini
SYSTEM DATA SOURCES: /etc/unixODBC/odbc.ini
USER DATA SOURCES..: /home/oracle/.odbc.ini
and
cat /etc/unixODBC/odbcinst.ini
[MySQL ODBC 5.1 Driver]
Driver = /usr/lib64/libmyodbc5.so
UsageCount = 1
but the two file for SYSTEM and USER DSN are empty.
I tried now:
HS_FDS_SHAREABLE_NAME =/usr/lib64/libodbc.so
and
HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1
and the result is still the same, what I posted in the prevoius answer to Mike,
ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zur³ck:
[unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user
'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
ORA-02063: vorherige 2 lines von ONA_NB
and in the trace file:
##>Connect Parameters (len=33)<##
## DSN=ona_nb;
#! UID=OREADER;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2012/11/26-13:25:50
Entered hgopoer at 2012/11/26-13:25:50
hgopoer, line 233: got native error 1045 and sqlstate HY000; message follows...
[unixODBC][MySQL][ODBC 5.1 Driver]Access denied for user 'OREADER'@'pcora11.gsi.de' (using password: YES) {HY000,NativeErr = 1045}
Exiting hgopoer, rc=0 at 2012/11/26-13:25:50
hgocont, line 2752: calling SqlDriverConnect got sqlstate HY000
Exiting hgocont, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgocont.c LINE:2772 FUNCTION:hgocont() ID:Something other than invalid authorization
Exiting hgolgon, rc=28500 at 2012/11/26-13:25:50 with error ptr FILE:hgolgon.c LINE:781 FUNCTION:hgolgon() ID:Calling hgocont
hostmstr: 0: HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 0: RPC Before Exit Agent
hostmstr: 0: HOA Before hoaexit
Entered hgoexit at 2012/11/26-13:25:50
Exiting hgoexit, rc=0
hostmstr: 0: HOA After hoaexit
hostmstr: 0: RPC After Exit Agent
Even if I copy the content of ona_nb-odbc.ini file to /etc/unixODBC/obc.ini
I still get the same error.
Any ideas?
Michael -
Error Connecting to MySql (character set index '49')
I downloaded the Oracle Sql Developer extensions and went to Tools / Preferences / Third Part and set the location for the Jar file.
When I try and test the connection to the MySql database I get this error:
An error was encountered performing the requested operation:
Unknown initial charater set index '49' received from the server.
Initial client character set can be forced via the 'characterEncoding' property.
Vendor code 0
My dba's used Sql developer to connect to the same MySql database fine. If I use MySql Workbench, I can connect. (I prefer Sql Developer, so I was hoping to get this connection to work.)
I even tried going to MySql to get their Connection/J JDBC jar file; but the same results.
Any suggestions?
Thanks,
MikeAre your colleagues using the same sqldev/JDBC versions? Which?
Did you follow the guide on setting it up, and the driver from http://dev.mysql.com/downloads/connector/j/ ?
K. -
Error connecting to MySQL database using JNDI
Hi,
I'm trying to do a simple connection to a MySQL database using the JNDI look-up
method.
Have tried this with the PointBase database that came with WebLogic and got it
to work successfully.
However got the attached error message when I tried it on MySQL database. I tried
this with both the WebLogic's driver for MySQL and also the one I downloaded from
MySQL (com.mysql.jdbc.Driver), and both failed with the same error message.
Offhand, it doesn't look like the connection pool is failing. Tested it with WebLogic's
"Test Pool" function and it was alright.
Also MySQL database is working properly. Test this by doing simple connection
and retrieval with simple JDBC connections and it works.
Any ideas what else I can check with regards to this problem?
Thanks!
[att1.html]Hi Joe,
Attached is the config.xml for the domain that I'm working with. There are 3 connection
pools set-up.
The problematic Connection Pools are "MySQLCP" and "My JDBC Connection Pool"
Thanks for your help in this!
Joe Weinstein <[email protected]> wrote:
show us the pool definition, as it is in the config.xml file.
thanks
joe
Everbright wrote:
Hi,
I'm trying to do a simple connection to a MySQL database using theJNDI look-up
method.
Have tried this with the PointBase database that came with WebLogicand got it
to work successfully.
However got the attached error message when I tried it on MySQL database.I tried
this with both the WebLogic's driver for MySQL and also the one I downloadedfrom
MySQL (com.mysql.jdbc.Driver), and both failed with the same errormessage.
Offhand, it doesn't look like the connection pool is failing. Testedit with WebLogic's
"Test Pool" function and it was alright.
Also MySQL database is working properly. Test this by doing simpleconnection
and retrieval with simple JDBC connections and it works.
Any ideas what else I can check with regards to this problem?
Thanks!
Error 500--Internal Server Error
java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:MyJDBCConnection Pool, props = {enableTwoPhaseCommit=false, jdbcTxDataSource=true,
connectionPoolID=MyJDBC Connection Pool, dataSourceName=MyJDBC Data
Source}.
Nested Exception: java.lang.RuntimeException: Failed to Generate WrapperClass
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:242)
at weblogic.jdbc.pool.Driver.connect(Driver.java:158)
at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:444)
at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
at jsp_servlet.__index._jspService(__index.java:142)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
at weblogic.jdbc.jts.Driver.wrapAndThrowSQLException(Driver.java:395)
at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:448)
at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
at jsp_servlet.__index._jspService(__index.java:142)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
[config.xml] -
Error connecting to mySQL...
I have been testing JSP and get a strange error at this line:
Class.forName("org.gjt.mm.mysql.Driver");
The error message: http://www.hyrum.net/therecord/index.jsp
Any ideas?Yes I have since changed it to have the NewInstance call. I was missing the jar file and then I also needed to change the mysql.users file.
Apparently localhost is treated differently by JSP so it returns localhost.localdomain instead of just localhost.
So I got it going yesterday :) Thanks guys. -
"An unidentified error has ocurred" when connecting to mySQL in Dreamweaver MX
Hi All,
I've been trying & failing to figure this out for 2 days. I hope someone can help! I installed xampp on my local machine, got the Apache server, phpMyAdmin, and SQL up and running. My next step is to connect to my MySQL database in Dreamweaver MX. This where I'm running into trouble.
I've given super access rights to several db users in my MySQL database just to be sure that it wasn't a matter of not-enough-permissions. Here is a screenshot of the privileges: http://www.skyebrannon.com/db_privs.jpg
I am sure my connection information is correct, as I've used it to create a php page that lists my database tables.Those are working just fine Here is my info:
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "dbpassword";
$dbname = "camin0_music";
When I put the same information in my MySQL Connection, I get "An unidentified error has occured".
Here is a screenshot of the error and my (working) connection info:
http://www.skyebrannon.com/db_error.jpg
My apologies if this has been asked & solved. If I missed a thread that answes this, could you please let me know?
Thanks so much!
SkyeHi All,
I've been trying & failing to figure this out for 2 days. I hope someone can help! I installed xampp on my local machine, got the Apache server, phpMyAdmin, and SQL up and running. My next step is to connect to my MySQL database in Dreamweaver MX. This where I'm running into trouble.
I've given super access rights to several db users in my MySQL database just to be sure that it wasn't a matter of not-enough-permissions. Here is a screenshot of the privileges: http://www.skyebrannon.com/db_privs.jpg
I am sure my connection information is correct, as I've used it to create a php page that lists my database tables.Those are working just fine Here is my info:
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "dbpassword";
$dbname = "camin0_music";
When I put the same information in my MySQL Connection, I get "An unidentified error has occured".
Here is a screenshot of the error and my (working) connection info:
http://www.skyebrannon.com/db_error.jpg
My apologies if this has been asked & solved. If I missed a thread that answes this, could you please let me know?
Thanks so much!
Skye -
I have been unable to create a database connection in dreamweaver to my MySql
server. Each time I receive the message "an unidentified error has occurred".
I can use pure php code to create a connection successfully:
<?php
$username = "root";
$password = "password";
$hostname = "localhost";
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to mysql");
print "connected to mysql<br>";
$selected = mysql_select_db("test",$dbh)
or die("Could not select first_test");
if (mysql_query("insert into test_table values('5')")) {
print "successfully inserted record";
else {
print "Failed to insert record";
mysql_close($dbh);
?>
This works, I can successfully insert a record. However, if I try and create
a connection in Dreamweaver with these same variables, I receive the message
"an unidentified error has occurred". I have tried, deleting the _mm
connection scripts folder and recreating them. I have used the mx2004 updater,
I have tried all document types... nothing seems to work...
i am using local server (phptraid)
PHPTriad 2.2 contains the following changes:
Updated packages for Apache(1.3.23), MySQL(3.23.48) and PHP(4.1.1).
also using remote host at (www.0fees.net)
last thing i would to say in my computer i success only one time to make connection in window 7 - dreamweaver cs4
and i create this site mwlobby.0fees.net
but now i downloaded dreamweaver cs5 and i need to install new windows
so i need help
any suggestions?Turn your iPhone to a DFU mode and restore it
-
Unidentified Error when connecting DW with MySql
Hi
I am trying to connect to Mysql Database which is hosted by a hosting company on their server. I have been given a static IP address and port to access this database remotely. I have add the information below to DW 8 in an attempt to gain access the info is below. I get an unidentified error when i test the connection i don't know where to put this static IP and port. Can someone help thanks
DW information is as follows:
My login is
username buildingbids
password ********
I am trying to connect from dreamweaver
Details of that are below
Local Info
Sitename buildingbids
Local root folder C:\Documents and Settings\Main User\My Documents\WEB SITES\buildingbids\
HTTP address http://www.buildingbids.ie
Remote Info
Access FTP
FTPhost ftp1.reg365.net
Host Directory web
Login buildingbids.ie
Password ******
This works when i test it
Testing Server
Server Model PHP MySQL
Access FTP
FTPhost ftp1.reg365.net
Host Directory web
Login buildingbids.ie
Password kevinmac
This works when i test it
URL Prefix http://ftp1.reg365.net/
When i go to test the connection i get a message saying an unidentified error has occured.
My connbuildingbids code is
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connbuildingbids = "ftp1.reg365.net";
$database_connbuildingbids = "buildingbids";
$username_connbuildingbids = "buildingbids";
$password_connbuildingbids = "kevinmac";
$connbuildingbids = mysql_pconnect($hostname_connbuildingbids, $username_connbuildingbids, $password_connbuildingbids) or trigger_error(mysql_error(),E_USER_ERROR);
?>
My connection criteria is
Connection name connbuildingbids
MySql Server mysql1.mylogin.ie
Username buildingbids
Password *********
Database buildingbidsYes they only allow it with a static IP address which i have and have been granted Remote access
I have gone to a different server and now my code is like this
My connbuildingbids code is
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connbuildingbids = "bono.hostireland.com";
$database_connbuildingbids = "buildingbids";
$username_connbuildingbids = "buildingbids";
$password_connbuildingbids = "*********";
$connbuildingbids = mysql_pconnect($hostname_connbuildingbids, $username_connbuildingbids, $password_connbuildingbids) or trigger_error(mysql_error(),E_USER_ERROR);
?>
My connection criteris is
Connection name connbuildingbids
MySql Server bono.hostireland.com
Username buildingbids
Password *************
Database buildingbids
I get a different error now it says
Mysql error #:1045 access denied for Buildingbids@localhost (Password:Yes)
so it looks like its looking locally for the database by default and i cant stop it. I did orriginally have MySql set up on my pc and had done some test databases but i have deleted everything now even MySql but i still get this error so i am missing something. Does anyone know why or how can i stop it defaulting locally. Thanks -
Connecting to mysql returns unidentified error
I'm running apache 2.2.something locally and am able to
notepad a php script that queries mysql so i figure i'm set up
right. I keep getting an "unidentified error" when trying to set up
dreamweaverMX to connect to my database... any suggestions?I think... MAYBE... I found my problem here. But first some
background:
I bought DW for one thing: the application objects. Adobe
removed dynamic content from GL before I could use it, and that was
a big disappointment. So I bought DW ONLY for the database
functions, and was using it along with GL to manage my sites.
Because of this I ended up with multiple _mmServerScripts
folders for this one site. I finally moved the DW code to the
httpsdocs (note the S!) folder. I left the hidden _mmServerScripts
folder behind for a while in httpdocs because I didn't see it.
So after I had everything working on the https side I started
to clean up all those folders from the http side. I deleted the
_mmServerScripts folder but didn't see anything break because I
wasn't using DW, just a browser. I've learned that DW is the only
thing that uses those two files, so I guess that's why everything
was working fine using the browser.
Anyway... the fix:
In the site definition - Basic (I can't find it in
Advanced?!?) - on the fifth page "What URL would you use to browse
to the root of your site?" I answered with:
http://www.domain.com ( NO "S" )
BUT EVERYWHERE ELSE I answered with https://www.domain.com (note
the S !) All the forms and scripts I created with DW are in
httpsdocs now. Everything runs with the browser using https:// !
I then manually copied the _mmServerScripts folder to:
http://www.domain.com/_mmServerScripts,
changed the ownership to match the other files (don't know if I had
to but I did) and now everything works.
So I have two _mmServerScripts folders. One in httpsdocs and
one in httpdocs. If I delete the one in httpsdocs it reappears when
I test the db connection. If I delete the one in httpdocs I get a
404 file not found when I test it. I put it back and it works!
Is anyone laughing at this yet! :-)
If I put the S back in the 'browse to' url I get the
unidentified error again. Take it out and it works! I can edit
record sets again etc. etc....
I've wasted a few days on this. Maybe it will help someone
else.
Burke -
MySql connection error message "An unidentified error has occurred"
I am trying to connect the Mysql database with dreamweaver
but I keep getting the following error message:
"An unidentified error has occurred". any idea what is wrong?
Any help will be appreciated.
SC XiouSCXiou wrote:
> I am trying to connect the Mysql database with
dreamweaver but I keep getting
> the following error message:
> "An unidentified error has occurred".
There are two common reasons for that happening:
1. An incorrect testing server definition, or
2. A software firewall is blocking access between MySQL and
Dreamweaver.
David Powers
Adobe Community Expert, Dreamweaver
http://foundationphp.com -
Can't connect to mysql - unidentified error
I am new at this. I created a PHP page and I want to connect to mysql on my host's server. I can connect to my server as I can upload my site. When I click on my database - MYSQL connection in dreamweaver I populate the appropriate informatioin. When I hit test I get an unidentified error It doesn't appear it is connecting to my database. My cpanal and database appear to be set up so I can access it remotely.
YUUGGG. Since I can connect to my server to upload my site, I have verified I should be ok with accessing the database remotely what could be the problem?Connection name = database
MySQL server: 174.120.152.211 (I was told to use this by my hosting company since I was accessing the file remotely
Use name: jake_jake
Password - password for database
datebase = database name
What's weired is I can connect to upload my site but when I try to connect to get my database I can't. -
Unidentified error when connecting to Mysql server
Hello,
I have two computers. Both computer 1 is configured with dreamweaver cs5 and is successfully connected to the ftp server and its database.
Computer 2 on the other hand with the same version of Dreamweaver and the same settings gives me an unidentified error when I try connecting to the database. I spoke to help chat for my server and confirmed all of the fields are entered in correctly and that I have allowed access to my server from any IP!
I have tried re-installing !
Localhost with Xampp works also!
No success !Are you using any firewall/antivirus on computer 2?
If so, try to disable and then try,
Also make sure you have the Admin rights on Comp2.
Thanks
Harshit -
I am unable to connect to a database. I get the following error
"An unidentified error occurred".
This is a test server that I am setting up. My directory structure looks as follows:
All my files reside in C:\users\Badri\My Documents\Unamed Site 2
I have Apache web services running and the _mmServerScripts is in the htdocs directory (Apache root directory). My SQL is
I am sure that something is not configured correctly, but I am not sure what?
Thanks
BadriIf your testing server is XAMPP or MAMP, you should put your site files in the htdocs folder of your local testing server.
C:\xampp\htdocs\YourSiteName
C:\mamp\htdocs\YourSiteName
If you use WAMP server, you should put your site files inside www folder.
C:\wamp\www\YourSiteName\
These are the default directories used by localhost when previewing in browsers.
Then define your local testing server in DW. See screenshots.
Advanced tab: Testing Server model.
If you haven't already, log-in to your local server's phpMyAdmin to create an SQL database and table.
PHP MySQL Tutorial: Create a Database and Table in phpMyAdmin -HD- - YouTube
Nancy O.
Maybe you are looking for
-
Pages Per Sheet Not Working.
In previous versions of Mac OS X this was never a problem for me, but I can't get the "pages per sheet" feature listed in the Layout menu of the print dialogue to work. I've created documents in TextEdit, Microsoft Word, and a few other applications
-
How do I get into my if app? It says it's locked and when I put i my apple password it tells me it is to valid and locks me out. I tell it to repair it and it still doesn't work. I never changed it and I assume it should be the same as my apple pa
-
Hi, I am using Oracle 10g database. I want to change the DB Character set. Do I need to re-install the database or is there any other way. Please advise. Thanks PantherHawk
-
There are 2 users on our computer; I am the administrator. On the 2nd user's page, the AVG Secure Search page comes up despite changing the home page, deleting AVG Anti Virus, and it is not listed where one manages the search engines (we use Ixquick)
-
Anyone come across anything like this before - tried running CfgSrvr again and it just loops around with this failure. Error: Crypto-6 Cryptographic Subsystem Message (2 of 3) 22 December 2003 16:01:11 An error occured while attempting to obtain <LDA