Displaying Japanese in Browser from MySQL query

Hi All,
I have the following jsp where I am trying to query a MySQL database for japanese words and display them on a web page.
<html>
<head>
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@page import="java.sql.*" %>
</head>
<%
String connectionURL = "jdbc:mysql://localhost:3306/japanese?user=;password=";
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
%>
<body>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
connection = DriverManager.getConnection(connectionURL, "root", "");
statement = connection.createStatement();
rs = statement.executeQuery("SELECT kanji, kana, english FROM vocab");
while (rs.next()) {
out.println("Kanji: " + rs.getString("kanji")+"<br>");
out.println("Kana: " + rs.getString("kana")+"<br>");
out.println("English: " + rs.getString("english")+"<br>");
rs.close();
%>
</body>
</html>But when I run this through my browser (http://localhost:8180/japanese/mysql.jsp) I get the following output:
Kanji: ???
Kana: ??????
English: elephant
I am using:
* mysqld Ver 5.0.22-Debian_0ubuntu6.06.3-log for pc-linux-gnu on i486 (Debian Etch distribution)
* Apache/Tomcat 5.0
* java-6-sun
Can someone please tell me what I need to do?

That is fine, but has following limitations.
(1)     Blob has limitation of size of 4kb and you cannot afford to load heavy objects in session which messes performance
(2)     Content type (gif/jpeg) dependency, I need to explicitly declare content type.
(3)     I need to know the size of image
Hence following one of the ways is suggested to store
and retrieve. Use <iamge src to
retrieve the file
Steps involved in displaying image from the database
works with post Oracle 9i
(1)     Provide read permission to the Oracle account to
read the file from a directory
(2)     Create an image table that contains
ordsys.ordimage column.
(3)     Upload the file into Oracle Database in
ordsys.ordimage column table using a procedure.
(4)     Provide java file write permission to the Oracle
account.
(5)     Export the file from the Oracle Database to
output directory.
(6)     Read the file in JSP using src image tag
Regards,
Shankar G. Pednekar

Similar Messages

  • How to export result set from mysql query browser to .sql in oracle

    Hi folks:
    I was trying to export result set from MySql query browser to Oracle. I could able to do
    File->Export Result Set-> Excel format...
    What I am trying to get is .sql file so that I can run it as a script in my oracle db. Is there any way we can get .sql file with inserts and delimeters ....?
    Did you guys get my question.?
    Please throw some light on this....
    Could be very appreciable ....
    Thanks
    Sudhir Naidu

    Hi
    Create a sql statement which generates the insert statements.
    Something like this:
    select 'insert into table1 (column1, column2, column3) values (' ||
    column1 || ', ' || column2 || ', ' || column3 || ');' from table 1;
    The || sign is the string concatenation sign in Oracle, replace it the appropriate sign in MySql. Export the result set of this query into a file, and you can run it in a SqlPlus.
    Ott Karesz
    http://www.trendo-kft.hu

  • Getting number of results from mysql query.

    Hi,
    Is there an easy way to get the number of rows (results) returned by a mysql query without looping through each result and incrementing using the rs.next()?
    Statement statement = connection.createStatement();
                   ResultSet rs = statement.executeQuery("SELECT * FROM sometable WHERE name=\"John\"");
                   

    Have you looked at the mysql documentation at all ?
    What about "SELECT count(*) FROM sometable WHERE name=\"John\"");
    And if this value is going to be dynamic at all consider using a preparedStatement.
    Note Haven't worked with MySql so this isn't guarenteed to work, but you get the idea. This is more of a sql question than a java question

  • SSRS - How to display all the results from a query and then be able to filter the data

    Let's say I have a simple query that will return products name, ID, price
    SELECT pname,
    pID,
    price
    FROM products
    When I display the results in SSRS the user will (without entering any parameters) see something like:
    Product Name | ID | Price
    xyz                    1     $10.00
    .zzz                    10   $4,000.00
    How can I filter my results once they are displayed? For instance, Out of the results the user wants to see only the products where price is between $10 and $3000?
    -Alan

    Hi Visahk,
    Maybe I did not explain my issue very good. 
    I want the user to first see all results (without entering the price range) - then if he wants she/he can filter the results by price.
    As soon as I add 
    WHERE price BETWEEN @StartPrice AND @EndPrice
    to my SQL query, the user is prompted to enter a price range before seeing any data.
    -Alan
    Ok for that what you can do is to set allow null value property for the parameters.
    Then set NULL as default value for parameters in parameter properties tab
    and make the query as below
    WHERE price BETWEEN @StartPrice AND @EndPrice
    OR (@StartPrice IS NULL AND @EndPrice IS NULL)
    and then report will get executed without waiting for any prompt and user may change values at a later stage and rerun it
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Report Viewer Control not displaying Japanese Text fetched from a file.

    Hi,
    I am using Crystal Report 2008.
    I want my report to display values read from text file ( this file contains key = value pairs ), for this I have created a ufl ( created as .net dll and also tested correctly).  The text file contains keys in english and theirs values in Japanese hence this text file is in UTF-8 format.
    As said above the .net dll was tested with a .net application and the japanese values were returned correctly.
    But using the same function as ufl in crystal report displays ???????? for same japanese text.
    I have already installed the Japanese language pack for crystal report.
    Please help as soon as possible.
    Thanks.

    Hi,
    I solved the above problem using setContentLocale method and passing it desired locale.
    Thanks!

  • Get multiple rows from mysql query in NetBeans

    Hi, I am working on a project in NetBeans 6.I have a checkboxlist, and I have a variable in which I save the selected values of the checkboxlist.Now, I want to make a query that will get the rows of the rowset that have the same id as the selected values.for example, I have a checkboxlist that has the following values: Helen, Maria, Anna.The user checks the first two, so I have a variable String[] "checked" that has in it the data 1,2.Now, I have a rowset that has the following query:
    SELECT ALL person.age
    FROM person
    WHERE person.id=? or something like this.I want the parameters to have the values (1,2) so that the rowset has the results of the ages of the two first rows.How do I accomplish that?I am assuming that with one "?" it can't be done because I need multiple parameters. Will something like this work: WHERE person.id IN something,but what will something be?

    christomar wrote:
    I have a rowset that has the following query:
    SELECT ALL person.age
    FROM person
    WHERE person.id=? or something like this.I want the parameters to have the values (1,2) so that the rowset has the results of the ages of the two first rows.How do I accomplish that?Use a PreparedStatement. You probably first need to read the Sun JDBC Tutorial before you do anything.
    I am assuming that with one "?" it can't be done because I need multiple parameters. I've seen people use up to 76 parameters so yes it can be done, it will look like this:
    Will something like this work: WHERE person.id IN something,Yes, you can submit any SQL you want as long as your db supports it (all support ANSI i believe)
    but what will something be?something in that context would be a list/set of data, but you're getting ahead of yourself I think. do the tutorial and look at some code

  • Display JPEG in Browser from Flash

    Hi All,
    I'm working on a Flash project that will be distributed via
    CD or DVD. I need to include several jpegs in the Flash file that
    can be opened in the user's browser by a simple mouse click when
    the user runs the Flash program from their CD/DVD player.
    Any help would be much appreciated. I'm a nOOb and need help!
    Many Thanks,
    Scott

    unless you import the image to the stage, an image will never
    be included inside the flash file. If that is what you want though,
    it would work something like this...
    Import all of your art work (jpgs etc) to the library. Create
    a movie clip which contains x number of frames where x is the total
    number of art work items you want to show. On each frame of your
    clip, place a single image that you want shown.
    Drop this clip on the stage and name it images or something
    similar. My code below will reflect a name of images....
    Now instead of calling getURL from your button, you'd instead
    do a
    images.gotoAndStop(X);
    where x is the number of the frame the image you want shown
    resides. This method won't use a web browser instead it will show
    the image inside the projector.
    If you absolutely insist on it opening the image in safari or
    IE or Mozilla, you will need to include the images on the CD or if
    you can guarantee that the clients seeing this will indeed have an
    internet connection, you can place the images online and then use
    getURL to direct them to that location instead. There are numerous
    options, but each has it's pros and cons.
    Since this is a kiosk, this should not present any issues. If
    you want to post this on the web though, at some future date, I'd
    choose to use one of the two different getURL options since they
    provide the greatest amount of flexibility.

  • Display rows affected data from MySQL statement??

    Hi,
    Im trying to get the return data from a MySQL database, such as the ROWS AFFECTED into after an INSERT sql command.
    Could anyone help me? I mean I know its easy in PHP to use the "mysql_affected_rows" command, but how do you do this in Java?
    Many thanks!
    Seb

    executeUpdate will return the affected row count for insert, update, and delete statements. Is that what you're after?

  • How can i display data from mysql (cant do it using netbeans)

    im confused with changing ResultSet-->List->Array;
    i already done displaying a data table from mysql but im lost on how to display mysql rows to ComboBoxes and JLists...
    im new here.
    how does the setModel() work?
    i hate this GUI stuff.. = (
    thanks...

    im new here.
    how does the setModel() work?
    i hate this GUI stuff.. = (You claim you have JDBC working already, if I understand your post correctly. So you're asking a question about GUIs in the JDBC forum. Not a good strategy. Try the Swing forum.

  • How to display records from a query into non-database field

    Hi
    I a have a problem:
    I have a query with many tables and 6 column(select a,b,c,d,e,f from x,y,z,t,s,g where conditions) and I use 3 parameters.
    I create 3 parameters :datai,:dataf and :partener and a button with a trigger when button is pressed.
    Then a create a manualy block with six field non-database a1,b1,c1,d1,e1,f1.
    Now I want to display all the records from my query into a1,b1,c1,d1,e1,f1 where a1=a,b1=b,etc. and all the records (if I have 20 record, it will display 20 records in non-database field) when I press the button.
    How I made:
    I create a cursor with query then
    begin open cursor
    loop
    fetch cursor into :a1,:b1,:c1,:d1,:e1,:f1;
    end loop;
    close cursor;
    end;
    It display one record in a1,b1,c1 only and it have to display 100 records and are date for all the fields.
    Can somebody help me in this problem?
    Thanks.
    Edited by: 928437 on Oct 1, 2012 2:55 AM

    Creating a view, and querying that into a database block is an excellent solution.
    To use the non-database block:
    You're missing the all-important Next_Record; command.
    <pre> Begin
    Go_block('X'); -- block X is the non-database block
    Clear_Block(No_Validate);
    open cursor X1;
    loop
    If :System.Record_status != 'NEW' then
    Next_Record;
    End if;
    fetch X1 into :a1,:b1,:c1,:d1,:e1,:f1;
    Exit when X1%NOTFOUND;
    end loop;
    close X1;
    end;</pre>

  • Display in PDF Browser - Item failed to convert in Outlook

    Display in PDF Browser - Item failed to convert in Outlook
    ben soules - 09:26pm Aug 22, 2007 Pacific
    Hi Experts,
    This is a bit of a pain I have to distrubte
    Adobe Acrobat Pro 8.1 to about 3000+ users and I am having a problem,
    In Prefs in "Adobe Acrobat Pro 8.1"
    When I tick then untick, "display in PDF Browser" from the Preferences, My Outlook will fail to convert to PDF. I get an "Item failed to convert" message and a log file. Also Word 2003 will not post a .PDF to an email.
    If I restart "Outlook 2003" it will create a "pdf" when I click the icon the first time, the second time I click it will fail.
    Please help.
    ===================================================
    Requested: 1,
    Converted to PDF: 0,
    Skipped [Already in PDF]: 0,
    Skipped [PDFMaker failed to convert]: 1
    Details of Email to PDF conversion:
    Failed to Convert:
    From: WS XXXX XX XXXXXXX, Subject: FW: testing, Date: 8/08/2007, Status: Item failed to convert

    We also deployed 8.12 to over 1000 users with the "Disable PDF in browser" option checked using the customization wizard. Now we're finding some users need it to view certain PDFs in a web-based application.
    We would like to add the option, but removing the registry key doesn't actually install the option when you check it. It seems you might have to create a new mst then redeploy. We'd really like to not have to do that, if at all possible.
    In the Reader archives, one guy suggested running this:
    msiexec /i Adobe_Reader_8.1_MUI.msi ADDLOCAL=ReaderBrowserIntegration
    I haven't tried that yet. Any feedback or other suggestions?
    E Long
    Austin, TX

  • Display a BLOB data from Oracle in the browser

    Hello,
    I am trying to display Oracle BLOB(ie ORDSYS.ORDVIR) directly in the browser using ASP.
    It is working in SQL Server, but Oracle seems to be giving a problem...
    The code written in ASP is as follows :
    <%
    'Clear out the existing HTTP header Response.Expires = 0
    Response.Buffer = TRUE
    Response.Clear
    ' Change the HTTP header to reflect that an image is being passed.
    Response.ContentType = "image/jpeg"
    Set cn = Server.CreateObject("ADODB.Connection")
    cn.Open "UID=cbir;PWD=cbir;DSN=trying"
    ' Here thumbnaildata is of type ORDSYS.ORDVIR
    SQLQuery = "SELECT thumbnaildata from image where imagekey='1.JPG'"
    set rsBlob = cn.Execute(SQLQuery)
    Response.BinaryWrite rsBlob(0)
    rsBlob.Close
    Set rsBlob = Nothing
    Response.End
    %>
    The the following is displayed in the browser
    after the asp is executed...
    <font face="Arial" size=2>
    <p>Provider</font> <font face="Arial" size=2>error '80004005'</font>
    <p>
    <font face="Arial" size=2>Unspecified error</font>
    <p>
    <font face="Arial" size=2>/ASPSamp/oracbir/sujal/imgtrialora.asp</font><font face="Arial" size=2>, line 38</font>
    NB:- Line 38 is where the query is executed. i.e set rsBlob = cn.Execute(SQLQuery)
    Could you tell me what I did wrong? I am using Oracle 8.1.6 on Win NT..
    Does field of type ORDSYS.ORDVIR have extra info stored along with the image which needs to be removed before displaying the image..
    null

    Since ODBC does not understand Oracle object types, you must select the BLOB locater, not the VIR Object.
    One you've done that you need to loop over the data in the BLOB, pushing it out the Binary response object.
    You may also want to select the mimetype from the VIR object and use that value to set the content type of the response object.
    Here's a piece of code that does the job:
    strSQL = "SELECT t.IMAGE_THUMB.getMimetype(), t.IMAGE_THUMB.getContentLength(), t.IMAGE_THUMB.getContent() FROM IMPB.IMAGE_ITEMS t WHERE IMAGE_ID = 1"
    set rsOrdMediaSource = Server.CreateObject("ADODB.Recordset")
    rsOrdMediaSource.ActiveConnection = "dsn=impb_imperf;uid=impb;pwd=impb;"
    rsOrdMediaSource.Source = strSQL
    rsOrdMediaSource.CursorType = 0
    rsOrdMediaSource.CursorLocation = 2
    rsOrdMediaSource.LockType = 1
    rsOrdMediaSource.MaxRecords = 1
    rsOrdMediaSource.Open()
    If rsOrdMediaSource.EOF Then
    Response.Status = "404 Not Found"
    Response.End
    End If
    Dim blob
    Dim bytesToGo
    bytesToGo = rsOrdMediaSource.Fields.Item(1).value
    Dim vBuffer
    set blob = rsOrdMediaSource.Fields.Item(2)
    If Response.Buffer Then Response.Clear
    Response.Buffer = false
    Response.ContentType=rsOrdMediaSource.Fields.Item(0).value
    While bytesToGo > 0
    vBuffer = blob.getChunk(CLng(32768))
    Response.BinaryWrite(vBuffer)
    bytesToGo = bytesToGo - 32768
    Wend
    Reponse.End
    null

  • [SLVD] MySQL Query Browser (1.2.12) hangs when changing schma/database

    After a rather big upgrade yesterday (see paste below) I have got a problem with MySQL query browser which is found in package mysql-gui-tools. Everything else seems to be okay, but after upgrading mysql-gui-tools from 5.0r12-3 to 5.0r14-1 (..and now, after another update, its at 5.0r14-2) it is no longer able to refresh schema/databases. Every time I try to change/refresh schema in the schema menu to the right the program hangs and I have to kill it. A refresh icon appears as normal to the left of the schema I'm trying to refresh, but that icon too has frozen. I am however able to execute normal SELECT queries etc if I write the full "path" to the table in the SQL query, but when I try a USE query the same thing happens.
    I have done some searching on the Internet about this and found this thread to be interesting. Too bad it's from July 2007..
    I tried to downgrade to the old version of query browser, but then I got this problem:
    /usr/bin/mysql-query-browser-bin: error while loading shared libraries: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory
    ..So I guess theres a dependency problem here with the old version.
    Has anyone else got any problem with the MySQL Query Browser after upgrade or has any ideas for a solution?
    Log from pacman:
    [2009-04-12 13:52] synchronizing package lists
    [2009-04-12 13:52] starting full system upgrade
    [2009-04-12 13:55] upgraded xf86-input-evdev (2.1.2-1 -> 2.2.1-1)
    [2009-04-12 13:55] upgraded xorg-server (1.5.3-5 -> 1.6.0-3)
    [2009-04-12 13:56] synchronizing package lists
    [2009-04-12 13:56] starting full system upgrade
    [2009-04-12 13:56] upgraded glib2 (2.20.0-1 -> 2.20.1-1)
    [2009-04-12 13:56] upgraded libcap (1.10-2 -> 2.16-3)
    [2009-04-12 13:56] upgraded avahi (0.6.24-1 -> 0.6.24-3)
    [2009-04-12 13:56] upgraded cdrkit (1.1.9-1 -> 1.1.9-2)
    [2009-04-12 13:56]
    [2009-04-12 13:56] >>> Deluge's daemon is running with the "deluge" user. The default download directory is /srv/deluge/
    [2009-04-12 13:56]
    [2009-04-12 13:56] upgraded deluge (1.1.5-1 -> 1.1.6-3)
    [2009-04-12 13:56] upgraded jack-audio-connection-kit (0.109.2-2 -> 0.116.2-1)
    [2009-04-12 13:56] upgraded gstreamer0.10-bad-plugins (0.10.11-2 -> 0.10.11-3)
    [2009-04-12 13:56] upgraded hdparm (9.12-1 -> 9.14-1)
    [2009-04-12 13:56] upgraded iptables (1.4.2-1 -> 1.4.3.1-1)
    [2009-04-12 13:56] upgraded kbproto (1.0.3-1 -> 1.0.3-2)
    [2009-04-12 13:57] upgraded kdelibs (4.2.2-3 -> 4.2.2-4)
    [2009-04-12 13:57] upgraded kernel26-firmware (2.6.28-1 -> 2.6.29-1)
    [2009-04-12 13:59] >>> Updating module dependencies. Please wait ...
    [2009-04-12 13:59] >>> MKINITCPIO SETUP
    [2009-04-12 13:59] >>> ----------------
    [2009-04-12 13:59] >>> If you use LVM2, Encrypted root or software RAID,
    [2009-04-12 13:59] >>> Ensure you enable support in /etc/mkinitcpio.conf .
    [2009-04-12 13:59] >>> More information about mkinitcpio setup can be found here:
    [2009-04-12 13:59] >>> http://wiki.archlinux.org/index.php/Mkinitcpio
    [2009-04-12 13:59]
    [2009-04-12 13:59] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2009-04-12 13:59] ==> Building image "default"
    [2009-04-12 13:59] ==> Running command: /sbin/mkinitcpio -k 2.6.29-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
    [2009-04-12 13:59] :: Begin dry run
    [2009-04-12 13:59] :: Parsing hook [base]
    [2009-04-12 13:59] :: Parsing hook [udev]
    [2009-04-12 13:59] :: Parsing hook [autodetect]
    [2009-04-12 13:59] :: Parsing hook [pata]
    [2009-04-12 13:59] :: Parsing hook [scsi]
    [2009-04-12 13:59] :: Parsing hook [sata]
    [2009-04-12 13:59] :: Parsing hook [usbinput]
    [2009-04-12 13:59] :: Parsing hook [keymap]
    [2009-04-12 13:59] :: Parsing hook [filesystems]
    [2009-04-12 13:59] :: Generating module dependencies
    [2009-04-12 13:59] :: Generating image '/boot/kernel26.img'...SUCCESS
    [2009-04-12 13:59] ==> SUCCESS
    [2009-04-12 13:59] ==> Building image "fallback"
    [2009-04-12 13:59] ==> Running command: /sbin/mkinitcpio -k 2.6.29-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
    [2009-04-12 13:59] :: Begin dry run
    [2009-04-12 13:59] :: Parsing hook [base]
    [2009-04-12 13:59] :: Parsing hook [udev]
    [2009-04-12 13:59] :: Parsing hook [pata]
    [2009-04-12 13:59] :: Parsing hook [scsi]
    [2009-04-12 13:59] :: Parsing hook [sata]
    [2009-04-12 13:59] :: Parsing hook [usbinput]
    [2009-04-12 13:59] :: Parsing hook [keymap]
    [2009-04-12 13:59] :: Parsing hook [filesystems]
    [2009-04-12 13:59] :: Generating module dependencies
    [2009-04-12 14:00] :: Generating image '/boot/kernel26-fallback.img'...SUCCESS
    [2009-04-12 14:00] ==> SUCCESS
    [2009-04-12 14:00] upgraded kernel26 (2.6.28.8-1 -> 2.6.29.1-3)
    [2009-04-12 14:00] upgraded klibc-udev (140-1 -> 141-1)
    [2009-04-12 14:00] upgraded libavc1394 (0.5.3-1 -> 0.5.3-2)
    [2009-04-12 14:00] upgraded libcddb (1.3.0-3 -> 1.3.2-1)
    [2009-04-12 14:00] upgraded libdatrie (0.1.2-1 -> 0.2.1-1)
    [2009-04-12 14:00] upgraded libdrm (2.3.1-3 -> 2.4.9-1)
    [2009-04-12 14:00] upgraded libdvdread (0.9.7-1 -> 0.9.7-2)
    [2009-04-12 14:00] upgraded libfontenc (1.0.4-1 -> 1.0.4-2)
    [2009-04-12 14:00] upgraded libid3tag (0.15.1b-2 -> 0.15.1b-3)
    [2009-04-12 14:00] upgraded libmatroska (0.8.1-1 -> 0.8.1-2)
    [2009-04-12 14:00] upgraded libmpd (0.16.1-1 -> 0.18.0-1)
    [2009-04-12 14:00] upgraded libmysqlclient (5.0.77-1 -> 5.1.33-1)
    [2009-04-12 14:00] upgraded libogg (1.1.3-1 -> 1.1.3-2)
    [2009-04-12 14:00] upgraded libsamplerate (0.1.6-1 -> 0.1.7-1)
    [2009-04-12 14:00] upgraded libthai (0.1.9-1 -> 0.1.11-1)
    [2009-04-12 14:00] upgraded libx11 (1.2-1 -> 1.2.1-1)
    [2009-04-12 14:00] installed libftdi (0.15-1)
    [2009-04-12 14:00] upgraded lirc-utils (0.8.4-1 -> 0.8.5pre2-1)
    [2009-04-12 14:00] upgraded m4 (1.4.12-1 -> 1.4.13-1)
    [2009-04-12 14:00] upgraded man-db (2.5.4-2 -> 2.5.5-1)
    [2009-04-12 14:00] upgraded man-pages (3.19-1 -> 3.20-1)
    [2009-04-12 14:00] upgraded nvidia-utils (180.29-3 -> 180.44-1)
    [2009-04-12 14:00] installed dri2proto (1.99.3-1)
    [2009-04-12 14:01] upgraded mesa (7.2-1 -> 7.4-1)
    [2009-04-12 14:01] upgraded mpfr (2.3.2-2 -> 2.4.1-1)
    [2009-04-12 14:01] upgraded mpg123 (1.7.1-4 -> 1.7.2-1)
    [2009-04-12 14:01] upgraded mysql-clients (5.0.77-1 -> 5.1.33-1)
    [2009-04-12 14:01] upgraded mysql (5.0.77-3 -> 5.1.33-1)
    [2009-04-12 14:01] upgraded mysql-gui-tools (5.0r12-3 -> 5.0r14-1)
    [2009-04-12 14:01] In order to use the new nvidia module, exit Xserver and unload it manually.
    [2009-04-12 14:01] upgraded nvidia (180.29-3 -> 180.44-1)
    [2009-04-12 14:01] warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
    [2009-04-12 14:01] upgraded pacman-mirrorlist (20090108-1 -> 20090405-1)
    [2009-04-12 14:01] upgraded pango (1.24.0-1 -> 1.24.0-2)
    [2009-04-12 14:01] upgraded php (5.2.9-2 -> 5.2.9-3)
    [2009-04-12 14:01] upgraded pm-utils (1.2.4-3 -> 1.2.5-1)
    [2009-04-12 14:01] installed perl-xyne-common (0.01-5)
    [2009-04-12 14:01] installed perl-html-tagset (3.20-1)
    [2009-04-12 14:01] installed perl-html-parser (3.60-1)
    [2009-04-12 14:01] installed perl-libwww (5.825-1)
    [2009-04-12 14:01] installed perl-xyne-arch (0.03-5)
    [2009-04-12 14:01] ######################
    [2009-04-12 14:01] ## IMPORTANT NOTICE ##
    [2009-04-12 14:01] ######################
    [2009-04-12 14:01] Powerpill options and configuration file syntax have changed with
    [2009-04-12 14:01] version 16.0. Please remove old configuration files and use the
    [2009-04-12 14:01] default configuration file at /etc/powerpill.conf as a template for new
    [2009-04-12 14:01] ones. Please see the man page for information on the command-line options.
    [2009-04-12 14:01] upgraded powerpill (15.12-1 -> 16.0-5)
    [2009-04-12 14:01] upgraded python-numpy (1.2.1-4 -> 1.3.0-1)
    [2009-04-12 14:02] upgraded qt (4.5.0-3 -> 4.5.0-4)
    [2009-04-12 14:02] upgraded qt3 (3.3.8-9 -> 3.3.8-10)
    [2009-04-12 14:02] upgraded redland (1.0.8-1 -> 1.0.8-3)
    [2009-04-12 14:02] upgraded tdb (3.3.1-1 -> 3.3.3-1)
    [2009-04-12 14:02] upgraded smbclient (3.3.1-1 -> 3.3.3-1)
    [2009-04-12 14:02] upgraded subversion (1.6.0-2 -> 1.6.1-2)
    [2009-04-12 14:02] upgraded syslog-ng (3.0.1-4 -> 3.0.1-6)
    [2009-04-12 14:02] upgraded tzdata (2009d-1 -> 2009e-1)
    [2009-04-12 14:02] upgraded udev (140-2 -> 141-1)
    [2009-04-12 14:02] upgraded xf86-input-keyboard (1.3.2-1 -> 1.3.2-2)
    [2009-04-12 14:02] upgraded xf86-input-mouse (1.3.0-1 -> 1.4.0-2)
    [2009-04-12 14:02] upgraded xf86-video-vesa (2.1.0-1 -> 2.2.0-1)
    [2009-04-12 14:02] upgraded xfce4-mpc-plugin (0.3.3-2 -> 0.3.3-3)
    [2009-04-12 14:02] upgraded xorg-server-utils (7.4-3 -> 7.4-4)
    [2009-04-12 14:02] upgraded xorg-utils (7.4-2 -> 7.4-3)
    Last edited by siaco (2009-04-14 21:42:10)

    I found the error on this. In the current PGKBUILD found in AUR, the patch mysql-gui-tools.chema_change_freeze_bug.patch is no longer applied.
    I downloaded all related files to this package and built it myself now, with some changes to PGKBUILD and the mysql-gui-tools.chema_change_freeze_bug.patch. It works again :-)
    New PGKBUILD:
    # $Id: PKGBUILD,v 1.14 2009/04/12 11:52:45 dsa Exp $
    # Maintainer: Douglas Soares de Andrade <[email protected]>
    # Contributor: Vinay S Shastry <[email protected]>
    pkgname=mysql-gui-tools
    pkgver=5.0r14
    pkgrel=2
    arch=('i686' 'x86_64')
    pkgdesc="Set of programs to manage and interact with a MySQL server."
    url="http://www.mysql.com/products/tools/"
    license=('GPL')
    source=(http://mirrors.uol.com.br/pub/mysql/Downloads/MySQLGUITools/$pkgname-$pkgver.tar.gz
    bad-char.patch
    mysql-gui-tools-sigc_2.1.1_api_fixes.diff
    mysql-gui-tools-5.0_p12-deprecated-gtk+-api.patch
    mysql-gui-tools-gcc43.patch
    mysql-gui-tools.chema_change_freeze_bug.patch)
    depends=('gtkmm' 'gtkhtml' 'libmysqlclient' 'pcre')
    replaces=('mysql-administrator' 'mysql-query-browser')
    conflicts=('mysql-administrator' 'mysql-query-browser')
    provides=('mysql-gui-common' 'mysql-administrator' 'mysql-query-browser')
    makedepends=('pkgconfig' 'lua' 'libxml2' 'libgnomeprint')
    options=('!makeflags')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    # Patch from mysql.com to fix the freeze when selecting a schema
    patch -p1 < ../mysql-gui-tools.chema_change_freeze_bug.patch || return 1
    # Patch to make 5.0r14 compile
    patch -Np1 < $startdir/src/bad-char.patch
    patch -Np1 < $startdir/src/mysql-gui-tools-sigc_2.1.1_api_fixes.diff
    patch -Np1 < $startdir/src/mysql-gui-tools-gcc43.patch
    patch -Np0 < $startdir/src/mysql-gui-tools-5.0_p12-deprecated-gtk+-api.patch
    cd $startdir/src/$pkgname-$pkgver/common
    sh autogen.sh
    ./configure --prefix=/usr --datarootdir=/usr/share --with-gtkhtml=libgtkhtml-3.14 || return 1
    make || return 1
    make DESTDIR=$startdir/pkg install || return 1
    cd ..
    cp -R common mysql-gui-common
    cd $startdir/src/$pkgname-$pkgver/administrator
    sh autogen.sh
    ./configure --prefix=/usr --datarootdir=/usr/share --with-gtkhtml=libgtkhtml-3.14 || return 1
    make || return 1
    make DESTDIR=$startdir/pkg install || return 1
    cd $startdir/src/$pkgname-$pkgver/query-browser
    sh autogen.sh
    ./configure --prefix=/usr --datarootdir=/usr/share --with-gtkhtml=libgtkhtml-3.14 || return 1
    make CFLAGS="${CFLAGS} -D_GNU_SOURCE" || return 1
    make DESTDIR=$startdir/pkg install || return 1
    #cd $startdir/src/$pkgname-$pkgver/mysql-workbench
    #patch -p1 < ../../mysql-gui-tools-5.0_p12-workbench-lua.patch
    #./configure --prefix=/usr --with-gtkhtml=libgtkhtml-3.14 || return 1
    #make || return 1
    #make DESTDIR=$startdir/pkg install
    # Some adjusts to make mysql-workbench run
    #cd $startdir/pkg/usr/bin
    #mv mysql-workbench mysql-wb
    #mv mysql-workbench-bin mysql-wb-bin
    #install -m755 $startdir/src/mysql-workbench.sh mysql-workbench
    #rm -rf $startdir/pkg/usr/lib/
    # Fixed startup scripts
    install -m755 $startdir/mysql-administrator $pkgdir/usr/bin
    install -m755 $startdir/mysql-query-browser $pkgdir/usr/bin
    md5sums=('b8efefbf20b7264c8f3afd34424467d7'
    '4279c75bb5e6c2bfcb16c98817d55b80'
    '4625629385142862cd01d37f814d5e80'
    '33205d45329ab4fa4096b6b298a60b2c'
    '1368384dac87bc0a64adb774ab2e6cbd'
    '2ff840932405f7a6a6863f633a639fe9')
    New mysql-gui-tools.chema_change_freeze_bug.patch: (only changes to paths in file. Don't know if this was really needed, but I belive so.)
    diff -ruN mysql-gui-tools-5.0r11.ORIG/query-browser/source/linux/MQQueryDispatcher.cc mysql-gui-tools-5.0r11/query-browser/source/linux/MQQueryDispatcher.cc
    --- mysql-gui-tools-5.0r11.ORIG/query-browser/source/linux/MQQueryDispatcher.cc 2007-02-21 01:31:19.000000000 +0000
    +++ mysql-gui-tools-5.0r11/query-browser/source/linux/MQQueryDispatcher.cc 2007-11-09 15:31:38.000000000 +0000
    @@ -558,8 +558,8 @@
    Gtk::Main::instance()->run();
    - while(!req->is_complete())
    +// while(!req->is_complete())
    +// ;
    return sps;
    I hope this helps anyone else who needs to fix this!

  • Display text from MySQL Text Field

    Hi,
    I am trying to display text which is stored in mysql text field. But it displays nothing. and when i try this code:
    <c:out value="${rowSrearch.pDetails}" />
    <c:set var="text" value="${rowSrearch.pDetails}"/>
    <%
    String text = (String)pageContext.getAttribute("text");
    out.print(text);
    %>
    it gives me null.
    I am just opening a resultset using <sql:query and trying to retrieve data using <c:forEach loop.
    What is the best way to retrieve data from MySQL text field.
    I am using:
    Apache2
    Tomcat 5.5.17
    MySQL 5.0.22
    mysql-connector-java-5.0.3
    Thanks

    One way is to enter them into the database with the desired formatting.

  • MySQL Query Browser Broke?

    Ever since I upgraded to the latest gnome, et. al., the GUI tool "MySQL Query Browser" is broken.  I can connect to my local mysql installation and run queries, but I cannot choose a scheme without the processor pegging 100% and hanging.  I've ran "mysql-query-browser" from a command prompt and it doesn't spit out any errors or anything.
    I keep my machine pretty up to date with the core, current and extra packages.  I just updated Friday evening, then this morning and now it's broke.  I'm thinking something is related to the recent gnome upgrade?  Can anyone give this a try and see if they have the same issue?

    Does it have somethign to do with:
    MGConnectDialog.cc:718: error: 'input_handler' was not declared in this scope
    MGConnectDialog.cc:753: error: 'input_handler' was not declared in this scope
    make[3]: *** [MGConnectDialog.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[3]: Leaving directory `/home/blum/cvs/mysqlguitools/src/mysql-gui-tools-5.0r12/mysql-gui-common/source/linux'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/blum/cvs/mysqlguitools/src/mysql-gui-tools-5.0r12/mysql-gui-common/source'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/blum/cvs/mysqlguitools/src/mysql-gui-tools-5.0r12/mysql-gui-common'
    make: *** [all] Error 2
    ==> ERROR: Build Failed. Aborting...

Maybe you are looking for

  • Download indesign 6 on new computer

    I have an ed edition of InDesign 6 that I want to download on a new computer. Have deactivated it on the old computer but can't find where to download

  • Mp4 Video file with a .lock extension

    Hi All, Need some help. I was recording a video on my 9360 when the battery died. After charging I could not find the video file. I connected to the computer and found the file, but it had a mp4.lock extension instead of the normal .mp4. I changed th

  • Issue related with Submit to spool.

    Hi All, Please provide you inputs to resolve the below issue : Requirement : To generate spool before output ALV display. Issue : when below statement is executed for creating spool.       SUBMIT report name TO SAP-SPOOL                         SPOOL

  • Exploring  the   possibility of running a BW query through  Web Dynpro

    Hi,    I would like to extract data from BW query and its output of should  populate into the selection screen which is developed in Web Dynpro. Can anyone please help me out ..... Regards Padma N

  • Multi channel record in STP v3

    has any done any multi channel recording in STP3. what were your results.