Why labview dosnt connect to mysql in this example?
Hello.
I have a problem to connect with mysql. can you help me?
I make a database in my sql and I use ODBC as interface.
in labview, ADO blocks are used to connect with mysql as example attached. but, when I run this program, it dosn't work. this example is along with ADO pack.
By the way,, it dosnt get me any ID!
do you know what is the problem?
Best Reagards
Attachments:
Example - Insert into a Table.vi 14 KB
UDL is very basic and best way to communicate to DB. becasue here you can change the database which you need to connect to any time. I havent seen your VI but first you need to create UDL file and configure it as per your application. For there if you can test the connection that means your configuration is ok.
Then from VI you need to open the UDL file and check the error message. From there you can easily check what is the problem.
Here start from page 3-4. Let us know if any issue
Kudos are always welcome if you got solution to some extent.
I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Attachments:
Database.pdf 687 KB
Similar Messages
-
When I connect my iPhone 5 to my laptop and iTunes, I can't play movies from the iPhone on my computer.Why is that? Can I do this or it's not possible with iPhone5? With my iPod it's no problem.
Reinstall iTunes. Make sure you follow the instructions in this support document to the letter. http://support.apple.com/kb/HT1923.
You may have some problems because Apple has not certified that everything works with Windows 8 yet. -
when i plug in my ipod to my PC it makes a sound like it doesnt accept it. on the ipod, it says connect to itunes because it was disabled many times. why wont it connect?P.S I know nothing about this kind of stuff
Disabled
Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: Wrong passcode results in red disabled screen
If recovery mode does not work try DFU mode.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
For how to restore:
iTunes: Restoring iOS software
To restore from backup see:
iOS: Back up and restore your iOS device with iCloud or iTunes
If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
You can redownload most iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode. -
facetime says connecting after you answer the call but doesn't actually connect and both iphone 5s were quick reset-ted and facetime was turnt on and off, any reasons like why or how and how to fix this concerning issue
Apple has released a document which is reported to address the recent FaceTime issue.
http://support.apple.com/kb/TS5419 -
Why JApplet and JSP cannot connect to MySQL
When i use applet connect to MySQL, it show that no suitable driver.
My program is
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class fuck extends JApplet implements ActionListener
private JButton bb = new JButton("update");
private JTextArea aa = new JTextArea(1,7);
private JTextArea ss = new JTextArea(1,7);
private JPanel pp = new JPanel();
public fuck()
Container c=getContentPane();
pp.add(aa);
pp.add(ss);
pp.add(bb);
c.add(pp);
bb.addActionListener(this);
public void actionPerformed(ActionEvent ee)
try
Class.forName("org.gjt.mm.mysql.Driver");
catch(ClassNotFoundException e)
System.out.println(e.getMessage());
try
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost/air","root","");
Statement st = con.createStatement();
//PreparedStatement pst = con.prepareStatement(
// "update aa set condition=? where temp=?");
//pst.setInt(1,3);
//pst.setString(2,"hg");
//pst.executeUpdate();
ResultSet rs=
st.executeQuery("select * from aa");
while (rs.next())
aa.setText(rs.getString("temp"));
ss.setText(rs.getString("condition"));
st.close();
con.close();
catch(SQLException ex)
System.err.println("SQLException:"+ex.getMessage());
If I using JSP, it also have some conditionClearly it is in the classpath, otherwise the error would have been "Class not found". But here's a quote from the documentation for the driver, the part that explains how to make a connection:// The newInstance() call is a work around for some
// broken Java implementations
Class.forName("org.gjt.mm.mysql.Driver").newInstance();The "broken Java implementations" it refers to are certain JVMs that run applets in browsers... -
Why is my ipod saying 'iPod disabled, connect to itunes' when i try connecting it to itunes, it comes up with this pop up saying it couldn't take my ipod because theres a passcode on it?, why should i connect it when it doesn't even take it!!!
Follow ALL the Steps in this article > http://support.apple.com/kb/HT1808
You may have to try it more than once... -
why are my connection bars (internet and phone) blue sometimes and sometimes gray? I'm sure this is an easy one
blue means you're connected to Google's servers
-
How can I connect to MySQL external database
Hello.
I have a SAP system running in SQL Server 2003.
I need to connect to external MySQL DB., to operate with this information in ABAP program.
I have done the step necesary... I mean I go to DBCO transaction and configure the connection like this:
DB CONNECTION --> AFIS
DBMS --> MSS
user name --> xxxxxx
DBpass -->xxxxxx / xxxxxx
Conn Info -->MSSQL_SERVER=192.168.1.233 MSSQL_DBNAME=alliance OBJECT_SOURCE=alliance
I do a test program, when I do the statement CONNECT TO, sy-subrc 0 and connection = DEFAULT... I mean, with this form I cannot connect to MySQL Database...
Can you help me to do this?? I think the problem it's the connection string in DBCO... but I'm not sure...,
Would be possible to connect by MySQL ODBC??? I mean , installing the ODBC driver in my SAP server, and using this in ABAP Program??
Thks.
DATA: BEGIN OF wa,
cod_modelo(20),
END OF wa.
DATA: dbs TYPE dbcon-con_name.
DATA: con(20) TYPE c.
DATA : ls_wa LIKE wa.
con = 'AFIS'. "DB Connection in DBCO above
EXEC SQL.
CONNECT TO :con
ENDEXEC.
WRITE sy-subrc. ---> The result it's 4
EXEC SQL.
GET CONNECTION :con
ENDEXEC.
WRITE : con. --> The result it's DEFAULT
EXEC SQL.
SET CONNECTION DEFAULT
ENDEXEC.
write : con. --> The result it's DEFAULT> It's for it, that when I go to DBCO... in DBMS ---... I can select Oracle, MSSQLServer, DB2... for this Databases..., exists the library (lib_dbsl)???
yes, for all those databases exists the database interface library.
> In resume:
> IT'S NOT POSSIBLE CONNECT TO MYSQL!!! ... I cannot believe it!!!...
Well - as far as I remember there were some times ago efforts to port SAP applications to MySQL. That would explain why there's also a file "DDLMYS.TPL" created if you execute R3ldctl during a system copy - amongst DDL files for all other databases. I believe this was at the time MySQL was promoting SAPDB/MaxDB.
MySQL is historically not a database engine for software, that requires transactional integrity; there were extensions to support that (InnoDB or others) and there was no customer demand in getting MySQL as engine for SAP applications. And only develop an interface to be able to connect to an external MySQL engine is not worth the effort.
However, there is hope Some BusinessObjects applications also run with and against MySQL engines, depending on how the strategy to integrate those into the SAP software stack there may (or may not) be an interface for that database in the future.
Markus -
Problem to connect to mysql from servlet using a javabean
Hi,
I'm new here and beginner on java to.
I have problem to connect to MySql database, by a connection javabean.
It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
Detail: there is no problem, using the javabean to connect to MS Access database.
I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
I set the classpath:
SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
But I don't know why.
Please Why?
Below there are the fragment of errors, servlet code e javabean code.
Thank you.
Zovao.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
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)
Note: The line 47 is calling insertIntoDB javabean method.
========///////////////===============
// Here is the servlet CadServletFileBeanConexArq.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.*;
import conJdbc.*;
public class CadServletFileBeanConexArq extends HttpServlet {
public ConexPed connect = null;
private String driver = "com.mysql.jdbc.Driver";
private String URL = "jdbc:mysql://localhost:3306/cadastro";
public void init( ServletConfig config )
throws ServletException
super.init( config );
try
connect = new ConexPed(driver, URL, "monty", "some_pass");
catch ( Exception e )
e.printStackTrace();
connect = null;
public void doPost( HttpServletRequest req,
HttpServletResponse res )
throws ServletException
boolean success = true;
String email, nome, sobrenome, produto, valor;
email = req.getParameter( "Email" );
nome = req.getParameter( "Nome" );
sobrenome = req.getParameter( "Sobrenome" );
produto = req.getParameter( "Produto" );
valor = req.getParameter( "Valor" );
res.setContentType( "text/html" );
if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
/* inserting data */
success = connect.insertIntoDB(
"'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
//closing connection
public void destroy()
connect.fecharConexao();
=============///////////////============
Here is the JavaBean.
package conJdbc;
import java.sql.*;
public class ConexPed
public Connection connection;
public Statement statement;
public ConexPed (String driver, String urlServidor, String user, String password)
try
Class.forName(driver);
connection = DriverManager.getConnection(urlServidor,user,password);
catch (ClassNotFoundException ex)
System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
catch (SQLException ex)
System.out.println("N�o foi poss�vel conectar ao servidor");
try
statement = connection.createStatement();
catch (SQLException ex)
System.out.println("N�o foi poss�vel criar a statement");
*Inserting data to database
public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
try
statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
catch ( Exception e ) {
System.err.println(
"ERROR: Problemas ao adicionar nova entrada" );
e.printStackTrace();
return false;
return true;
* Close statement.
public void fecharStatement()
try
statement.close();
catch (SQLException ex)
ex.printStackTrace();
* close database
public void fecharConexao()
try
connection.close();
catch (SQLException ex)
ex.printStackTrace();
}Hi,
I'm new here and beginner on java to.
I have problem to connect to MySql database, by a connection javabean.
It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
Detail: there is no problem, using the javabean to connect to MS Access database.
I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
I set the classpath:
SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
But I don't know why.
Please Why?
Below there are the fragment of errors, servlet code e javabean code.
Thank you.
Zovao.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
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)
Note: The line 47 is calling insertIntoDB javabean method.
========///////////////===============
// Here is the servlet CadServletFileBeanConexArq.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.*;
import conJdbc.*;
public class CadServletFileBeanConexArq extends HttpServlet {
public ConexPed connect = null;
private String driver = "com.mysql.jdbc.Driver";
private String URL = "jdbc:mysql://localhost:3306/cadastro";
public void init( ServletConfig config )
throws ServletException
super.init( config );
try
connect = new ConexPed(driver, URL, "monty", "some_pass");
catch ( Exception e )
e.printStackTrace();
connect = null;
public void doPost( HttpServletRequest req,
HttpServletResponse res )
throws ServletException
boolean success = true;
String email, nome, sobrenome, produto, valor;
email = req.getParameter( "Email" );
nome = req.getParameter( "Nome" );
sobrenome = req.getParameter( "Sobrenome" );
produto = req.getParameter( "Produto" );
valor = req.getParameter( "Valor" );
res.setContentType( "text/html" );
if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
/* inserting data */
success = connect.insertIntoDB(
"'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
//closing connection
public void destroy()
connect.fecharConexao();
=============///////////////============
Here is the JavaBean.
package conJdbc;
import java.sql.*;
public class ConexPed
public Connection connection;
public Statement statement;
public ConexPed (String driver, String urlServidor, String user, String password)
try
Class.forName(driver);
connection = DriverManager.getConnection(urlServidor,user,password);
catch (ClassNotFoundException ex)
System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
catch (SQLException ex)
System.out.println("N�o foi poss�vel conectar ao servidor");
try
statement = connection.createStatement();
catch (SQLException ex)
System.out.println("N�o foi poss�vel criar a statement");
*Inserting data to database
public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
try
statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
catch ( Exception e ) {
System.err.println(
"ERROR: Problemas ao adicionar nova entrada" );
e.printStackTrace();
return false;
return true;
* Close statement.
public void fecharStatement()
try
statement.close();
catch (SQLException ex)
ex.printStackTrace();
* close database
public void fecharConexao()
try
connection.close();
catch (SQLException ex)
ex.printStackTrace();
} -
Heterogeneous Connectivity to Mysql
Hi Fellows.
I need to connect to a Mysql Database online from Oracle 10G (Create a link) I read some article regarding Heterogeneous Connectivity to other non Oracle Databases without ODBC or DNS. Does anybody has deploy this Oracle feature???? Does Oracle 10G has another choice to connect to other relational databases............If somebody has information to connect to Mysql Database wil be great!!!!
Thanks a lot.!!!!
Emmanuel.I'm still really confused by why you're talking about DNS. DNS is just a mechanism for resolving host names into IP addresses and that happens only at connection time and only if you have specified a host name.
Yes, normally ODBC is not the most efficient API in the world-- it was designed as a least common denominator API and designed with SQL Server in mind. That said, if you want to use Heterogeneous Services, you would either need ODBC, OLE DB, or a Transparent Gateway. If you are under time constraints, I'm going to wager that you don't have the time and budget to go out an purchase a Transparent Gateway. So you'd either have to use ODBC or OLE DB. I do not know if there is a MySQL OLE DB provider that runs on SUSE-- I would tend to doubt it. Which leaves just ODBC, assuming you've got a MySQL ODBC driver that runs on SUSE.
Personally, I've used Generic Connectivity to connect to DB2 and SQL Server databases from an AIX box (using commercial ODBC drivers) and to Excel files from a Windows box. I've never personally connected to a MySQL database, though if you're talking about ODBC connections, it doesn't really matter what database you are connecting to.
Justin -
Labview Database Connection Toolkit and decimal point
Hi,
on my system I use "," (comma) as decimal point.
In Labview Options I unflagged "Use localized decimal point", and numeric controls and indicators use "." (dot) as decimal point.
The problem is that Labview Database Connection Toolkit keeps returning floating point numbers as strings with comma as decimal point.
Has anyone experienced this issue?
Is this related to Labview or MySQL ODBC Connector (that I'm using to connect to a mySQL DB)?
Thanks in advance for any help,
MarcoYou have two or three places to look. First there is the DCT. Second, there's a couple layers there that could cause problems (the mySQL drivers and ADO) and then there's even the posibility that the issue could be in the DBMS itself.
I would start by burrowing down through all the DCT layers and find the spot where the results are actually being read back fromt he database. If the resutls are read as variants and converted to LV datatypes, the problem is on the LV side. If the values are being read as strings and converted, the problem coiuld be on the other side.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Errors when Modifying a Weblogic EJB example to make it connect to mySQL
Hello,
I am learning the example codes shipped with weblogic server, which is under ...samples\examples\ejb20\basic\beanManaged. The original connection pool was on cloudscape. I was trying to modify it and make it connect to mySQL.
In ejb-jar.xml and weblogic-ejb-jar.xml, I replaced "demopool" (which was the original pool name) with "demopool1".
After starting the server, I configured a new connection pool as following:
Name: demopool1
URL: jdbc:mysql:///test
Driver Classname: org.gjt.mm.mysql.Driver
Properties
(key=value): user=none
server=none
But when I run the example, I got the following error:
----------------Server Side:------------------------------------
<2007-10-6 下午03时23分18秒> <Error> <JDBC> <Error during Data Source creation:
weblogic.common.ResourceException: DataSource(examples-dataSource-demoPool1) can't be created with non-existent Pool (connection or multi) (demoPool1)>
setEntityContext called
ejbFindByPrimaryKey (ID: 0)
Failed to lookup JDBC Datasource. Please double check that
the JNDI name defined in the resource-description of the
EJB's weblogic-ejb-jar.xml file is the same as the JNDI name
for the Datasource defined in your config.xml.
---------------------Client Side:-----------------------
C:\bea\wlserver6.1\samples\examples\ejb20\basic\beanManaged>java examples.ejb20.
basic.beanManaged.Client "t3://localhost:7001"
Beginning beanManaged.Client...
Trying to find account with id: ID: 0
There was an exception while creating and using the Accounts.
This indicates that there was a problem communicating with the server: java.rmi.RemoteException: Exception in ejbFindByPrimaryKey; nested exception is:
javax.ejb.EJBException
- with nested exception:
[javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: Unable to resolve examples-dataSource-demoPool1. Resolved: '' Unresolved:'examples-dataSource-demoPool1' ; remaining name '']; Link Remaining Name: 'examples-dataSource-demoPool1']
What should I do to solve this problem?
Thanks a lot.The exception leads me to believe that you never set up the connection pool with that name in WebLogic. Why not try it? Do you know how to set up a connection pool? Start up the admin console and add it in.
http://localhost:7001/console
% -
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/ -
No one seems to have an answer - connect to MYSQL
I have tried numerous forums and searching the internet but no one seems to be able to help. I am just starting to build my site. I was able upload my pages to the site. I created a PHP page so I could create a form and connect it to a mysql database. After I created the php code I clicked on databases so I could connect to my database. I can't connect. I did the remote server on CPanal. Everything on cpanal looks good. In dreamweaver databases - mysql connection i I am prompted for connection name, mysql server, username, password and database name. I know the user name, password and database name are correct. For mysql server i actually enter the server numbers per my host. Connection name I don't think would impact anything. When I click test I get an unidentified error. It's doesn't appear it is connecting. I have tried everything. Anythoughts? Who ever solves is this a hero
There is one very plain reason why you cannot connect to your database and that is because you have not issued the right instructions.
Normally DW creates a connect to database file in a subfolder called Connections.
The type of file that connects to the database will depend on the serverside code that you are using. On a PHP platform the database connection file will look like
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_safeshop = "localhost";
$database_safeshop = "myData_db";
$username_safeshop = "root";
$password_safeshop = "myPassword";
$safeshop = mysql_pconnect($hostname_myData, $username_myData, $password_myData) or trigger_error(mysql_error(),E_USER_ERROR);
?>
If your site does not have the above then you will have Buckley's (Buckley's and Nunn) chance of getting your connection.
Before going any further, please read http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html by David Powers.
I hope this helps.
Ben -
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/
Maybe you are looking for
-
Hi, We have certain SSRS report (which includes subreports) which many users are able to access, but some users cannot access- they get this error: "Unsupported RPL stream version detected: 101.116.1047292257. Expected version: 10.6." (We are not us
-
Safari won't open - spinning ball only requiring Force Quit
Hi, One of our Macs is an original G5 (not intel) and suddenly today, Safari is not opening! I can't stop it to change preferences or anything. So I reinstalled it and was wondering if anyone has any ideas of what else I can do. Even after the reinst
-
Error when loading a JSP twice
Hello, I have a problem having JSP to work with iPlanet 4.1 : my JSPs just want to run once ! When I stop and start iPlanet, all of my JSP pages work, but I get a "500 Server Error" if I try to reload one of these more than once. When I check the err
-
Error: The site map cannot be built due to one of the following reasons
Dreamweaver CC Version 13.1 Build 6443 What does this mean? I see no place to specify the home page on the Manage Site dialog: or the Site Setup dialogs: The home page for the site is named index.html. Any help is appreciated. Ed Tubridy [email prote
-
Some extra bytes appended to the http response by GzipResponseStream
My project needs to open pdf in browser. But the IE tells me that the file cannot be open by default program. It is either corrupted or has a incorrect filetype. And IE tries to download it. I trace the http response by HttpWatch and find the content