Problems with PHP and MySQLi server behaviors
Hi,
I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
Kind regards.
Eddy
heduino wrote:
Hi,
I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
Kind regards.
Eddy
There are no plans that I know of to introduce a new set of mysqli server behaviours into DW from Adobe. They have left that to thrid party developers to bring out extensions which replace them.
What the server behaviours could do was very limiting anyway so I suspect any replacement mysqli behaviours would also be very limiting. I personally jumped into thre code and started to write my own mysqli connection files and query strings by watching a few simple tutorials on youtube - it isnt that difficult.
Look for 'php academy' on youtube - they have about 9 simple to follow tutorials on getting started with mysqli.
Similar Messages
-
Problems with ACS4 and MySQL Server
Hi,
I am using acs4 with MySQL Server 5.0.67 as database under Windows. It all works fine except that very often I get a deadlock exception using the admin console.
Here is what is logged in the admin.log:
23 Apr 2009 12:20:15,231 TRACE DefaultSQLDatabaseRecordEnumerator: SELECT resourceid, voucherid, encryptionkey, permissions, defaultitem FROM resourcekey WHERE resourceid = ?
23 Apr 2009 12:20:15,231 TRACE DefaultSQLDatabaseRecordEnumerator: obj 1 = acc14cde-ea85-4f29-82ef-a771438bbcfc
23 Apr 2009 12:20:15,262 ERROR DefaultSQLDatabaseConnection: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
23 Apr 2009 12:20:15,262 TRACE DefaultSQLDatabaseConnection: rollback
23 Apr 2009 12:20:15,262 ERROR AdeptServlet: database error [192.168.2.101]
com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1045)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2554)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1761)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2046)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1964)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1949)
at com.adobe.adept.persist.DefaultSQLDatabaseConnection.deleteExpired(DefaultSQLDatabaseConn ection.java:479)
at com.adobe.adept.shared.security.DistributorNonceUtil.checkNonce(DistributorNonceUtil.java :56)
at com.adobe.adept.admin.servlet.ManagePersistent.doPost(ManagePersistent.java:291)
at com.adobe.adept.admin.servlet.ManagePersistent.doPost(ManagePersistent.java:40)
at com.adobe.adept.servlet.AdeptServlet.doPost(AdeptServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
23 Apr 2009 12:20:15,278 TRACE AdeptServlet: request end http://...
MySql is using InnoDB as storage engine.yes, you can do this via the admin gui by modifying the http listener port.
You can also do this via the cli commandline as well http-listener-1 is the one you want to change the port for.
http://docs.sun.com/source/817-6088/httpservice.html has details -
Problem with BigInteger and MySql
Hi !!
I've a problem with BigInteger and MySql.
I've a BigInteger object (suppose that value is 0.02270412445068359375).
I must store that value in a database (MySql).
The value of BigInteger object must be stored in a column of type Decimal.
Stored value is 0.022704124450683594. Why ??
My target is to store 0.02270412445068359375
Can anyone help me?
Thanks.Hi !!
I've a problem with BigInteger and MySql.
I've a BigInteger object (suppose that value is
0.02270412445068359375).
I must store that value in a database (MySql).
The value of BigInteger object must be stored in a
column of type Decimal.if this is the case I fear you are SOL. a decimal is the same size as a double but with a fixed max number of decimal places. if it isn't big enough then you have no real choice other than to VARCHAR it.
Stored value is 0.022704124450683594. Why ??
My target is to store 0.02270412445068359375
Can anyone help me?
Thanks. -
Dreamweaver CS5.5 Mobile Apps with PHP and MYSQL?
Hello,
I don't have Dreamweaver CS5.5 yet and I've been trying to search for information on this but I couldn't find any. I've been learning PHP and been developing with MYSQL with Dreamweaver CS5 but I wanted to know if I can use the same tags and everything if I would to build a Mobile App using the new Dreamweaver CS5.5 (http://tv.adobe.com/watch/cs-55-web-premium-feature-tour-/dreamweaver-cs-55-jquery-mobile- pages/). I overlooked at the video and it seems pretty easy building an app. So is PHP and MYSQL easily integratable? Are there any examples that I might be able to check out?
Thanks!No. PHP is a server-side scripting language that requires a server (or server-like environment) to run.
An iPhone (or Android) application does not allow for a "built-in" server (which is resource intensive and has scary security implications). You just can't build an application with PHP/MySQL for a mobile device. Instead you can build a web service that your HTML/JavaScript mobile application can then communicate with. This is the only supported way you can use PHP/MySQL in a mobile app. Again: the PHP/MySQL should reside on a server and your HTML/JS mobile app can then communicate with that web service. That's what instapaper and other applications do.
Frankly, just make a web application that's mobile device friendly and you'll:
1) Avoid all the messiness of the app stores
2) Have greater control over what your web app can do (don't have to tow the Apple/Google line)
3) Have a web app that can work across mulitple mobile devices as well as standard web browsers (i.e. more audience = more $).
4) Future proof your application (pushing updates to your server and everyone using your web app is updated)
Otherwise, read-up on Adobe AIR and what it supports and remember, the best apps are written natively for the platform (i.e. want to write an app for an iPhone? Learn Objective-C and use xCode on a Mac. Want to write an app for Motorola Xoom? Learn the Android SDK and use inteliJ). -
Problems with PreparedStatement and MySQL selecting bytes
Hi,
i have a problem trying to select information when the "select" has a byte restrict.
The table in database is:
CREATE TABLE `positions` (
`PKID` int(10) unsigned NOT NULL auto_increment,
`POSCODE` varbinary(30) NOT NULL,
`ISWTURN` binary(1) NOT NULL,
`QTT_GAMES` int(10) unsigned NOT NULL default '1',
PRIMARY KEY (`PKID`),
UNIQUE KEY `UNIQ_POS` (`POSCODE`,`ISWTURN`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
And the test code to get the qtt_games is :
conn = DriverManager.getConnection (url,user,pwd);
byte bcode[] = poscode.getByteArrayCode();
// bcode is inserted ok in another preparedstatement...
String query = "SELECT qtt_games FROM positions "+
"WHERE poscode=? and iswturn=?";
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setBytes (1,bcode);
pstmt.setByte (2,poscode.getIsWhiteTurn()); //it returns a byte
ResultSet rs = pstmt.executeQuery (query);
When pstmt.executeQuery is reached, it's thrown the exception:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=? and iswturn=?' at line 1
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3170)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3099)
at com.mysql.jdbc.Statement.execute(Statement.java:695)
at app.server.bbdd.MYSQLBDManager.getGamesBasicInfo(MYSQLBDManager.java:942)
at app.server.bbdd.MYSQLBDManager.main(MYSQLBDManager.java:1068)
Can anybody tell me what's wrong?? I think the query is ok, but don't know what's happening with this...
Lots of thanks.Don't cross-post, it's considered rude:
http://forum.java.sun.com/thread.jspa?threadID=5122604&messageID=9430056#9430056
http://forum.java.sun.com/thread.jspa?threadID=5122603&messageID=9430050#9430050
One to a customer, please.
% -
Problems with JSP and MySql bean.
Hi,
I'm new to JSP and I'm having some problems with it. I'm trying to do a simple login where a java class (bean?) handles the SQL injektion. I have deployed the page on tomcat and it works fine, except that the sqlinjektion does basically nothing. I have installed the mysql driver. I think there is something wrong with the java class, or the way im calling it. It does not produce any error. But its like it would never actually process the java code, because ive tried to append things to error string to see what is going on, nothing happens. everything stay null, no exceptions are thrown. If I implement the code to JSP itself, it does load the driver and print exception that there is no connection to database (which is correct). What am I missing? Code follows:
the sqlhandler:
public abstract class SqlInjektor {
private static String Database = "*****";
private static String serverName = "localhost:3306";
private static String usrName="******";
private static String passw="******";
* @return Connection
public static Connection createConnection(String error){
Connection mySqlCon = null;
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
catch(Exception E){
PrintWriter out = response.getWriter();
out.println("lol");
String url = "jdbc:mysql://" + serverName + "/" + Database + "?user=" + usrName + "&password=" + passw;
try{
mySqlCon = DriverManager.getConnection(url);
catch (Exception E){
E.printStackTrace(System.out);
return mySqlCon;
* Metodi saa sy�tteen��n SQL komennon, jonka se suorittaa sek� palauttaa komennon tulokset.
* @param command
* @return ResultSet
public static ResultSet querySQL(String command,String error, Connection con){
ResultSet rs = null;
try{
Statement stmt = con.createStatement();
rs = stmt.executeQuery(command);
catch(Exception E){
E.printStackTrace(System.out);
return rs;
the jsp page:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page isErrorPage="false" %>
<%@ page import="java.sql.*" %>
<%@page import="ot3.User"%>
<%@page import="ot3.SqlInjektor"%>
<%@page import="Javax.servlet.jsp.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>vastaanotto</title>
</head>
<body>
<%! String id;
String password;
String error = new String("Error!\n");
User user;
%>
<% user = new User();
session.putValue("currentUser",user);
id = request.getParameter("authName");
password = request.getParameter("Password");
Connection conn=null;
ResultSet rs=null;
conn = SqlInjektor.createConnection(error);
if(conn!=null){
out.println("conn ok!");
rs = SqlInjektor.querySQL("SELECT * FROM user WHERE id='" + id +"' AND password='" + password+"' COLLATE latin1_bin;",error,conn);}
try {
if (rs!= null && rs.next()){
user.setID(rs.getInt("id"));
user.setName(rs.getString("name"));
user.setPassword(rs.getString("password"));
user.setClearance(rs.getInt("clearance"));
if(rs.getString("addedby")!=null)
user.setAdder(rs.getInt("addedby"));
if(rs.getString("lastmodifier")!=null)
user.setModifier(rs.getInt("lastmodifier"));
rs.close();%>
ONNISTU!
<%}
else {
out.println(error);
} catch (SQLException e) {
out.println(e.getMessage());
}%>
</body>
</html>Hi,
I'm new to JSP and I'm having some problems with it. I'm trying to do a simple login where a java class (bean?) handles the SQL injektion. I have deployed the page on tomcat and it works fine, except that the sqlinjektion does basically nothing. I have installed the mysql driver. I think there is something wrong with the java class, or the way im calling it. It does not produce any error. But its like it would never actually process the java code, because ive tried to append things to error string to see what is going on, nothing happens. everything stay null, no exceptions are thrown. If I implement the code to JSP itself, it does load the driver and print exception that there is no connection to database (which is correct). What am I missing? Code follows:
the sqlhandler:
public abstract class SqlInjektor {
private static String Database = "*****";
private static String serverName = "localhost:3306";
private static String usrName="******";
private static String passw="******";
* @return Connection
public static Connection createConnection(String error){
Connection mySqlCon = null;
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
catch(Exception E){
PrintWriter out = response.getWriter();
out.println("lol");
String url = "jdbc:mysql://" + serverName + "/" + Database + "?user=" + usrName + "&password=" + passw;
try{
mySqlCon = DriverManager.getConnection(url);
catch (Exception E){
E.printStackTrace(System.out);
return mySqlCon;
* Metodi saa sy�tteen��n SQL komennon, jonka se suorittaa sek� palauttaa komennon tulokset.
* @param command
* @return ResultSet
public static ResultSet querySQL(String command,String error, Connection con){
ResultSet rs = null;
try{
Statement stmt = con.createStatement();
rs = stmt.executeQuery(command);
catch(Exception E){
E.printStackTrace(System.out);
return rs;
the jsp page:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page isErrorPage="false" %>
<%@ page import="java.sql.*" %>
<%@page import="ot3.User"%>
<%@page import="ot3.SqlInjektor"%>
<%@page import="Javax.servlet.jsp.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>vastaanotto</title>
</head>
<body>
<%! String id;
String password;
String error = new String("Error!\n");
User user;
%>
<% user = new User();
session.putValue("currentUser",user);
id = request.getParameter("authName");
password = request.getParameter("Password");
Connection conn=null;
ResultSet rs=null;
conn = SqlInjektor.createConnection(error);
if(conn!=null){
out.println("conn ok!");
rs = SqlInjektor.querySQL("SELECT * FROM user WHERE id='" + id +"' AND password='" + password+"' COLLATE latin1_bin;",error,conn);}
try {
if (rs!= null && rs.next()){
user.setID(rs.getInt("id"));
user.setName(rs.getString("name"));
user.setPassword(rs.getString("password"));
user.setClearance(rs.getInt("clearance"));
if(rs.getString("addedby")!=null)
user.setAdder(rs.getInt("addedby"));
if(rs.getString("lastmodifier")!=null)
user.setModifier(rs.getInt("lastmodifier"));
rs.close();%>
ONNISTU!
<%}
else {
out.println(error);
} catch (SQLException e) {
out.println(e.getMessage());
}%>
</body>
</html> -
10.5.2 problems with SMB and Linux server
I'm encountering a problem with trying to copy files to a Linux server via SMB. When I copy a file to a Linux server (via SMB), it shows the file copying, but then the file disappears from the server when it is done copying. There is also something odd on the server side where it tries to rename everything to be in lower case.
I did not have this problem with Tiger, but I've noticed this issue on Leopard. I have tried several different machines, and all of the Leopard machines exhibit this problem.
I then tried copying the same exact file to a Windows server via SMB -- no problem.I tried an experiment. I duplicated a file (MyFile.zip) and renamed it to all lower-case: myfile.zip. I tried copying MyFile.zip to the server. It copied and then disappeared. I then tried copying the lower-case file myfile.zip, and it copied fine. It appears that this is an issue with how the server is trying to handle filenames and transform everything to lowercase.
-
Problems setting up an Apache PHP and MySQL server(slvd)
I folowed this guide: http://wiki.archlinux.org/index.php/LAMP and I did everything it says and everything is working well... but when I try to install any CMS that uses MySQL, it says that mysql is not running... Even with Nmap, it only shows that apache is running... anyone knows why ?
when I'm installing Xoops, it prints this error:
Fatal error:
mysql extension not loaded in /home/httpd/html/xoops-2.2.3a-final-xpr/html/class/database/mysqldatabase.php on line 74
But, phpMyAdmin runs without any errors... this is so strange...
Can anyone help me ?
Thanks in advanceI don't have any extension=mysql.dll in my php.ini.... I just have extension=mysql.so...
Here's my <?
phpinfo();
?>
This is Arch Linux, running PHP.
PHP Logo
PHP Version 5.1.1
System Linux localhost 2.6.15 #4 PREEMPT Mon Jan 9 13:16:27 CAT 2006 i686
Build Date Dec 5 2005 11:31:11
Configure Command './configure' '--with-apxs2' '--prefix=/usr' '--sysconfdir=/etc' '--with-layout=PHP' '--with-ttf' '--enable-mailparse' '--with-config-file-scan-dir=/etc' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-ftp=shared' '--enable-gd-native-ttf' '--enable-magic-quotes' '--enable-posix=shared' '--enable-session' '--enable-shared' '--enable-shmop=shared' '--enable-pdo=shared' '--enable-sqlite-utf8' '--enable-sockets=shared' '--enable-xml' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-sysvmsg=shared' '--enable-track-vars' '--enable-trans-sid' '--enable-safe-mode' '--with-imap' '--with-imap-ssl' '--with-ncurses' '--with-readline' '--with-bz2=shared' '--with-curl' '--with-mime-magic' '--with-freetype-dir=/usr' '--with-gd=shared' '--enable-exif' '--with-jpeg-dir=/usr' '--enable-dba' '--without-db2' '--without-db3' '--with-inifile' '--with-flatfile' '--with-gdbm' '--with-ldap=shared' '--with-openssl' '--with-gettext' '--with-unixODBC=shared,/usr' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-mysqli=shared' '--with-mysql-sock=/tmp/mysql.sock' '--with-pdo-mysql=shared,/usr' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-pgsql-sock=/tmp/pgsql.sock' '--with-pdo-pgsql=shared,/usr' '--with-sqlite=shared' '--with-pdo-sqlite=shared,/usr' '--with-pear=/usr/share/pear' '--with-dom' '--with-dom-xslt' '--with-xsl' '--with-png-dir=/usr' '--with-regex=php' '--with-zlib' '--enable-mbstring=all' '--enable-mbregex'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/lib
Scan this dir for additional .ini files /etc
additional .ini files parsed /etc/php.ini
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib, https, ftps, compress.bzip2
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, convert.iconv.*, zlib.*, bzip2.*
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies
PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir /usr/lib/php/extensions/php /usr/lib/php/extensions/php
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/pear .:/usr/share/pear
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_time 60 60
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays Off Off
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from [email protected] [email protected]
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off
apache2handler
Apache Version Apache
Apache API Version 20020903
Server Administrator [email protected]
Hostname:Port laptop-do-joao.net:0
User/Group nobody(99)/99
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Virtual Server No
Server Root /usr
Loaded Modules core prefork http_core mod_so mod_access mod_actions mod_alias mod_asis mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest mod_autoindex mod_cgi mod_dav mod_dav_fs mod_dir mod_env mod_expires mod_ext_filter mod_headers mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_speling mod_ssl mod_status mod_userdir mod_vhost_alias mod_php5
Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0
Apache Environment
Variable Value
HTTP_HOST laptop-do-joao.net
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060104 Firefox/1.5
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_CONNECTION keep-alive
PATH /bin:/usr/bin:/sbin:/usr/sbin
SERVER_SIGNATURE <address>Apache Server at laptop-do-joao.net Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME laptop-do-joao.net
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT /home/httpd/html
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /home/httpd/html/test.php
REMOTE_PORT 33973
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /test.php
SCRIPT_NAME /test.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /test.php HTTP/1.1
Host laptop-do-joao.net
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060104 Firefox/1.5
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
HTTP Response Headers
X-Powered-By PHP/5.1.1
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html; charset=ISO-8859-1
bcmath
BCMath support enabled
bz2
BZip2 Support Enabled
Stream Wrapper support compress.bz2://
Stream Filter support bzip2.decompress, bzip2.compress
BZip2 Version 1.0.3, 15-Feb-2005
calendar
Calendar support enabled
ctype
ctype functions enabled
curl
CURL support enabled
CURL Information libcurl/7.15.0 OpenSSL/0.9.7h zlib/1.2.3
date
date/time support enabled
Timezone Database Version 2005.14
Timezone Database internal
Default timezone Africa/Khartoum
Directive Local Value Master Value
date.timezone no value no value
dba
DBA support enabled
Supported handlers gdbm cdb cdb_make inifile flatfile
dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.22
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled
exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.173.2.2 2005/10/10 06:09:25 helly Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
ftp
FTP support enabled
gettext
GetText Support enabled
iconv
iconv support enabled
iconv implementation glibc
iconv library version 2.3.5
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
imap
IMAP c-Client Version 2004
SSL Support enabled
libxml
libXML support active
libXML Version 2.6.22
libXML streams enabled
mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 3.7.1
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding ISO-8859-1 no value
mbstring.language neutral neutral
mbstring.substitute_character no value no value
mime_magic
mime_magic support enabled
Directive Local Value Master Value
mime_magic.debug Off Off
mime_magic.magicfile /etc/httpd/conf/magic /etc/httpd/conf/magic
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.18
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7h 11 Oct 2005
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 6.2 01-Aug-2005
posix
Revision $Revision: 1.70.2.1 $
session
Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0
shmop
shmop support enabled
SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.7 $
Schema support enabled
sockets
Sockets Support enabled
SPL
SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RuntimeException, SimpleXMLIterator, SplFileObject, SplObjectStorage, UnderflowException, UnexpectedValueException
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.83 90.83
date.sunset_zenith 90.83 90.83
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value
tokenizer
Tokenizer Support enabled
xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.22
xsl
XSL enabled
libxslt Version 1.1.15
libxslt compiled against libxml Version 2.6.21
EXSLT enabled
libexslt Version 1.1.15
zlib
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Additional Modules
Module Name
sysvsem
sysvshm
Environment
Variable Value
CONSOLE /dev/console
TERM linux
LD_LIBRARY_PATH /usr/lib:
INIT_VERSION sysvinit-2.86
PATH /bin:/usr/bin:/sbin:/usr/sbin
RUNLEVEL 5
PWD /
PREVLEVEL N
SHLVL 3
HOME /
BOOT_IMAGE Arch-2.6.15
_ /usr/sbin/httpd
PHP Variables
Variable Value
_SERVER["HTTP_HOST"] laptop-do-joao.net
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060104 Firefox/1.5
_SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["PATH"] /bin:/usr/bin:/sbin:/usr/sbin
_SERVER["SERVER_SIGNATURE"] <address>Apache Server at laptop-do-joao.net Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache
_SERVER["SERVER_NAME"] laptop-do-joao.net
_SERVER["SERVER_ADDR"] 127.0.0.1
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 127.0.0.1
_SERVER["DOCUMENT_ROOT"] /home/httpd/html
_SERVER["SERVER_ADMIN"] [email protected]
_SERVER["SCRIPT_FILENAME"] /home/httpd/html/test.php
_SERVER["REMOTE_PORT"] 33973
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /test.php
_SERVER["SCRIPT_NAME"] /test.php
_SERVER["PHP_SELF"] /test.php
_SERVER["REQUEST_TIME"] 1137274380
_SERVER["argv"]
Array
_SERVER["argc"] 0
_ENV["CONSOLE"] /dev/console
_ENV["TERM"] linux
_ENV["LD_LIBRARY_PATH"] /usr/lib:
_ENV["INIT_VERSION"] sysvinit-2.86
_ENV["PATH"] /bin:/usr/bin:/sbin:/usr/sbin
_ENV["RUNLEVEL"] 5
_ENV["PWD"] /
_ENV["PREVLEVEL"] N
_ENV["SHLVL"] 3
_ENV["HOME"] /
_ENV["BOOT_IMAGE"] Arch-2.6.15
_ENV["_"] /usr/sbin/httpd
PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact [email protected]. -
[JAVA] problems with java and mysql
Hi, i have already installed php + mysql and work's them fine, but i want to install java + mysql. I have downloaded eclipse and installed its, that's ok. I have download tomcat and, that's ok. I have download module jconnector and have copied the file .jar in the java home and set classpath. Run and compiled this source that's ok. At runtime the program ask: Impossible connection at the database, why ? It's the source of program:
[JAVA]
import java.sql.*;
public class connessione {
private String nomeDB; // Nome del Database a cui connettersi
private String nomeUtente; // Nome utente utilizzato per la connessione al Database
private String pwdUtente; // Password usata per la connessione al Database
private String errore; // Raccoglie informazioni riguardo l'ultima eccezione sollevata
private Connection db; // La connessione col Database
private boolean connesso; // Flag che indica se la connessione � attiva o meno
public connessione(String nomeDB) { this(nomeDB, "", ""); }
public connessione(String nomeDB, String nomeUtente, String pwdUtente) {
this.nomeDB = nomeDB;
this.nomeUtente = nomeUtente;
this.pwdUtente = pwdUtente;
connesso = false;
errore = "";
// Apre la connessione con il Database
public boolean connetti() {
connesso = false;
try {
// Carico il driver JDBC per la connessione con il database MySQL
Class.forName("com.mysql.jdbc.Driver");
// Controllo che il nome del Database non sia nulla
if (!nomeDB.equals("")) {
// Controllo se il nome utente va usato o meno per la connessione
if (nomeUtente.equals("")) {
// La connessione non richiede nome utente e password
db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB);
} else {
// La connessione richiede nome utente, controllo se necessita anche della password
if (pwdUtente.equals("")) {
// La connessione non necessita di password
db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB + "?user=" + nomeUtente);
} else {
// La connessione necessita della password
db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB + "?user=" + nomeUtente + "&password=" + pwdUtente);
// La connessione � avvenuta con successo
connesso = true;
} else {
System.out.println("Manca il nome del database!!");
System.out.println("Scrivere il nome del database da utilizzare all'interno del file \"config.xml\"");
System.exit(0);
} catch (Exception e) { errore = e.getMessage(); }
return connesso;
public static void main(String [] args) {
connessione a=new connessione("asta","root","");
if(a.connetti())
System.out.println("Connessione al database riuscita");
else
System.out.println("Connessione al database non riuscita");
[JAVA]With this line I always pass the username and password also:
db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB);
db = DriverManager.getConnection("jdbc:mysql://localhost/" + nomeDB, useName, Password);
Make sure you create your users in MySQL with the correct permissions -
Problems with java and mysql error: 1064
Hello,
I have been struggling with the following java code for a day. I ALWAYS get the following error code : 1064 and I just can't figure out why. I am trying to insert data into a mysql table.
Can anyone please help?
Thanks in advance,
Julien.
package com.newedgegroup.pnr.misc;
import java.sql.BatchUpdateException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.ParseException;
import java.text.SimpleDateFormat;
* @author Julien Martin
public class RunDataCopy {
public static void main(String[] args) throws ClassNotFoundException, Exception , ParseException {
Class.forName("com.ibm.as400.access.AS400JDBCDriver");
String url_source = "jdbc:as400://as400a.calyonfinancial.com";
Connection con_source = DriverManager.getConnection(url_source, "upload", "upload");
Class.forName("com.mysql.jdbc.Driver");
String url_target = "jdbc:mysql://localhost:3306/pnr";
Connection con_target = DriverManager.getConnection(url_target, "root", "");
Statement stat_source = con_source.createStatement();
// ResultSet rs_source = stat_source.executeQuery("select * from QS36F.GMIST4F1 po");
String query = "SELECT " +
" sum (po.PGROSS) AS OPTION_PREMIUM, " +
"po.PFIRM, " +
"po.POFFIC, " +
"po.PACCT, " +
"po.PTDATE, " +
"po.PRR, " +
"po.PEXCH, " +
"po.PSUBEX, " +
"po.PFC, " +
"po.PSYMBL, " +
"po.PCLASS, " +
"po.PSUBCL, " +
"po.PSUBTY, " +
"po.PSDSC1, " +
"po.PCTYM, " +
"po.PSTRIK, " +
"po.PCLOSE, " +
"po.PUNDCP, " +
"po.PCURSY, " +
"po.PEXPDT, " +
"po.PLTDAT, " +
"po.PMULTF, " +
"po.PPTYPE, " +
"po.PBS " +
"FROM QS36F.GMIST4F1 as po " +
"WHERE " +
"0 = 0 " +
"AND po.PFIRM = 'I' " +
"AND po.POFFIC = '349' " +
"AND po.PRECID in ('T','B','Q') " +
"AND po.PSUBTY != ' ' " +
"AND po.PCMNT1 != ' E' " +
"AND po.PCMNT1 != ' A' " +
"GROUP BY " +
"po.PFIRM, " +
"po.POFFIC, " +
"po.PACCT, " +
"po.PTDATE," +
"po.PRR, " +
"po.PEXCH, " +
"po.PSUBEX," +
"po.PFC, " +
"po.PSYMBL, " +
"po.PCLASS, " +
"po.PSUBCL, " +
"po.PSUBTY, " +
"po.PSDSC1, " +
"po.PCTYM, " +
"po.PSTRIK, " +
"po.PCLOSE, " +
"po.PUNDCP, " +
"po.PCURSY, " +
"po.PEXPDT, " +
"po.PLTDAT, " +
"po.PMULTF, " +
"po.PPTYPE, " +
"po.PBS ";
// System.out.println(query);
ResultSet rss = stat_source.executeQuery(query);
StringBuffer sb = new StringBuffer("");
SimpleDateFormat df_s = new SimpleDateFormat("yyyyMMdd");
SimpleDateFormat df_t = new SimpleDateFormat("yyyy-MM-dd");
con_target.setAutoCommit(false);
Statement stat_target = con_target.createStatement();
int i = 0;
try {
while (rss.next()) {
i++;
sb.append("INSERT INTO `pnr`.`pnr_transaction` (").append("\n");
sb.append("`FIRM_ID`,").append("\n");
sb.append("`OFFICE_NUMBER`,").append("\n");
sb.append("`ACCOUNT_NUMBER`,").append("\n");
sb.append("`SALESMAN`,").append("\n");
sb.append("`EXCHANGE_CODE`,").append("\n");
sb.append("`SUBEXCHANGE`,").append("\n");
sb.append("`FUTURES_CODE`,").append("\n");
sb.append("`SYMBOL`,").append("\n");
sb.append("`ACCOUNT_CLASS_CODE`,").append("\n");
sb.append("`SUB_CLASS_CODE`,").append("\n");
sb.append("`SECURITY_SUB_TYPE`,").append("\n");
sb.append("`SECURITY_DESCRIPTION_LINE`,").append("\n");
sb.append("`CONTRACT_YR_MON`,").append("\n");
sb.append("`STRIKE_PRICE`,").append("\n");
sb.append("`CLOSING_MARKET_SETTLEMENT_PRICE`,").append("\n");
sb.append("`UNDERLYING_CLOSE_PRICE`,").append("\n");
sb.append("`PRODUCT_CURRENCY_SYMBOL`,").append("\n");
sb.append("`EXPIRATION_DATE`,").append("\n");
sb.append("`LAST_TRADING_DATE`,").append("\n");
sb.append("`MULTIPLICATION_FACTOR`,").append("\n");
sb.append("`PRODUCT_TYPE_CODE`,").append("\n");
sb.append("`CATEGORY_ID`,").append("\n");
sb.append("`MARKET_TYPE_ID`,").append("\n");
sb.append("`TAX_STATUS_ID`,").append("\n");
sb.append("`AMOUNT`").append("\n");
sb.append(") VALUES (").append("\n");
sb.append("'").append(rss.getString("PFIRM")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("POFFIC")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PACCT")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PRR")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PEXCH")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PSUBEX")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PFC")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PSYMBL")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PCLASS")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PSUBCL")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PSUBTY")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PSDSC1")).append("'").append(",").append("\n");
sb.append("'").append(rss.getString("PCTYM")).append("'").append(",").append("\n");
sb.append(rss.getString("PSTRIK")).append(",").append("\n");
sb.append(rss.getString("PCLOSE")).append(",").append("\n");
sb.append(rss.getString("PUNDCP")).append(",").append("\n");
sb.append("'").append(rss.getString("PCURSY")).append("'").append(",").append("\n");
sb.append("'").append(df_t.format(df_s.parse(rss.getString("PEXPDT")))).append("'").append(",").append("\n");
sb.append("'").append(df_t.format(df_s.parse(rss.getString("PLTDAT")))).append("'").append(",").append("\n");
sb.append(rss.getString("PMULTF")).append(",").append("\n");
sb.append("'").append(rss.getString("PPTYPE")).append("'").append(",").append("\n");
//sb.append(rss.getString("PBS")).append(",");
sb.append("1").append(",").append("\n");
sb.append("1").append(",").append("\n");
sb.append("1").append(",").append("\n");
sb.append(rss.getString("OPTION_PREMIUM")).append("").append("\n");
// sb.append(df_t.format(df_s.parse(rss.getString("PTDATE")))).append(",");
sb.append(") ").append("\n");
System.out.println(sb.toString());
// stat_target.executeUpdate(sb.toString());
stat_target.addBatch(sb.toString());
// stat_target.executeUpdate(sb.toString());
if (i == 2) {
break;
stat_target.executeBatch();
con_target.commit();
} catch (BatchUpdateException be) {
System.out.println("be: "+be.getErrorCode());
System.out.println("be: "+be.getMessage());
be.printStackTrace();
System.out.println("be: "+i);
} catch (SQLException se) {
System.out.println("se: "+se.getErrorCode());
System.out.println("se: "+i);
}What is the error message?
I advice you to use prepared statement for batch inserting. -
Problem with JSR188 and Application Server 8.2
Hi there,
I'm trying to integrate a CC/PP profile in the SOAP's Header in order to apply adaptation logic in a Web Service. An error occurs when the service tries to validate the client's Profile.
To be more specific, when the line:
ProfileFactory pf = ProfileFactoryImpl.getInstance();is called in order to create the profile instance, the exception:
java.security.AccessControlException: access denied
is thrown (in the server's log file) by the server.
For the manipulation of the CC/PP I've used the example code that is located in the:
http://developers.sun.com/techtopics/mobility/midp/articles/ccpp/
When the same code in executed as a stand-alone application it runs normally.
Thanks,
Stavros.Hi,
Give only asadmin> start-domain
it works! If you want to see what are the commands you can use with asadmin
try asadmin>help
MJ -
Performance problems with JDBC and mysql
Hi,
I have here a "one table" database which has 1.000.000 data rows. The problem is, that deleting a special entry (ie delete from mytable where da_value="foo1") takes between 10 and 60 seconds.
Does anyone can help me out of this performance trap.
LoCaltable indexed and keys used?
always preferred postgres! :) -
Update problems with catalyst and xorg-server
/etc/pacman.conf
[catalyst]
Server = http://catalyst.apocalypsus.net/repo/catalyst/$arch
$ pacman -Syu
:: catalyst-utils: benötigt xorg-server<1.12.0
$ pacman -Si xorg-server
Repositorium : extra
Name : xorg-server
Version : 1.12.0-1
Mmmmh ...
Ranomierpacman.conf
#[...] standart stuff
#yaourt repos
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64
#catalyst repos
[catalyst]
Server = http://catalyst.apocalypsus.net/repo/catalyst/$arch
#EOF
Updating
$ pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
archlinuxfr is up to date
catalyst is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: catalyst-utils: requires xorg-server<1.12.0
Information about the required package
# LC_ALL=C pacman -Si xorg-server
Repository : extra
Name : xorg-server
Version : 1.12.0-1
URL : http://xorg.freedesktop.org
Licenses : custom
Groups : xorg
Provides : x-server
Depends On : libxdmcp libxfont udev libpciaccess libdrm pixman libgcrypt libxau
xorg-server-common xf86-input-evdev
Optional Deps : None
Conflicts With : nvidia-utils<=290.10
Replaces : None
Download Size : 1273.11 KiB
Installed Size : 3818.00 KiB
Packager : Andreas Radke <[email protected]>
Architecture : x86_64
Build Date : Mon Mar 5 07:00:50 2012
MD5 Sum : 499b6f00f70cab6f75d0cea349b69fd6
SHA256 Sum : 0d9a4a50770912e8d90b21ffe9dbb0d83d58e60598088d55881000fccf1e87e2
Signatures : Yes
Description : Xorg X server
But in the repos IS the 1.12.x package of xorg-server
wondering, ok then i take these repos
Last edited by Ranomier (2012-03-13 18:42:18) -
Problems with apache and application server
Hi there,
I got apache running on the same port as the application server. Each time I want to start the application server or make it work (without displaying the 404 page or an search engine) I have to shut down my apache server!
Is there a way I can change the port of the application server so that I can run both at the same time ?
I have J2EE 1.4 version
Thanks in advance
Rikyes, you can do this via the admin gui by modifying the http listener port.
You can also do this via the cli commandline as well http-listener-1 is the one you want to change the port for.
http://docs.sun.com/source/817-6088/httpservice.html has details -
PHP and MySQL Connection problem
I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
"Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
I know the user, password, etc. work, as I can access the MySQL database with other software.
I checked with my host and they say there are no permission problems on their end.
I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
Any help would be appreciated.I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
Is there some other testing server that I should be aware of?
Frank
Date: Wed, 3 Jun 2009 15:43:02 -0600
From: [email protected]
To: [email protected]
Subject: PHP and MySQL Connection problem
I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
>
Maybe you are looking for
-
How to get the value of a variable in FOX?
Hi, In the FOX program how to get the value of a variable defined in planning area? can anyone give me some sample code? thanks
-
Can't log in to iCloud on the iPad
When I go to iCloud.com in Safari on the iPad, I don't get a login screen. I just get bounced back to Apple's instruction page on how to set up iCloud on the iPad. I've already set it up. It works OK on my computer. Is this a bug or do you not use ic
-
This file is already open or in use by another application Error Message
I can't seem to save my AI files any more without getting an error message stating, "This file is already open or in use by another program." None of the previous forums have helped to resolve this problem. The problem begins when I open an Illustrat
-
To open Adobe Interactive Form in New Window
Hi Folks I want to open Adobe interactive form in new window not in popup. This form should contain data passed from parent view. Please help - Mandeep Virk
-
OpenDocument fails because of unknown field name error
Hi, I am trying to execute reports on the server. The reports contain records filters and formulas which are necessary and cannot be removed. When I attempt to open a report with the openDocument function the application throws an error, that the fie