Error when connecting to MySQL Database
I am trying to connect to MySQL and receive an error everytime. I have attempted to talk to Bluehost (who my site is hosted thru) and they said it is not on their end and not something they can help me with. I set up a new MySQL Database with Bluehost and then set up the site through DW and everything went fine. I secured an ftp connection and went on to connect to MySQL. When I enter in my credentials for SQL Database, it returns:
HTTP Error Code 404:
Reason 1. No testing server running on the server machine.
Reason 2. Testing server specified for this site deos not map to the http://my_domain.com/_mmServerScripts/MMHTPDB.php URL. Verify the URL Prefix maps to the site.
The testing server model I am using is set to PHP MySQL and URL Prefix I am using (my_domain.com) is my website URL. I watched a YouTube video someone suggested elsewhere on how to add MMHTTPDB.php and mysql.php files to _mmServerScripts folder since the folder is empty but unfortunately, those files are not found on my computer. I assume they were supposed to be installed when I installed DW, but they are not here. I have done a general search of the comp and looked in each folder that was installed with DW and sadly, no files that match those names. What can I do? How can I make an SQL connection? Please help. It is greatly appreciated.
-Sharon
Your answer can be found somewhere in here http://forum.wampserver.com/read.php?2,83382,88694
My hosts file (c:\windows\system32\drivers\etc\hosts) looks like
# Copyright (c) 1993-2009 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
::1 localhost
Similar Messages
-
"no ocijdbc11 in java.library.path" error when connecting a TNS database co
Hi
"no ocijdbc11 in java.library.path" error when connecting a TNS database connection
I have the same problem 'error code' when testing the connection to a database although I have an APEX db that connects without a problem.
I have re downloaded jre & SQL Developer just to ensure all files are where they should be with no luck.
I've also tried most of the suggestions in various threads.
Does anyone know what exactly causes this error?
eg; should I be looking for a file called 'ocijdbc11' & put it into the 'java.library.path' path?
Can anyone explain to a newbie at db connections what I should do?
I'm using the 'thin' client as the checkbox is clear & I don't know what path to enter into the correct file to make this work??
This is & needs to connect as a TNS connection & was working fine until recently, the only change I can think of is a move of files from the 'C' drive but I thought redownloading SQL Developer would slove this.
ThanksWhen you reinstalled SQL Developer, did you install into a new directory (ie rename or delete the old directory first)?
I don't know if system setup contains directory references (which might be invalid after moving the location of SQL Developer). Does renaming your system2.1.1.64.45 directory (in C:\Documents and Settings\username\Application Data\SQL Developer) help? Note that your connections are in the connections.xml file in the o.jdeveloper.db.connection.11.1.1.2.36.55.30 subdirectory of system2.1.1.64.45 - you will either need to export connections before renaming and then import again after or copy this file to test if you can connect.
Finally, the TNS Names directory preference is just a way of telling SQL Developer where to look for the tnsnames.ora file, rather than just assuming it will pick the right one. If you go to create a new connection, do you get the right list of TNS aliases? If not, then set this preference to the directory where the right tnsnames.ora file lives.
theFurryOne -
Error when connecting to mysql
hi
i m getting error when i want to connect with mysql
the errors is below
MySQL JDBC Driver not found ...
Exception in thread "main" java.lang.ClassNotFoundException: org.gjt.mm.mysql.D
iver
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at test.testDriver(test.java:42)
at test.test(test.java:12)
at test.main(test.java:127)
plz help me
kaleemhttp://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A48&qt=%22java.lang.ClassNotFoundException%22&x=9&y=10
-
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 -
Error when connecting applet to database
Hi,
I'm trying to make an applet that get data from database.
I'm using this code to connect to database :
try
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydatabase","mypassword", "password");
System.out.println("inside of connection");
if(!con.isClosed())
System.out.println("Successfully connected to MySQL server...");
Statement st = con.createStatement();
ResultSet s = st.executeQuery("SELECT myString FROM string");
while (s.next())
ad = s.getString("myString");
System.out.println(ad);
catch(Exception e)
System.err.println("Exception: " + e.getMessage());
It shows me error like this :
java.lang.ExceptionInInitializerError
at com.mysql.jdbc.Connection.<init>(Connection.java:1174)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.inulsc.newsticker.connection.getString(connection.java:26)
at com.inulsc.newsticker.NewsTicker.readFromDatabase(NewsTicker.java:481)
at com.inulsc.newsticker.NewsTicker.init(NewsTicker.java:239)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Unable to initialize character set mapping tables
at com.mysql.jdbc.CharsetMapping.<clinit>(CharsetMapping.java:73)
... 9 more
I'm using Tomcat and I have copymysql-connector-java-3.1.13-bin download to C:\Tomcat 5.5\common\lib.
Any one can help me please? I really need to solve this problem.
I will appreciate any answer.
Thanks,
VijayThanks for you answer Jos, but honestly I don't know what I should do then, since I can't get data from database through the applet.
I have read some articles that we can get data from database through the applet (they use tomcat too). I have followed what the article said, but I still get the error.
Do you have any idea Jos? Thank you very much for your nice attention
Warmnest regards,
Vijay -
HTTP 403 error when connecting to MySQL
Hello all. I have read a few posts that are similar in nature to the issue that I am having. Before I run off to the Ubuntu discussion forum, I thought that I would run this by some of the resident gurus. First, my setup.
Running DW CS6 on my laptop. OS = Windows 7 Pro
Have MySQL, PHP, Apache2 running on Ubuntu Server edition v.12.04.3 LTS Codename precise
The Ubuntu server is running as a Hyper-V VM in Windows Server 2012
Conecting via FTP to the server and web directory that holds my PHP content functions just as it should.
Connecting to the MySQL database on the other hand is a different story. My database and tables are both setup. And, I can connect to the database via a require connect.php test file that I have written. I use the same credentials in this file and the CS6 database setup.
Here are two screen shots of some results. Any assistance would be greatly appreciated. Thank you. Peter
And the HTTP error 403Thank you for the prompt reply Ben. I appreciate it. This is all that my phpmyadmin.conf consists of:
So, am I to understand from your post that CS6 database setup uses phpmyadmin to communicate with MySQL?
# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
</IfModule>
</Directory>
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory> -
Error to connect to Mysql database
hi
I just initial write program with jsp. I alway have problem.
I will connect Mysql Database. I 'm download JDBC Driver and setting.
step of using JDBC
1. Load Driver JDBC (use method forName())
2. Connection Database (use method method getConnection())
3. create object statement (use methodcreateStatement())
after run, I get this error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 6 in the jsp file: /test.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";
^
An error occurred at line: 6 in the jsp file: /test.jsp
Generated servlet error:
C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
String sql="INSERT INTO test VALUES (",' " name" ', ' " surname+" ')";
^
An error occurred at line: 6 in the jsp file: /test.jsp
Generated servlet error:
C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";
^
An error occurred at line: 6 in the jsp file: /test.jsp
Generated servlet error:
C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed character literal
String sql="INSERT INTO test VALUES (",' " name" ', ' " surname+" ')";
^
An error occurred at line: 6 in the jsp file: /test.jsp
Generated servlet error:
C:\tomcat\work\Standalone\localhost\km\test_jsp.java:67: unclosed string literal
String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";
^
An error occurred at line: 6 in the jsp file: /test.jsp
Generated servlet error:
C:\tomcat\work\Standalone\localhost\km\test_jsp.java:76: '{' expected
catch(SQLExeption e2);
^
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
C:\tomcat\work\Standalone\localhost\km\test_jsp.java:110: 'catch' without 'try'
} catch (Throwable t) {
^
C:\tomcat\work\Standalone\localhost\km\test_jsp.java:31: 'try' without 'catch' or 'finally'
try {
^
C:\tomcat\work\Standalone\localhost\km\test_jsp.java:120: '}' expected
^
9 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
i don't know error mean
can anyone explain me and send me a sample code for connect MySQL
Thank youThe java code in your jsp is not valid java code; the error messages are explaining why.
For example, this statement is totally managled.
String sql="INSERT INTO test VALUES (",' " +name" ', ' " +surname+" ')";It should be:
String sql="INSERT INTO test VALUES (' " +name+" ', ' " +surname+" ')";If you use PreparedStatement instead of Statement, then the SQL gets much much easier to write (and PreparedStatement has other advatages as well).
Your other compilation problem is impossible to diagnose without the JSP source code; furthermore, it has nothing to do with JDBC, you simply have broken Java code. You need to post that question in a more appropriate forum. -
Error in connecting to mysql database using jsp
Hi
I've encountered this error:
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
while trying to connect to MySQL db.
I've downloaded the driver from www.mysql.com, and set the classpath as: "C:\mm.mysql.jdbc-1.2b;%CLASSPATH%;"
But it juz doesn't seem to work...
Can someone pls help me?These are my settings in autoexec.bat:
SET PATH=C:\PROGRA~1\ABRIAS~1\ABRIAS~1\PERL\BIN;%PATH%;
SET JAVA_HOME=C:\jdk1.3.1
SET TOMCAT_HOME=C:\Tomcat3.2.3
SET CLASSPATH=C:\mm.mysql.jdbc-1.2b;%CLASSPATH%;
Well, i'm quite new to jsp so i'm not sure what u meant by "In the servlet container's init scripts?". I onli did the settings above and reset my server.
I've tried checking the dir...and yes there's a dir named org.
Any ideas wat can possibly be wrong??? -
Hi. I'm using Eclipse to develope jsp pages. I'm new to java.
I'm trying to connect from a jsp page to mysql server and i'm getting an error on the line below:
Class.forName("com.mysql.jdbc.Driver");
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
i downloaded the mysql jar file and i added it to my library folder.
the other question is that is there anyway to mention the name of the database in my connection?
conn =DriverManager.getConnection("jdbc:mysql://localhost","admin", "");hi this is the root cause i thought it might help
root cause
javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.test_jsp._jspService(test_jsp.java:100)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
org.apache.jsp.test_jsp._jspService(test_jsp.java:85)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) -
When connecting to a database, dreamweaver gives the error message [MySQL Error
When I try to connect my MySQL database into dreamweaver, I insert all of the information (name, server, username, password), and when i click on select database, it reads:
MySQL Error#:1045
Access denied for user 'mresnik_mresnik'@'192.185.5.169' (using password: YES)
I am 100% sure that The details entered including username and password are correct, as I have contacted hostgator.com and they have stated that they can connect, and they advised that it may be an issue with either my files or dreamweaver.
Any help would be very much appreciated.Login.php code:
<?php require_once('Connections/drama_database.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
if (isset($_POST['UserName'])) {
$loginUsername=$_POST['UserName'];
$password=$_POST['Password'];
$MM_fldUserAuthorization = "userlevel";
$MM_redirectLoginSuccess = "home.php";
$MM_redirectLoginFailed = "loginfail.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_drama_database, $drama_database);
$LoginRS__query=sprintf("SELECT username, password, userlevel FROM users WHERE username=%s AND password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $drama_database) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'userlevel');
if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
header("Location: " . $MM_redirectLoginSuccess );
else {
header("Location: ". $MM_redirectLoginFailed );
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
?>
<html>
<title>Drama Database - Login</title>
<head>
<link href="images/favicon.ico" rel="icon" />
</head>
</html>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<form ACTION="<?php echo $loginFormAction; ?>" id="loginform" name="loginform" method="POST">
<!--visual -->
<br>
<br>
<br>
<div align="center">
<!--ACS Logo -->
<img src="images/logo_acs_egham.gif" width="387" height="59" /><br>
<!--Drama Logo -->
<br>
<img src="images/bglogin.jpg" alt="Acs-Egham International School" width="246" height="153">
<br>
<!--Title -->
<h2>Drama Database Login</h2>
</center>
</div>
<table width="154" border="0" align="center">
<tr>
<td width="148">Username:<br />
<span id="sprytextfield1">
<label for="UserName"></label>
<input type="text" name="UserName" id="UserName" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Password:<span id="sprytextfield2"><br />
<label for="Password"></label>
<input type="password" name="Password" id="Password" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center"><input type="submit" name="LoginButton" id="LoginButton" value="Login" /></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
</script> -
Error occured when connect to MySql Databse in Dreamweaver
Hello! I met a problem when connect to Mysql Databse in
Dreamweaver
Details:
My Php Environment: Php 5.2.2+ MySql 5.0.4 + IIS 6.0 + DW IDE
+ WinXP SP2,
All necessary sevice started(Actually I have never stopped
any Windows service).
Php installed (IIS + CGI) and tested successfully in DW
MySql Installtion(Typical Install with extensions ) and
configuration are both OK.
Configuration Details:
For configuration type, select Detailed Configuration.
For server type, select Developer Machine
For database usage, select Non-Transactional Database Only.
For the number of concurrent connections, select Decision
Support(DSS)/OLAP.
For networking options, accept the default settings.
For the default character set, accept the default setting.
For the Windows options, select both options – Install
As Windows Service, and Include Bin Directory in Windows Path.
For security options, enter a root password and confirmed.
And then I Created a database "mydb" with 3 tables inside by
"MySql Command Line Client",
...... (Approach Obmit here)
Open "MySql Command Line Client":
Type >mysql Show Database mydb;
Show a list with 3 tables(Created Successfully)
Then In DW,
Open my Php webpage,
Then from Database Panel>MySql Connection,
Connect Name:myconn
Mysql Server:localhost
Username:root (Right)
Password:111111(Right)
Database:mydb
Click "OK", but when DW tried to connect to MySql database,
then DW popuped an alert dialog says "HTTP Error Code 502 Bad
Gateway",
I don't know what this mean and how to solve this problem,
hope any PHP and DW expert can help me, thank you very much.Phoenix Wang wrote:
> Click "OK", but when DW try to connect to MySql
database, then popup an alert
> dialog says "HTTP Error Code 502 Bad Gateway",
> I don't know what this mean and how to solve this
problem, hope any PHP and DW
> expert can help me, thank you very much.
How have you set up the Testing server in your site
definition?
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
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 -
Error: OGG-00146 - error 600 - Failed to connect to mysql database
Dear All,
I am replicating Data from MySQL to Oracle.
Version of my MySQL is Server version: 5.5.19 MySQL Enterprise Server - Advanced Edition
Version of Oracle is : Oracle 11gR2
My extract is giving the following error and I am unable to identify the problem:
*2012-12-25 14:18:48 ERROR OGG-00146 Oracle GoldenGate Capture for MySQL, netfors.prm: VAM function VAMInitialize returned unexpected result:*
error 600 - VAM Client Report <CAUSE OF FAILURE : Failed to connect to mysql database WHEN FAILED : While initializing mysql context WHERE FAILED :
MySQLBinLog Reader Module CONTEXT OF FAILURE : No Information Available!>
Following are the contents of my /etc/odbc.ini file
*[netfors]*
Driver = /usr/lib/libmyodbc3.so
Description = Connector/ODBC 3.51 Driver DSN
Server = 10.168.20.226
Port = 6629
User = replication
Password = ******
Database = netfors
Option = 3
Socket = /tmp/mysql_sandbox5519.sock
When i isql -v netfors replication ***** *
it say Connected!
This is my extract:
EXTRACT NETFORS
DBOPTIONS HOST 10.168.20.226, CONNECTIONPORT 6629
SOURCEDB [email protected]:6629, USERID replication, PASSWORD ******
RMTHOST 10.168.20.31, MGRPORT 7809
RMTTRAIL /u01/app/oracle/oradata/GG/dirdat/n1
TRANLOGOPTIONS ALTLOGDEST /root/sandboxes/msb_5_5_19/data/mysql-bin.index
TABLE netfors.syslog;
Extract gets ABENDED
Kindly help on this.
Regards, ImranGot it solved some how, golden gate was trying to connect with default socket file.
*/tmp/mysql.sock*
while my socket file was
*/tmp/mysql_sandbox5519.sock*
I changed it to default and got rid of the error.
Thanks for the help.
Regards, Imran -
I can't connect to MySQL database from The JSP Standard Tag Library
Hi All !
I have a problem, please help me anybody !
I don't connect to MySQL database from jsp page using JSTL tag but from servlet all work correctly. I set my path and put �mysql-connector-java-3.1.13-bin.jar� in ENVIRONMENT WinXP(classpath=C:\Java\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-3.1.13-bin.jar) and in War project folder �WEB-INF/lib� and in [TomcatServer]\common\lib.
I have in folder�WEB-INF/lib� following files:
antlr.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-fileupload.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
mysql-connector-java-3.1.13-bin.jar
standard.jar
struts.jar
I'm using:
NetBeans 5.5 Build200610171010 (bundled Tomcat 5.5.17)
Ent.Pack 20061020 Visual Wb Pack 061103
OS WinXP SP2
Java 1.5.0_10
MySQL 5.0.18-nt
1:<%@page contentType="text/html"%>
2:<%@page pageEncoding="UTF-8"%>
8: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
9: <%@taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
10:
11: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
12: "http://www.w3.org/TR/html4/loose.dtd">
13:
14: <sql:setDataSource var="ds"
15: driver="com.mysql.jdbc.Driver"
16: url="jdbc:mysql://localhost:3306/test"
17: user="root"
18: password="xxxx"/>
19:
20:
21:<sql:query sql="select name, age from People" var="res"
22: dataSource="${ds}"/>
I have received report on mistake when entered code at the top:
�/index.jsp [21;0] According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions�
I used instead of (dataSource="${ds}")->(dataSource="ds") but this did not work.
After build and run I have received
=========================================START=================================
HTTP Status 500
type Exception report:
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
root cause
org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Apache Tomcat/5.5.17
=======================================END================================
Error: "According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions" - but according to documentation such parameter possible.
BUT WHEN JOINING With DATABASE FROM SERVLET ALL WORK FINE.
I read this doc - [http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html], this applicable if I Tomcat Admin, but i'am not Admin
I simply user, i.e. I want to place its database on virtual host (Tomcat+(JSP-JSTL)+MySQL).
There is idea how can resolve this problem
Thank you in advance ;)For all how have similar problem.
Decision instead of these ways
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
it is necessary to indicate these
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -
Unable to connect to MySQL Database using MX
I am unable to connect to MySQL database hosted on a remote
server. I get the following error message:
"HTTP Error Code 404 File Not Found. Here are some possible
reason for the problem:
1) There is no testing server running on the server machine.
2) The testing server specified for this site does not map to
the
http://72.9.255.2/~keyitems/_mmServerScripts/MMHTTPDB.php
URL. Verify that the URL Prefix maps to the root of the site."
I have specified a testing server. My url is "
http://72.9.255.2/~keyitems/........."
For the URL prefix to the site's root folder, I listed the
following:
1.
http://72.9.255.2/~keyitems/
this did not work. I got the above error message.
2.
http://72.9.255.2/ this did not work
also. I got the above error message.
Any input would be great as I do not know where to start !!!
Thank youHi Ravi
Glad to hear you solved this. It is very gratifying when one solves it alone, don't you think?
Best wishes
Michael
Maybe you are looking for
-
Can't download numbers from icloud
Numbers spreadsheet not downloading from iCloud
-
Error while creating infopackage
Hi, i am using BI 710. I am trying to create infopackage for 0COMP_CODE master data object and i am getting following error messeges: Data target 'ZCOMP_COD ' removed from list of loadable targets; not loadable RSM 33 Data target 'ZCOMP_
-
File Permissions on Oracle Directories for other Operating System Users
Hi, I am trying to export the table data to flat file using a pl/sql function using UTL_FILE package and directories created using 'CREATE DIRECTORY' command. The function is called from a stored procedure which in-turn is called from a Java program
-
Have more miles ran in Itunes, than what are synced to my nike running account?
Hello everyone, I use an ipod nano generation 5 to run with. Ever since I installed itunes 10 to my pc I have experienced difficulties in transferring my runs from itunes to the Nike+ website. Under itunes it says that I have ran more miles than what
-
Unabled to download the file A73074_01.pdf
I had tried several times to download this file and I received a error message at my browser. This file is corrupted or something like that? If so, is there any chance to someone verifies and corrects it ? Or, maybe, suggests another site where I can