Mysql charset question

well I just got Mysql Browser query and I was modifying some of the variables inside the table from varchar to longtext and it ask me for the charset. So my question is: Which one should I use ? The application its used on a spanish enviroment.
Thanks!

Uhh, one of the sets that contains spanish characters, I suppose...
http://dev.mysql.com/doc/mysql/en/charset-charsets.html
looks like your choices are some universal charsets (utf8 and ucs2) and some "western" sets. You probably ought to pick a charset that also has a spanish collation (if you want to do native-language sorting).

Similar Messages

  • MySQL /JDBC Question

    I began playing with JDBC a few days ago. I set up a database using mySQL and wrote a simple java program that will connect to it. Works good from the computer that holds the database.
    I try and run the same program from my secondary computer which does not have mySQL or ODBC mySQL drivers, I get com.mysql.jdbc.Driver for an error message. (Trying to access the database on my main computer via ip/databasename)
    My Question is, do you HAVE to have mySQL or Connector/ODBC installed on a computer if you wish to connect to a database on other computer??
    Here's where it prints the error message...
    try
    Class.forName("com.mysql.jdbc.Driver");
    catch (Exception e)
    JOptionPane.showMessageDialog(null, "ERROR = " + e.getMessage());
    I use this as my url..
    private final String url = "jdbc:mysql://122.122.122.122:3306/test123";
         

    Say I want to make a simple web applet that will
    access a database on my computer. The only way my
    vistors to my website will be able to access the
    database via the web applet is by having mySQL JDBC
    driver installed on their computers?yes.
    however.
    you can package up the JDBC driver as part of your jar with your applet so it doesn't require the user to "install" anything. it's just part of your applet.

  • Quick MySQL Indexing question

    Hi all,
    I know this is not strcitly a JDBC problem, but i was wodering if you have any ideas anyhow...
    I've implemented an Index on two of my columns in a table in my MySQL db. My question is, when i insert new rows into the database, is the index automatically updated? If not, how do I go about updating the Index?
    Many thanks,
    BBB

    I thought the database would manage that for you. AFAIK, you don't have to do anything. That's the way it is in Oracle. I thought that was true for all RDBMS. - MOD

  • Mysql database question

    Let's say that I am making a java program that connects to a Mysql database and uses the database "MyDatabase".
    Forgive me, but I am relating this to a Microsoft Access database.
    The database is not on a network, but is (or will be installed) on the user's machine. In otherwords, the database will be on the user's machine and the changes to the database will only affect that user.
    If I am to let a user use this program, will they have to also have Mysql installed for the program to access the database and pull information from it?
    --Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Let's say that I am making a java program that
    connects to a Mysql database and uses the database
    "MyDatabase".[snip]
    The database is not on a network, but is (or will be
    installed) on the user's machine.[snip]
    If I am to let a user use this program, will theyhave
    to also have Mysql installed for the program toaccess
    the database and pull information from it?Yes.
    (if you are asking if the code could directly
    access/manipulate MySQL datafiles without going
    through the MySQL program, I suppose in theory you
    could, but I seriously doubt you really want to)The reason being is that it would be a client database for their own use, as oppose to sharing the database with others.
    In any case, Thanks!
    Next question: is there any place where I could go to find code that would treat the Mysql database as a client database (so far, the code that I found requires Mysql to be installed and running in the background on the user's machine)?

  • MySQL PHP question/problem.....blank page!

    This is new to me, so be gentle and let me know what might be
    happening
    here.
    - I set up a MySQL database which seems fine
    - Set up a testing server for the site (the root of the
    remote site) which
    tests okay
    - Set up a Connection which tests okay
    - Created a Recordset which tests okay
    - Inserted a REPEAT REGION and even just a field to
    display.....I get a
    blank page. Blank with DESIGN VIEW and blank with f12 and
    blank if I upload
    it and look at the page.
    How can everything check out and test out yet it's not
    returning anything? I
    know there's an easy answer here....
    If it helps, here's the code:
    <?php require_once('Connections/jobs.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "",
    $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    $maxRows_Jobs1 = 6;
    $pageNum_Jobs1 = 0;
    if (isset($_GET['pageNum_Jobs1'])) {
    $pageNum_Jobs1 = $_GET['pageNum_Jobs1'];
    $startRow_Jobs1 = $pageNum_Jobs1 * $maxRows_Jobs1;
    mysql_select_db($database_jobs, $jobs);
    $query_Jobs1 = "SELECT job_title, salary FROM jobs ORDER BY
    job_title ASC";
    $query_limit_Jobs1 = sprintf("%s LIMIT %d, %d", $query_Jobs1,
    $startRow_Jobs1, $maxRows_Jobs1);
    $Jobs1 = mysql_query($query_limit_Jobs1, $jobs) or
    die(mysql_error());
    $row_Jobs1 = mysql_fetch_assoc($Jobs1);
    if (isset($_GET['totalRows_Jobs1'])) {
    $totalRows_Jobs1 = $_GET['totalRows_Jobs1'];
    } else {
    $all_Jobs1 = mysql_query($query_Jobs1);
    $totalRows_Jobs1 = mysql_num_rows($all_Jobs1);
    $totalPages_Jobs1 = ceil($totalRows_Jobs1/$maxRows_Jobs1)-1;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Database test</title>
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <?php do { ?>
    <td> </td>
    <?php } while ($row_Jobs1 = mysql_fetch_assoc($Jobs1));
    ?>
    </tr>
    <tr>
    <td> </td>
    </tr>
    <tr>
    <td><?php echo $row_Jobs1['job_title'];
    ?></td>
    </tr>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Jobs1);
    ?>
    THANKS,
    Mad Dog
    (be gentle)

    no worries mad, glad you got it fixed man.
    "Mad Dog" <[email protected]> wrote in message
    news:ecqpkh$ocp$[email protected]..
    >I added that, though it wasn't the problem. And I don't
    know why DW didn't
    >add it.
    >
    > But I've got things working now. By INSERTING a DYNAMIC
    TABLE and
    > modifying the code I'm getting what I wanted. It was
    something about doing
    > it with a table and REPEAT REGION that got things (me?)
    bolluxed up.
    >
    > Thanks for the help!
    > MD
    >
    >
    >
    > crash wrote:
    >> switch ($theType) {
    >> case "text":
    >> $theValue = ($theValue != "") ? "'" . $theValue .
    "'" : "NULL";
    >> break;
    >> case "long":
    >>
    >> you should insert the following text:
    >> break; after this (Idon't know why DW didn't do it)
    >>
    >>
    >> case "int":
    >> $theValue = ($theValue != "") ? intval($theValue) :
    "NULL";
    >> break;
    >>
    >>
    >> Also,it currently looks like your do while is
    surrounding an empty
    >> table cell.
    >
    >

  • Change DB charset questions

    I am going to change the DB charset from ZHT16BIG5 to UTF8, however, there is some customised char which have been inputted via ODBC and found to have problem in using JDBC connection instead. Somebody told me that I should change the DB charset to ZHT16MSWIN950 first, here is the questions:
    1. do ZHT16MSWIN950 equal to ZHT16BIG5 in the internal code, i.e. the corresponding Chinese char in ZHT16BIG5, say 0xA4A4, is the same in corresponding word in ZHT16MSWIN950 (still 0xA4A4)
    2. what is the UDC area of ZHT16MSWIN950, because I have customised words to map, is this area(s) the same as BIG5 specification used in Taiwan for a long time

    yxes2013 wrote:
    Hi all,
    10.2.0.4
    SLES 10
    I have installed a PROD database and had populated the tables. But the audit team said that I used the wrong characterset. :(
    Is there an easier way to change it than reinstalling the db?refer below thread.it may be helpful to you.
    Oracle11g: how I change character set to AL32UTF8?

  • MySQL query question

    Hi All,
    I've got 2 MySQL tables, movie and movie_tag. The movie table contains a movie_id column and the movie_tag table contains 2 columns, movie_id and tag_id. I know how to correctly join them, what I would like to know is if I have this query:
    SELECT * FROM movie LEFT JOIN movie_tag USING movie_id
    and save it as a result set in a language like PHP or Python can I:
    1. Loop through and only display each movie_id once, BUT...
    2. Also display all the tag_id's without nested-looping.
    I.e. I would like to list then something like:
    -- movie_id_1
    |-- tag_id_1
    |-- tag_id_2
    -- movie_id_2
    |-- tag_id_1
    Thanks for any help you can give!

    Your query will give you the cartesian product of movie and movie_tag, which means (given your example list) the output rows will look like this:
    movie_id_1 | tag_id_1
    movie_id_1 | tag_id_2
    movie_id_2 | tag_id_1
    You can then create the list you've shown above by post-processing in your procedural language of choice: loop over the results, track when movie_id changes, indent accordingly.

  • Coldfusion fetch mysql query question

    Hi:
    Here is my coldfusion code:
    <cfquery name = "query" datasource = "cfmysql" result = "result">
         SELECT COUNT(*) FROM students WHERE gender = 'boy'
    </cfquery>
    And then I want to check if value is greater than 0. I then do:
    <cfif existSearchHintsQuery.COUNT(*) gt 0>
    But coldfusion gives me an error at the * character, the colume of the mysql result is "COUNT(*)", so I really need the * character.
    How do I fetch that count number?
    Thanks.

    You need to use an alias so you can access the COUNT(*) like any other column:
    <cfquery name="yourQueryName" datasource="cfmysql" result="result">
        SELECT COUNT(*) AS TotalStudents FROM students WHERE gender = 'boy'
    </cfquery>
    <cfif yourQueryName.totalStudents GT 0>
    ... do something ...
    </cfif>
    Also, read up on using cfqueryparam  (if you are not using it already)
            http://livedocs.adobe.com/coldfusion/8/Tags_p-q_18.html

  • MySQL Version Question

    Up till now I have been on a server using version 4.1 but I
    have now
    purchased my own little bit of the internet and I have the
    option of
    installing version 5, are there any major advantages to me in
    doing this in
    relation to the shopping cart software I am using i.e. WA
    eCart and
    Cartweaver ? or are the new features not relevant to these
    types of
    applications until I start rolling my own so to speak.
    Thanks
    Dave Buchholz
    I-CRE8
    www.i-cre8.co.uk
    Skype ID: I-CRE8

    Thanks David
    as ever concise and constructive advice
    Dave Buchholz
    I-CRE8
    www.i-cre8.co.uk
    Skype ID: I-CRE8
    "David Powers" <[email protected]> wrote in message
    news:eeu26s$ft$[email protected]..
    Dave Buchholz wrote:
    > Up till now I have been on a server using version 4.1
    but I have now
    > purchased my own little bit of the internet and I have
    the option of
    > installing version 5, are there any major advantages to
    me in doing this
    > in
    > relation to the shopping cart software I am using i.e.
    WA eCart and
    > Cartweaver ? or are the new features not relevant to
    these types of
    > applications until I start rolling my own so to speak.
    If you have the option of version 5, take it. It will make
    upgrading to
    subsequent versions a lot easier. MySQL 5 offers improved
    features such
    as stored procedures and views. Although they're not
    supported by
    Dreamweaver, you may find them useful, particularly once you
    decide to
    start developing things on your own.
    AFAIK, MySQL 5.2 is likely to be the important upgrade
    (probably at
    least a year away), as it's planned to introduce support for
    foreign key
    restraints in the default MyISAM table. At the moment, only
    InnoDB
    tables have support for foreign key restraints, but most
    hosting
    companies don't provide support for InnoDB.
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • MySQL Date Question

    I have two DATETIME columns in a table. Is it possible to get the difference between the two dates and then format the output as H:M P?
    I've been trying to get this to work for a while... but now I'm not even sure it's possible.

    I have two DATETIME columns in a table. Is it possible
    to get the difference between the two dates and then
    format the output as H:M P?A MySql-query along these lines might just do the job:
    SELECT SEC_TO_TIME(UNIX_TIMESTAMP(yourDATETIME_1) - UNIX_TIMESTAMP(yourDATETIME2)) AS TimeDifference FROM yourTable;
    It gives you the time difference (conveniently availaible as TimeDifference) in a HH:MM:SS format. Additionally, you can use the TIME_FORMAT() function to convert it to a more suitable format, e.g.
    SELECT TIME_FORMAT(SEC_TO_TIME(UNIX_TIMESTAMP(yourDATETIME_1) - UNIX_TIMESTAMP(yourDATETIME2)), "%H:%i") AS TimeDifference FROM yourTable;
    - giving you the hours and minutes. For details, see http://www.mysql.com/doc/en/Date_and_time_functions.html
    Maybe all of this isn't exactly what you were looking for, but at least it should give you an idea of the possibilities and something to work from. Hopefully!
    nr

  • MySQL upgrade question

    Not sure if this is the appropriate forum for a mySQL upgrade--but since Oracle owns mySQL now I thought I would give it a try.
    I just ran the mysql_upgrade and can't locate the log to review. Anyone know where the log is dumped?

    Hi
    Please post your issuen on forums.mysql.com/
    Regard
    Helios

  • Mysql java question?

    Hello,
    I am writing a java program to connect with mysql, the database two tables: order and items.
    In the order the orderNo is a unique value, and appears again the items table for each book ordered.
    Could any advise, if I wanted to delete the orderNo from the order table, and also delete all the records in the items table with the same orderNo, could I achieve this in one sql statement?
    Thanks
    table (order):
    orderNo
    table (items):
    orderNo
    bookname
    quantity
    price

    example for orderNo 2:
    DELETE items,order FROM items,order WHERE order.orderNo=2 and items.orderNo=2Haven't tried this myself, though.
    regards

  • MySQL - Alias Question

    Hi Chaps, 
    Have a quick one for you...
    In a SQL Query, I know you can create an alias for column name, eg.
    ...tbl_jobxml.job1 as job2
    but can you create an alias for the value within that column, eg.
    ...tbl_jobxml.job1='y' as job2='Complete'
    Sorry if this is dumb question, but better to ask that claim ignorance!

    Hi Guys,
    sorry to the delay in responding, basically this is what I want to do:
    I want to show all results when:
    - tableA
    projectstatus='complete'
    - tableB
    projectstatus='complete'
    - tableC
    jobstatus='y'
    I'm familiar with UNIONs and INNER JOINs, it's just not sure how to go about getting all the results form the 3 tables, when the values are different.

  • MySQL SQL Question

    OK fellas. Gentle on the newbie.
    I have my datasource set up, I have the MySQL Query Browser
    working and I'm poking around a bit with the World dB tables.
    I can't seem to get why this:
    SELECT * FROM countrylanguage c; ORDER BY IsOfficial;
    isn't doing a thing. No error, but it surely doesn't seem to
    be alphabetizing on IsOfficial.
    Thanks!
    Rick

    Try adding ASC or DESC to the end of it.
    Brendon
    "webspinner" <[email protected]> wrote in
    message
    news:eo6akr$2r7$[email protected]..
    > OK fellas. Gentle on the newbie.
    >
    > I have my datasource set up, I have the MySQL Query
    Browser working and
    > I'm
    > poking around a bit with the World dB tables.
    >
    > I can't seem to get why this:
    > SELECT * FROM countrylanguage c; ORDER BY IsOfficial;
    >
    > isn't doing a thing. No error, but it surely doesn't
    seem to be
    > alphabetizing
    > on IsOfficial.
    >
    > Thanks!
    >
    > Rick
    >

  • OT: MySQL GROUP_CONCAT Question

    Are there any MySQL gurus here who understand MySQL's
    GROUP_CONCAT
    function? I'm trying to figure out how it works.
    This is the query I started with:
    $res = mysql_query ("SELECT * FROM cia_ppl CP
    LEFT JOIN gw_geog GG on GG.IDArea = CP.ID_Name
    LEFT JOIN cia_notes CN on CN.IDName = CP.ID_Name
    WHERE CP.Pop != 0") or die (mysql_error());
    It works, except that it only displays the first value in
    cia_notes.ID_Note in a particular cell. For example, consider
    the
    following example where there are two notes listed for the
    U.S. in table
    cia_notes...
    ID_Name \ ID_Note
    can \ Pop
    mex \ Ppl
    usa \ Pop
    usa \ Ppl
    My web page might display the following:
    Name \ Population \ Notes
    Canada \ 60 million \ Pop
    Mexico \ 80 million \ Ppl
    United States \ 300 million \ Pop
    When I want the last row to look like this:
    United States \ 300 million \ PopPpl
    I want to use MySQL's SEPARATOR function to insert commas and
    a PHP
    str_replace to convert it to superscripts, like this:
    United States \ 300 million \ 1,2
    At any rate, below is the script I came up with to tap into
    the
    GROUP_CONCAT function. All the data in my table displays
    correctly,
    except that it now displays no notes (ID_Note) at all. Thanks
    for any tips.
    SELECT CP.ID
    , CP.ID_Name
    , CP.Pop
    , CP.Pop2
    , CP.AgeMed
    , CP.Age0
    , CP.Age15
    , CP.Age65
    , CP.Sex
    , CP.LifeExp
    , CP.PopGrowth
    , CP.LitTotal
    , GG.IDArea, GG.Name
    , DT.ppl_notes
    FROM cia_ppl CP
    LEFT JOIN gw_geog GG ON GG.IDArea = CP.ID_Name
    LEFT OUTER JOIN (
    select ID_Name
    , GROUP_CONCAT(ID_Note) as ppl_notes
    from cia_notes
    where Cat = "Ppl"
    group
    by ID_Name
    ) as DT
    ON DT.ID_Name = CP.ID_Name
    WHERE CP.Pop != 0
    and CP.ID_Name != 'ear'
    AND CP.ID_Name != 'eru'
    GROUP BY GG.Name
    ORDER BY CP.ID
    www.geobop.org - Family Websites
    www.invisible-republic.org - Adult political websites (Mature
    adults only)

    this prod_id to the prim key.
    -----------^^
    "Field 'prodid' doesn't have a default value"
    -------------^
    Typo?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Deon H" <[email protected]> wrote in message
    news:[email protected]..
    > Hi there. (I know this is propably not the right forum
    to ask here, but
    > the other forums don't help a lot. Please help me.)
    >
    >
    >
    > I have been using phpMyAdmin for a couple of years now
    and simply love
    > it.
    > I have just created a new DB with 6 fields of which the
    1st one is
    > named: prod_id.
    > type: smallint
    >
    > The rest of the fields are the default settings as
    usual. I have changed
    > this prod_id to the prim key.
    >
    > For some reason which I cannot figure out why, does not
    show under
    > "extra" as "auto_increment".
    >
    > I have double chacked the other db's I have created
    exactly as I have
    > done this one, and there is says "auto_increment".
    > When I now try to add a record to the DB, I get this
    error: "Field
    > 'prodid' doesn't have a default value"
    >
    > Please advise where I am doing something wrong.
    >
    > Sincere regards,
    > Deon

Maybe you are looking for

  • How many problems before enough is enough?

    I guess this is more of just a vent then anything else but hopefully it will help in getting a resolution. I signed up with Verizon about 9 months ago because my girlfriend has Verizon and we wanted to make it easy mobile to mobile. That would be a m

  • How to SAP data convert into csv file.

    hi, i have a one internal table , and i want to extract SAP data into csv file with filed separator ','(comma). Thanks

  • DW 8.02 IEFix doesn't work for me

    G'day Guys, Anyone having problems with the javascript fix for the IE (Eolas) issue? I've been trying to update existing pages with QTVR content on them, DW findes the code asks if I want to change it with the new scripts etc, makes the change, creat

  • Where is the photo library for itunes 11 on a 64-bit windows 7 computer?

    I am trying to find the photo library in itunes 11 but it doesnt show up - only TV shows, movies, music, etc.  I go to Edit --> Preferences --> General tab and under sources there is no photo option - where did it go?

  • How to put title or labels on top of row headding of Cross Tab

    Hello..              I created one cross tab.I put labels in the top row,these labels are coming only in first page only,I tried repeat row label also,But not working....I need all the labels in all pages..