MySQL Warnings

Hi, just installed MySQL, got these errors:
$ sudo /etc/rc.d/mysqld start
Passord:
:: Adding mysql group [DONE]
:: Adding mysql user [DONE]
Installing MySQL system tables...
[u][b]090923 16:54:18 [Warning] Forcing shutdown of 3 plugins
OK
Filling help tables...
090923 16:54:19 [Warning] Forcing shutdown of 3 plugins
OK[/b][/u]
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h myhost password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available at http://www.mysql.com/
Support MySQL by buying support/licenses from http://shop.mysql.com/
:: Starting MySQL

Looks fine to me. /etc/rc.d/mysqld runs `mysql_install_db' when you start MySQL for the first time.

Similar Messages

  • MySQL and Java - getting program to work

    I am setting up mysql to run sql from a Java program on my pc at home and probably biting off more than I can chew. I get these messages when executing the java program ExecuteSQL.java:
    Exception in thread "main" java.lang.NoClassDefFoundError: Test2 <wrong name: MyProjects/test2/Test2>
    at java.lang.ClassLoader.defineClass0<Native Method>
    at java.lang.ClassLoader.defineClass<Unknown Source>
    at java.security.SecurityClassLoader.defineClass<Unknown Source>
    at java.net.URLClassLoader.defineClass<Unknown Source>
    at java.net.URLClassLoader.access$100<Unknown Source>
    at java.net.URLClassLoader$1.run<Unknown Source>
    at java.security.AccessController.ddPrivileged<Native Method>
    at java.lang.ClassLoader.findClass<Unknown Source>
    at java.lang.ClassLoader.loadClass<Unknown Source>
    at sun.misc.Launcher$AppClassLoader.loadClass<Unknown Source>
    at java.lang.ClassLoader.loadClass<Unknown Source>
    at java.lang.ClassLoader.loadClassInternal<Unknown Source>
    This is what I did.
    I created a folder on my C: drive named MySQL.
    I downloaded these two zip files form the MySQL website
         * mysql-connector-java-3.0.11-stable
         * mysql-4.0.18-win.zip
    Installed both of these in folder MySQL.
    I modified this line in the program ("ExecuteSQL" 1st pgm in chapter 17) I got from "Java Examples In a Nutshell" and compiled it into directory jwork.
    String driver = "com.mysql.jdbc.driver", url = "jdbc:mysql://", user = "", password = "";
    The readme file talks about putting a jar file in $JAVA_HOME/jre/lib/ext.
    the word "Java_Home" (I now know) is not literally the name but represents the
    name of the folder where the JDK to be used exists. So I put a copy of
    mysql-connector-java-3.0.11-stable-bin.jar in folder C:\JDK14/jre/lib/ext.
    Then I get a ClassNotFoundException error com.mysql.jdbc.driver.
    After finding
    http://forum.java.sun.com/thread.jsp?forum=31&thread=439796
    and
    http://forum.java.sun.com/thread.jsp?forum=31&thread=499888
    and others, I copied (a second copy) the jar file to the directory where I am create my java objects.
    Then I unzipped it to that directory, creating three folders that hold the unzipped objects.
    I tried executing the program again. I get the messages at the top of this post.
    The Manifest file is in one of the three folders unzipped to my java work directory.
    In the second of the two above threads, jsalonen says:
    the problem can be solved by mentioning mysql.jar in the Class-Path attribute
    in the manifest of the jar file:
    In this "manifest" file, there are only three lines and I added a fourth and it looks like this
    (there are two, one in directory MySQL\META-INF and one in directory jwork\META-INF:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.1
    Created-By: 1.4.0_01-b03 (Sun Microsystems Inc.)
    Main-Class:jwork\ExecuteSQL
    How do I "mention" mysql.jar in the class path attribute?
    In the index.list file (in the directory with the manifest file, do I need to add anything to refer that "com.mysql.jdbc.driver" is the driver?
    Do I need index.list in MySQL\META-INF ?
    Thank you for your help. The program ExecuteSQL follows.
    * Copyright (c) 2000 David Flanagan. All rights reserved.
    * This code is from the book Java Examples in a Nutshell, 2nd Edition.
    * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied.
    * You may study, use, and modify it for any non-commercial purpose.
    * You may distribute it non-commercially as long as you retain this notice.
    * For a commercial use license, or to purchase the book (recommended),
    * visit http://www.davidflanagan.com/javaexamples2.
    /** package com.davidflanagan.examples.sql; */
    import java.sql.*;
    import java.io.*;
    * A general-purpose SQL interpreter program.
    public class ExecuteSQL {
    public static void main(String[] args) {
    Connection conn = null; // Our JDBC connection to the database server
    try {
    String driver = "com.mysql.jdbc.driver", url = "jdbc:mysql://",
    user = "", password = "";
    // Parse all the command-line arguments
    for(int n = 0; n < args.length; n++) {
    if (args[n].equals("-d")) driver = args[++n];
    else if (args[n].equals("-u")) user = args[++n];
    else if (args[n].equals("-p")) password = args[++n];
    else if (url == null) url = args[n];
    else throw new IllegalArgumentException("Unknown argument.");
    // The only required argument is the database URL.
    if (url == null)
    throw new IllegalArgumentException("No database specified");
    // If the user specified the classname for the DB driver, load
    // that class dynamically. This gives the driver the opportunity
    // to register itself with the DriverManager.
    if (driver != null) Class.forName(driver);
    // Now open a connection the specified database, using the
    // user-specified username and password, if any. The driver
    // manager will try all of the DB drivers it knows about to try to
    // parse the URL and connect to the DB server.
    conn = DriverManager.getConnection(url, user, password);
    // Now create the statement object we'll use to talk to the DB
    Statement s = conn.createStatement();
    // Get a stream to read from the console
    BufferedReader in =
              new BufferedReader(new InputStreamReader(System.in));
    // Loop forever, reading the user's queries and executing them
    while(true) {
    System.out.print("sql> "); // prompt the user
    System.out.flush(); // make the prompt appear now.
    String sql = in.readLine(); // get a line of input from user
    // Quit when the user types "quit".
    if ((sql == null) || sql.equals("quit")) break;
    // Ignore blank lines
    if (sql.length() == 0) continue;
    // Now, execute the user's line of SQL and display results.
    try {
    // We don't know if this is a query or some kind of
    // update, so we use execute() instead of executeQuery()
    // or executeUpdate() If the return value is true, it was
    // a query, else an update.
    boolean status = s.execute(sql);
              // Some complex SQL queries can return more than one set
              // of results, so loop until there are no more results
    do {
    if (status) { // it was a query and returns a ResultSet
    ResultSet rs = s.getResultSet(); // Get results
    printResultsTable(rs, System.out); // Display them
    else {
    // If the SQL command that was executed was some
    // kind of update rather than a query, then it
    // doesn't return a ResultSet. Instead, we just
    // print the number of rows that were affected.
    int numUpdates = s.getUpdateCount();
    System.out.println("Ok. " + numUpdates +
                             " rows affected.");
    // Now go see if there are even more results, and
    // continue the results display loop if there are.
    status = s.getMoreResults();
    } while(status || s.getUpdateCount() != -1);
    // If a SQLException is thrown, display an error message.
    // Note that SQLExceptions can have a general message and a
    // DB-specific message returned by getSQLState()
    catch (SQLException e) {
    System.err.println("SQLException: " + e.getMessage()+ ":" +
                        e.getSQLState());
    // Each time through this loop, check to see if there were any
    // warnings. Note that there can be a whole chain of warnings.
    finally { // print out any warnings that occurred
              SQLWarning w;
    for(w=conn.getWarnings(); w != null; w=w.getNextWarning())
    System.err.println("WARNING: " + w.getMessage() +
                             ":" + w.getSQLState());
    // Handle exceptions that occur during argument parsing, database
    // connection setup, etc. For SQLExceptions, print the details.
    catch (Exception e) {
    System.err.println(e);
    if (e instanceof SQLException)
    System.err.println("SQL State: " +
                        ((SQLException)e).getSQLState());
    System.err.println("Usage: java ExecuteSQL [-d <driver>] " +
                   "[-u <user>] [-p <password>] <database URL>");
    // Be sure to always close the database connection when we exit,
    // whether we exit because the user types 'quit' or because of an
    // exception thrown while setting things up. Closing this connection
    // also implicitly closes any open statements and result sets
    // associated with it.
    finally {
    try { conn.close(); } catch (Exception e) {}
    * This method attempts to output the contents of a ResultSet in a
    * textual table. It relies on the ResultSetMetaData class, but a fair
    * bit of the code is simple string manipulation.
    static void printResultsTable(ResultSet rs, OutputStream output)
         throws SQLException
    // Set up the output stream
    PrintWriter out = new PrintWriter(output);
    // Get some "meta data" (column names, etc.) about the results
    ResultSetMetaData metadata = rs.getMetaData();
    // Variables to hold important data about the table to be displayed
    int numcols = metadata.getColumnCount(); // how many columns
    String[] labels = new String[numcols]; // the column labels
    int[] colwidths = new int[numcols]; // the width of each
    int[] colpos = new int[numcols]; // start position of each
    int linewidth; // total width of table
    // Figure out how wide the columns are, where each one begins,
    // how wide each row of the table will be, etc.
    linewidth = 1; // for the initial '|'.
    for(int i = 0; i < numcols; i++) {             // for each column
    colpos[i] = linewidth; // save its position
    labels[i] = metadata.getColumnLabel(i+1); // get its label
    // Get the column width. If the db doesn't report one, guess
    // 30 characters. Then check the length of the label, and use
    // it if it is larger than the column width
    int size = metadata.getColumnDisplaySize(i+1);
    if (size == -1) size = 30; // Some drivers return -1...
         if (size > 500) size = 30; // Don't allow unreasonable sizes
    int labelsize = labels.length();
    if (labelsize > size) size = labelsize;
    colwidths[i] = size + 1; // save the column the size
    linewidth += colwidths[i] + 2; // increment total size
    // Create a horizontal divider line we use in the table.
    // Also create a blank line that is the initial value of each
    // line of the table
    StringBuffer divider = new StringBuffer(linewidth);
    StringBuffer blankline = new StringBuffer(linewidth);
    for(int i = 0; i < linewidth; i++) {
    divider.insert(i, '-');
    blankline.insert(i, " ");
    // Put special marks in the divider line at the column positions
    for(int i=0; i<numcols; i++) divider.setCharAt(colpos[i]-1,'+');
    divider.setCharAt(linewidth-1, '+');
    // Begin the table output with a divider line
    out.println(divider);
    // The next line of the table contains the column labels.
    // Begin with a blank line, and put the column names and column
    // divider characters "|" into it. overwrite() is defined below.
    StringBuffer line = new StringBuffer(blankline.toString());
    line.setCharAt(0, '|');
    for(int i = 0; i < numcols; i++) {
    int pos = colpos[i] + 1 + (colwidths[i]-labels[i].length())/2;
    overwrite(line, pos, labels[i]);
    overwrite(line, colpos[i] + colwidths[i], " |");
    // Then output the line of column labels and another divider
    out.println(line);
    out.println(divider);
    // Now, output the table data. Loop through the ResultSet, using
    // the next() method to get the rows one at a time. Obtain the
    // value of each column with getObject(), and output it, much as
    // we did for the column labels above.
    while(rs.next()) {
    line = new StringBuffer(blankline.toString());
    line.setCharAt(0, '|');
    for(int i = 0; i < numcols; i++) {
    Object value = rs.getObject(i+1);
              if (value != null)
              overwrite(line, colpos[i] + 1, value.toString().trim());
    overwrite(line, colpos[i] + colwidths[i], " |");
    out.println(line);
    // Finally, end the table with one last divider line.
    out.println(divider);
    out.flush();
    /** This utility method is used when printing the table of results */
    static void overwrite(StringBuffer b, int pos, String s) {
    int slen = s.length(); // string length
    int blen = b.length(); // buffer length
    if (pos+slen > blen) slen = blen-pos; // does it fit?
    for(int i = 0; i < slen; i++) // copy string into buffer
    b.setCharAt(pos+i, s.charAt(i));

    Don't put those JARs in the lib/ext directory. Only language extensions (e.g., packages that start with "javax") belong in there.
    Learn how to set the CLASSPATH properly for starters:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    You might want to look at the JDBC tutorial, too:
    http://java.sun.com/docs/books/tutorial/jdbc/
    Do one thing at a time. Get the program to work, then worry about packaging it into an executable JAR.

  • Trouble with MySQL/PHP5... Need Help!

    I uncommented the PHP line in Apache. Apache is running sites in Sites folder. PHP pages are running on Apache server.
    MySQL5 will not work. The system preferences add-on is not functional. The GUI services to turn on and off MySQL causes errors, and can not properly turn on and off the database. In Dreamweaver CS3, every time I try to connect a PHP page to the local MySQL database, the program gives me either warnings that it can't find a right file in the right place, and then crashes.... or after much trying to fix it, that it can't connect through the socket '/var/mysql/mysql.sock'(2). I simply removed MySQL from the hard drive all together.
    Server is running and working. PHP appears to be working.
    Any help setting up a development environment with APACHE/PHP5/MySQL5 would be much appreciated... I'm at a loss at this point. I set this up so easily on Tiger, and now I can't get it to work.

    Hi There,
    To get MySQL working on Leopard do this, until MySQL fixes their PrefPane and a few other things.
    http://discussions.apple.com/thread.jspa?messageID=5645748&#5645748
    sudo /usr/local/mysql/bin/safe_mysqld
    close Terminal, then open it again and put in these two...
    sudo mkdir /var/mysql/
    sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    Restart Apache
    To get PHP working (Apple's Version) un-comment the line the PHP line in your conf file.
    private/etc/apache2/httpd.conf
    If your using Marc Liyanage package, you and rest of us will have to wait until he updates it. If you don't need all the extensions (GD, MCrypt, Etc..) then use Apple's version, its latest release of PHP. Otherwise, we all have to wait until Marc updates PHP installer. Hope this helps.

  • Strange PHP compile issue -- old MySQL client version

    I've successfully compiled PHP 5.2.8 from source on two Xserve G5s running 10.4.11. It seems to run all the web apps fine. But when I look at phpinfo(), it reports that the MySQL Client API version is 4.1.22. Previously, when using Marc Liyanage's package version (5.2.4), the MySQL Client API was something like 5.0.45 (at least reasonably current with the MySQL version I had installed).
    So I have two main questions:
    1. What determines the PHP's MySQL Client API version? Is it some code in the PHP source that gets compiled? (In which case, why is the latest PHP source using an old MySQL Client.)
    2. How can I make the PHP I compiled use the latest MySQL Client API version? (Since I've seen warnings that this could cause problems. Incidentally, I'm using MySQL 5.0.67.)
    If it helps, here are the compile options I've used, per instructions online ( http://downloads.topicdesk.com/docs/UpdatingPHP_on_OS_XServer.pdf ):
    ./configure --prefix=/usr/local/php5 --mandir=/usr/share/man --infodir=/usr/share/info --with-apxs --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --with-libxml-dir=/usr --enable-exif --enable-ftp --enable-mbstring --enable-sockets --enable-fastcgi --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/private/etc --with-mysql=/usr --with-mysql-sock=/var/mysql/mysql.sock
    I can post the config.log as well if that's helpful.
    ...Rene

    I'm posting this information here as its the top hit when searching apple.com for mac php recompile
    There is a MUCH easier/safer way to install a missing php module then doing a full recompile. Please see and read the comments:
    http://www.pagebakers.nl/2008/12/17/installing-php-soap-extension-on-leopard-10- 5-5/#comment-4931

  • Apple's Apache 2.0.54, PHP 5.0.4 and MySQL 5.0.18

    Hello
    Using OSX Server 10.4.4.
    I'm considering using Apple's /opt Apache 2.0.54 with the builds of PHP 5.0.4 and MySQL 5.0.18. Has anyone any experience with this combination and any warnings / advice?
    MySQL 5.0.18 is an installer straight from MySQL and PHP 5.0.4 installer is straight from Marc Liyanage's entropy site.
    Thanks in advance...
    David.
    XServe G5   Mac OS X (10.4.4)  

    Hi there MartynC
    Just wanted to let you know that I screwed up - as usual, the simplest of errors.... I created a script around apachectl to start apache and prior to the apachectl start line I inserted
    ORACLE_HOME=<my oracle home>; export ORACLE_HOME
    ...only I mistyped <my oracle home> so apache wasn't finding it
    I've corrected that, restarted Apache and now PHP, Apache and Oracle are working fine!
    Thanks very much for your offer of help (the only consolation I can take is that possibly this will someone reading this will take note and double check the dumb stuff and save themselves a lot of time and heartache)
    Also I should note for anyone interested that my Linux installation is actually Centos 4.1 (a Redhat "clone")

  • Lots of warnings when upgrading ghc and haskell libraries

    Heres the list of packages I upgraded today:
    cups 1.5.3-4 1.5.3-5 -0.73 MiB 6.87 MiB
    ghc 7.4.1-2 7.4.2-1 6.09 MiB 60.13 MiB
    haskell-mtl 2.0.1.0-4 2.1.1-1 0.43 MiB 0.19 MiB
    haskell-random 1.0.1.1-1 1.0.1.1-2 -0.05 MiB 0.29 MiB
    haskell-syb 0.3.6-1 0.3.6.1-1 0.06 MiB 0.21 MiB
    haskell-transformers 0.2.2.0-4 0.3.0.0-1 2.39 MiB 0.58 MiB
    haskell-utf8-string 0.3.7-1 0.3.7-2 -0.04 MiB 0.20 MiB
    haskell-x11 1.5.0.1-3 1.6.0-1 1.96 MiB 1.82 MiB
    haskell-x11-xft 0.3.1-3 0.3.1-4 0.01 MiB 0.09 MiB
    libcups 1.5.3-4 1.5.3-5 -0.01 MiB 0.28 MiB
    libmysqlclient 5.5.24-1 5.5.25-1 0.00 MiB 2.97 MiB
    mysql 5.5.24-1 5.5.25-1 0.57 MiB 8.45 MiB
    mysql-clients 5.5.24-1 5.5.25-1 0.00 MiB 0.81 MiB
    xmobar 0.14-2 0.15-1 0.08 MiB 0.45 MiB
    xmonad 0.10-3 0.10-4 0.09 MiB 0.71 MiB
    xmonad-contrib 0.10-3 0.10-4 0.76 MiB 4.32 MiB
    And here is some of the warnings I got when upgrading:
    ==> Unregistering cabalized packages...
    unregistering xmonad-0.10 would break the following packages: xmonad-contrib-0.10 (ignoring)
    unregistering X11-1.5.0.1 would break the following packages: X11-xft-0.3.1 (ignoring)
    ==> Done.
    ( 3/16) upgrading ghc [########################################################################################] 100%
    ==> All cabalized packages need to be reinstalled now.
    ==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages.
    ghc-pkg: cannot find package transformers-0.2.2.0
    error: command failed to execute correctly
    ( 4/16) upgrading haskell-transformers [########################################################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    Warning: Cannot read mtl/mtl.haddock:
    Interface file is of wrong version: mtl/mtl.haddock
    Skipping this interface.
    Warning: Cannot read random/random.haddock:
    Interface file is of wrong version: random/random.haddock
    Skipping this interface.
    Warning: Cannot read syb/syb.haddock:
    Interface file is of wrong version: syb/syb.haddock
    Skipping this interface.
    Warning: Cannot read utf8-string/utf8-string.haddock:
    Interface file is of wrong version: utf8-string/utf8-string.haddock
    Skipping this interface.
    ghc-pkg: cannot find package mtl-2.0.1.0
    error: command failed to execute correctly
    ( 5/16) upgrading haskell-mtl [########################################################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    Warning: Cannot read random/random.haddock:
    Interface file is of wrong version: random/random.haddock
    Skipping this interface.
    Warning: Cannot read syb/syb.haddock:
    Interface file is of wrong version: syb/syb.haddock
    Skipping this interface.
    Warning: Cannot read utf8-string/utf8-string.haddock:
    Interface file is of wrong version: utf8-string/utf8-string.haddock
    Skipping this interface.
    ghc-pkg: cannot find package random-1.0.1.1
    error: command failed to execute correctly
    ( 6/16) upgrading haskell-random [########################################################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    Warning: Cannot read syb/syb.haddock:
    Interface file is of wrong version: syb/syb.haddock
    Skipping this interface.
    Warning: Cannot read utf8-string/utf8-string.haddock:
    Interface file is of wrong version: utf8-string/utf8-string.haddock
    Skipping this interface.
    ghc-pkg: cannot find package syb-0.3.6
    error: command failed to execute correctly
    ( 7/16) upgrading haskell-syb [########################################################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    Warning: Cannot read utf8-string/utf8-string.haddock:
    Interface file is of wrong version: utf8-string/utf8-string.haddock
    Skipping this interface.
    WARNING: cache is out of date: /usr/lib/ghc-7.4.2/package.conf.d/package.cache
    use 'ghc-pkg recache' to fix.
    ghc-pkg: cannot find package utf8-string-0.3.7
    error: command failed to execute correctly
    ( 8/16) upgrading haskell-utf8-string [########################################################################################] 100%
    WARNING: cache is out of date: /usr/lib/ghc-7.4.2/package.conf.d/package.cache
    use 'ghc-pkg recache' to fix.
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    ghc-pkg: cannot find package X11-1.5.0.1
    error: command failed to execute correctly
    ( 9/16) upgrading haskell-x11 [########################################################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    ghc-pkg: cannot find package X11-xft-0.3.1
    error: command failed to execute correctly
    (10/16) upgrading haskell-x11-xft [########################################################################################] 100%
    Reading package info from stdin ... done.
    (11/16) upgrading libmysqlclient [########################################################################################] 100%
    (12/16) upgrading mysql-clients [########################################################################################] 100%
    (13/16) upgrading mysql [########################################################################################] 100%
    (14/16) upgrading xmobar [########################################################################################] 100%
    ghc-pkg: cannot find package xmonad-0.10
    error: command failed to execute correctly
    (15/16) upgrading xmonad [########################################################################################] 100%
    Reading package info from stdin ... done.
    xmonad-0.10: Warning: haddock-interfaces: /usr/share/doc/xmonad-0.10/html/xmonad.haddock doesn't exist or isn't a file
    xmonad-0.10: Warning: haddock-html: /usr/share/doc/xmonad-0.10/html doesn't exist or isn't a directory
    ghc-pkg: cannot find package xmonad-contrib-0.10
    error: command failed to execute correctly
    (16/16) upgrading xmonad-contrib [########################################################################################] 100%
    Reading package info from stdin ... done.
    xmonad-contrib-0.10: Warning: haddock-interfaces: /usr/share/doc/xmonad-contrib-0.10/html/xmonad-contrib.haddock doesn't exist or isn't a file
    xmonad-contrib-0.10: Warning: haddock-html: /usr/share/doc/xmonad-contrib-0.10/html doesn't exist or isn't a directory
    I haven't restarted yet to see if xmonad still works, but I'm a little apprehensive after seeing this output
    EDIT: Added code tags
    Last edited by cmm7825 (2012-10-12 00:15:32)

    Recompiling xmonad was a no-go for me after updating with
    pacman -Syyu
    I had errors
    [root@luderro hal]# pacman -Syyu
    :: Synchronizing package databases...
    core 103.7 KiB 301K/s 00:00 [############################################################] 100%
    extra 1404.9 KiB 1173K/s 00:01 [############################################################] 100%
    community 1680.9 KiB 1409K/s 00:01 [############################################################] 100%
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (11): ghc-7.4.2-1 haskell-mtl-2.1.1-1 haskell-random-1.0.1.1-2 haskell-syb-0.3.6.1-1 haskell-transformers-0.3.0.0-1 haskell-utf8-string-0.3.7-2
    haskell-x11-1.6.0-1 haskell-x11-xft-0.3.1-4 xmobar-0.15-1 xmonad-0.10-4 xmonad-contrib-0.10-4
    Total Download Size: 69.00 MiB
    Total Installed Size: 867.50 MiB
    Net Upgrade Size: 11.79 MiB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    ghc-7.4.2-1-x86_64 60.1 MiB 2.25M/s 00:27 [############################################################] 100%
    haskell-transformers-0.3.0.0-1-x86_64 591.9 KiB 803K/s 00:01 [############################################################] 100%
    haskell-mtl-2.1.1-1-x86_64 195.9 KiB 401K/s 00:00 [############################################################] 100%
    haskell-random-1.0.1.1-2-x86_64 300.7 KiB 509K/s 00:01 [############################################################] 100%
    :: Retrieving packages from community...
    haskell-syb-0.3.6.1-1-x86_64 216.9 KiB 450K/s 00:00 [############################################################] 100%
    haskell-utf8-string-0.3.7-2-x86_64 208.8 KiB 495K/s 00:00 [############################################################] 100%
    haskell-x11-1.6.0-1-x86_64 1860.3 KiB 1672K/s 00:01 [############################################################] 100%
    haskell-x11-xft-0.3.1-4-x86_64 93.1 KiB 283K/s 00:00 [############################################################] 100%
    xmobar-0.15-1-x86_64 461.8 KiB 703K/s 00:01 [############################################################] 100%
    xmonad-0.10-4-x86_64 730.5 KiB 995K/s 00:01 [############################################################] 100%
    xmonad-contrib-0.10-4-x86_64 4.3 MiB 2.30M/s 00:02 [############################################################] 100%
    (11/11) checking package integrity [############################################################] 100%
    (11/11) loading package files [############################################################] 100%
    (11/11) checking for file conflicts [############################################################] 100%
    (11/11) checking available disk space [############################################################] 100%
    ==> Unregistering cabalized packages...
    unregistering X11-xft-0.3.1 would break the following packages: xmonad-contrib-0.10 (ignoring)
    unregistering transformers-0.2.2.0 would break the following packages: xmonad-0.10 mtl-2.0.1.0 (ignoring)
    unregistering syb-0.3.6 would break the following packages: X11-1.5.0.1 (ignoring)
    ==> Done.
    ( 1/11) upgrading ghc [############################################################] 100%
    ==> All cabalized packages need to be reinstalled now.
    ==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages.
    ghc-pkg: cannot find package transformers-0.2.2.0
    error: command failed to execute correctly
    ( 2/11) upgrading haskell-transformers [############################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    Warning: Cannot read mtl/mtl.haddock:
    Interface file is of wrong version: mtl/mtl.haddock
    Skipping this interface.
    Warning: Cannot read random/random.haddock:
    Interface file is of wrong version: random/random.haddock
    Skipping this interface.
    Warning: Cannot read syb/syb.haddock:
    Interface file is of wrong version: syb/syb.haddock
    Skipping this interface.
    Warning: Cannot read utf8-string/utf8-string.haddock:
    Interface file is of wrong version: utf8-string/utf8-string.haddock
    Skipping this interface.
    ghc-pkg: cannot find package mtl-2.0.1.0
    error: command failed to execute correctly
    ( 3/11) upgrading haskell-mtl [############################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    Warning: Cannot read random/random.haddock:
    Interface file is of wrong version: random/random.haddock
    Skipping this interface.
    Warning: Cannot read syb/syb.haddock:
    Interface file is of wrong version: syb/syb.haddock
    Skipping this interface.
    Warning: Cannot read utf8-string/utf8-string.haddock:
    Interface file is of wrong version: utf8-string/utf8-string.haddock
    Skipping this interface.
    ghc-pkg: cannot find package random-1.0.1.1
    error: command failed to execute correctly
    ( 4/11) upgrading haskell-random [############################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    Warning: Cannot read syb/syb.haddock:
    Interface file is of wrong version: syb/syb.haddock
    Skipping this interface.
    Warning: Cannot read utf8-string/utf8-string.haddock:
    Interface file is of wrong version: utf8-string/utf8-string.haddock
    Skipping this interface.
    ghc-pkg: cannot find package syb-0.3.6
    error: command failed to execute correctly
    ( 5/11) upgrading haskell-syb [############################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    Warning: Cannot read utf8-string/utf8-string.haddock:
    Interface file is of wrong version: utf8-string/utf8-string.haddock
    Skipping this interface.
    ghc-pkg: cannot find package utf8-string-0.3.7
    error: command failed to execute correctly
    ( 6/11) upgrading haskell-utf8-string [############################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    Warning: Cannot read X11/X11.haddock:
    Interface file is of wrong version: X11/X11.haddock
    Skipping this interface.
    ghc-pkg: cannot find package X11-1.5.0.1
    error: command failed to execute correctly
    ( 7/11) upgrading haskell-x11 [############################################################] 100%
    Reading package info from stdin ... done.
    Warning: Cannot read X11-xft/X11-xft.haddock:
    Interface file is of wrong version: X11-xft/X11-xft.haddock
    Skipping this interface.
    ghc-pkg: cannot find package X11-xft-0.3.1
    error: command failed to execute correctly
    ( 8/11) upgrading haskell-x11-xft [############################################################] 100%
    Reading package info from stdin ... done.
    ( 9/11) upgrading xmobar [############################################################] 100%
    ghc-pkg: cannot find package xmonad-0.10
    error: command failed to execute correctly
    (10/11) upgrading xmonad [############################################################] 100%
    Reading package info from stdin ... done.
    xmonad-0.10: Warning: haddock-interfaces: /usr/share/doc/xmonad-0.10/html/xmonad.haddock doesn't exist or isn't a file
    xmonad-0.10: Warning: haddock-html: /usr/share/doc/xmonad-0.10/html doesn't exist or isn't a directory
    ghc-pkg: cannot find package xmonad-contrib-0.10
    error: command failed to execute correctly
    (11/11) upgrading xmonad-contrib [############################################################] 100%
    Reading package info from stdin ... done.
    xmonad-contrib-0.10: Warning: haddock-interfaces: /usr/share/doc/xmonad-contrib-0.10/html/xmonad-contrib.haddock doesn't exist or isn't a file
    xmonad-contrib-0.10: Warning: haddock-html: /usr/share/doc/xmonad-contrib-0.10/html doesn't exist or isn't a directory
    The solution I found was to uninstall/reinstall everything which depends on ghc:
    pacman -Qi ghc
    pacman -Rdd ghc haskell-mtl haskell-random haskell-syb haskell-transformers haskell-utf8-string haskell-x11 haskell-x11-xft xmonad xmonad-contrib <any other dependencies here>
    pacman -Syyu ghc haskell-mtl haskell-random haskell-syb haskell-transformers haskell-utf8-string haskell-x11 haskell-x11-xft xmonad xmonad-contrib <any other dependencies here>
    Probably not ideal, but the digging I did to use ghc to fix the problem turned up nothing.
    By the way, a litmus test to determine if your Haskell setup is sane:
    xmonad --recompile
    should not return any errors.
    Last edited by hal (2012-06-13 18:51:15)

  • PDF binding to MySQL databse - how is it done?

    How can I bind data entered in to a Dynamic PDF form to reside in a MySQL database. I seem not able to build a connection.
    So here are the steps I follow:
    Binding / New Connection / Name: testdata ; Description: OLEDB database / Connection String: build: SQL Native Client / Data Source: location of the SQL database (.mwb) ; Log on to server: localhost
    But when I test the connection I get an initialization error and login time out.
    So my question is:  How do you connect the PDF fields to a MySQL database ? and what am I doing wrong ? Is it a feasable process to bind also check boxes and other fields to a database ? How would you bind data dynamically - say if I choose a certain field from a dropdown menu, certain other fields will populate via the database ?
    Thanks again for all help and insight.
    Shai
    PS I attached a sample form (not yet completely integrated to accept certain data) and a sample MySQL database (no data inside).

    DB and PDF forms are on one machine (local). Software is Access 2007 (.accdb), Acrobat Pro 9 (.pdf), File was saved as static.
    But I am not sure on the dialoge ( Acrobat vs. Windows). I used the MS Access 2007 connector. Connection checks out fine and so that the link,
    since I can see and use the fields that were built in Access. Hence I use those fields, where the biding is automated for me.
    When I save the form, there are no errors or warnings listed in LifeCycle designer - bottom window.
    Just when opening the file in Adobe, it mentions that the access is somehow prohibited. Also, how does one send the data
    to access once al the fields are filled out. I couldn't create or find a button for that?
    Again, thanks for your help and input.
    cheers
    Shai

  • Problem resetting mysql root password

    I have install 5.5.20 from mysql from the TAR file. that install was done from an admin user by the name of mysql. Using the mysql user, I have reached a point where I am unable to reset the root password. I have tried both method of resetting the password with no success. Here is what I did. (path omitted for brevity, but used in the commands)
    shell>mysqld_safe --skip-grant-tables
    shell>mysql
    mysql>UPDATE mysql.user SET Password=PASSWORD('newPass')
        -> WHERE User='root';
    mysqlQuery OK, 0 rows affected (0.05 sec)
    Rows matched: 0  Changed: 0  Warnings: 0
    shell> mysqld_safe
    shell> mysql -u root -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    created an init file that had ths
    --------contents of minit-------
    UPDATE mysql.user SET Password=PASSWORD("newPass") WHERE User='root';
    FLUSH PRIVILEGES;
    ------------eof--------------
    mysqld_safe --init-file=minit
    killed mysqld
    mysqld_safe
    mysql -u root -p
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    By the way, I closely monitored the .err file and nothing unusual or pacular showed up there.
    Anyone see what I did wrong? Anyone have other suggestions?

    I have install 5.5.20 from mysql from the TAR file. that install was done from an admin user by the name of mysql. Using the mysql user, I have reached a point where I am unable to reset the root password. I have tried both method of resetting the password with no success. Here is what I did. (path omitted for brevity, but used in the commands)
    shell>mysqld_safe --skip-grant-tables
    shell>mysql
    mysql>UPDATE mysql.user SET Password=PASSWORD('newPass')
        -> WHERE User='root';
    mysqlQuery OK, 0 rows affected (0.05 sec)
    Rows matched: 0  Changed: 0  Warnings: 0
    shell> mysqld_safe
    shell> mysql -u root -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    created an init file that had ths
    --------contents of minit-------
    UPDATE mysql.user SET Password=PASSWORD("newPass") WHERE User='root';
    FLUSH PRIVILEGES;
    ------------eof--------------
    mysqld_safe --init-file=minit
    killed mysqld
    mysqld_safe
    mysql -u root -p
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    By the way, I closely monitored the .err file and nothing unusual or pacular showed up there.
    Anyone see what I did wrong? Anyone have other suggestions?

  • Pear PHP Warnings [SOLVED]

    I recently built a web-server and followed the arch wiki docs to complete the LAMP installation and everything ran smoothly.
    However, now when I upgrade pear I get the following warnings:
    # pear upgrade
    PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
    PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
    anyone else run into this glitch?
    Last edited by monash (2011-11-11 03:17:42)

    Many thanks SidK!
    I checked /etc/php/conf.d and found i had left behind an old custom.ini containing:
    extension=mcrypt.so
    extension=mysql.so
    removed the /etc/php/conf.d/custom.ini and all is well with pear upgrade :-)

  • MySQL-server-upgrade = PHAkt - evil trouble?

    Recently my
    webhotel was upgraded from MySQL version 4.0.24 to 4.1.11.
    When that happened
    ALL MY PHP-PAGES that are created with Dreamweaver (MX2004) +
    PHAkt (2.7.6) extension HAVE STOPPED WORKING. As if that was't
    bad enough I can't create new DW/PHAkt-pages.
    All I get is the below SQL-error printed in my browser
    window;
    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 '-1' at line 1
    When I run the
    old DW MX (not 2004) without PHAkt I
    can make pages that work - but the php-server behaviors are
    too limited and I'd really like to get my original pages working
    again (obviousley) - I'm not getting any younger so recreating it
    all seems... you get the picture.
    My question then is in 2 parts:
    is there
    anyone who has seen anything like this? AND
    is there
    anyone who knows what to do? I've tried looking for updates
    to PHAkt but ADOBE has retired this former free product (reminds me
    of the almighty Tyrell corporation in Blade Runner, somehow)
    I have a post on PHAkt forum about the samme issue but the
    only one replying to it is myself
    PHAkt
    foum

    I agree with tomk that cronning updates is a bad idea. Pacman is a package manager, not a magical system manager with AI so you really need to pay attention to what it does, especially when it issues warnings.
    Most updates are completely smooth but you should try to follow the news page and the forum to stay on top of issues. I'd recommend delaying (major) updates for at least a few days for a critical system so you can see if others experience problems with them before you commit them. Generally though you should update regularly to keep up to date with security fixes and to ensure compatibility between packages.
    For what it's worth, I update my system daily and have so far not had any problems worth noting. The only time I hosed my system was the first time that I ran a full system upgrade after installing from the core iso. Being a linux noob + not paying attention = reinstallation.

  • Mysql log location

    i'm trying to troubleshoot a recent mysql issue. looking at Server Admin > MySQL > Logs ...
    it's pulling the mysql service log file from "/var/mysql/old_dns.example.edu.err" and that dns points to different IP address than what this web server is using. the log looks incomplete.
    i'm pretty certain that i installed the OS (10.5.8) on this box from scratch so i don't think that there are remnants of a previous dns. i ran "changeip --checkhostname" and it came back "names match".
    running:
    mac:~ admin$ /usr/libexec/mysqld --help --verbose | grep '^log'
    log (No default value)
    log-bin (No default value)
    log-bin-index (No default value)
    log-bin-trust-function-creators FALSE
    log-bin-trust-routine-creators FALSE
    log-error
    log-isam myisam.log
    log-queries-not-using-indexes FALSE
    log-short-format FALSE
    log-slave-updates FALSE
    log-slow-admin-statements FALSE
    log-slow-queries (No default value)
    log-tc tc.log
    log-tc-size 24576
    log-update (No default value)
    log-warnings 1
    i don't understand why 'log' shows "no default value". does anyone have a clue?
    thanks!

    i don't understand why 'log' shows "no default value". does anyone have a clue?
    That's easy - by default MySQL doesn't maintain binary logs. They're typically only needed if you're using replication, and if you're using replication then there's a slew of other things you need to change too, so enabling bin logs at that time isn't a big deal.
    In any case, the command you use isn't going to show you the logging setup - that just finds references to 'log' in the help files and has little or no bearing on the current server configuration (any of those settings may have been overwritten in your MySQL configuration).
    The command you want is more like:
    mysqladmin variables | grep log

  • Mysql Workbench 5.1.2 PKGBUILD. Help needed.

    Hi,
    I'm trying to install the recently released mysql-workbench for linux.
    I wrote a PKGBUILD:
    pkgname=mysql-workbench
    pkgver=5.1.2
    pkgrel=1
    pkgdesc="A cross-platform, visual database design tool developed by MySQL"
    arch=('i686' 'x86_64')
    url="http://dev.mysql.com/workbench/"
    license=('GPL')
    groups=()
    depends=(libmysqlclient lua libglade libxml2 libsigc++2.0 libzip gtkmm freeglut pcre libgnome gtk2 pango cairo e2fsprogs)
    makedepends=(autoconf automake libtool gcc ctemplate)
    provides=()
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    source=(ftp://ftp.mysql.com/pub/mysql/download/gui-tools/$pkgname-$pkgver-alpha-linux.tar.gz)
    noextract=()
    md5sums=('c60b3d3542f7a5d113a422c062ec3050')
    build() {
    cd "$srcdir/$pkgname-$pkgver-alpha-linux"
    ./autogen.sh --prefix=/usr
    make || return 1
    make DESTDIR="$pkgdir/" install
    Build instructions are located here: http://dev.mysql.com/workbench/?page_id=152
    I think all the dependencies are listed, and it compiles fine, but when I launch the app it segfaults:
    $> mysql-workbench
    ** Message: MWB_PLUGIN_DIR is unset! Setting MWB_PLUGIN_DIR to predifined value '../lib/mysql-workbench'
    (mysql-workbench-bin:18056): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)' failed
    (mysql-workbench-bin:18056): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)' failed
    (mysql-workbench-bin:18056): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)' failed
    MGGladeXML: _xml -> 0x8a38b90
    ** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.so' (cpp)
    ** Message: Trying to load module '/usr/lib/mysql-workbench/modules/db.mysql.grt.so' (cpp)
    ** Message: Trying to load module '/usr/lib/mysql-workbench/modules/dbutils.grt.so' (cpp)
    ** Message: Trying to load module '/usr/lib/mysql-workbench/modules/forms.grt.so' (cpp)
    ** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.model.editors.wbp.so' (cpp)
    ** Message: Trying to load module '/usr/lib/mysql-workbench/modules/wb.model.grt.so' (cpp)
    /usr/bin/mysql-workbench: line 13: 18056 Segmentation fault $bindirname/mysql-workbench-bin $*
    I also tried updating the ctemplate PKGBUILD to version 0.91 (since the one in community is an old 0.4 version)
    pkgname=ctemplate
    pkgver=0.91
    pkgrel=1
    pkgdesc="A library implementing a simple but powerful template language for C++."
    arch=(i686 x86_64)
    url="http://code.google.com/p/google-ctemplate/"
    license="BSD"
    depends=('gcc')
    options=()
    source=(http://google-ctemplate.googlecode.com/files/$pkgname-$pkgver.tar.gz)
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$startdir/pkg install
    md5sums=()
    Recompiled mysql-workbench, but still segfaults as before.
    Any guess?
    Thanks.

    Never used namcap, interesting tool...
    I get some warnings but I'm not really sure how to interpret them
    $> namcap mysql-workbench-5.1.2-1-i686.pkg.tar.gz
    mysql-workbench E: Dependency detected and not included (mesa) from files ['usr/lib/mysql-workbench/libguiutil.so', 'usr/lib/mysql-workbench/libsqlparser.so.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so.0.0.0', 'usr/lib/mysql-workbench/db.wbp.so', 'usr/lib/mysql-workbench/db.mysql.wbp.so.0', 'usr/lib/mysql-workbench/libgrtui.so.0.0.0', 'usr/lib/mysql-workbench/modules/dbutils.grt.so.0.0.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so', 'usr/lib/mysql-workbench/libmforms.so.0', 'usr/bin/mysql-workbench-bin', 'usr/lib/mysql-workbench/libmdcanvasgtk.so.0.0.0', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so.0.0.0', 'usr/lib/mysql-workbench/libgrt.so', 'usr/lib/mysql-workbench/libcdbc.mysql.so.0.0.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so.0', 'usr/lib/mysql-workbench/libgrtdbbe.so', 'usr/lib/mysql-workbench/libcdbc.so.0.0.0', 'usr/lib/mysql-workbench/libgrtbe.so.0.0.0', 'usr/lib/mysql-workbench/libcdbc.mysql.so', 'usr/lib/mysql-workbench/modules/forms.grt.so.0', 'usr/lib/mysql-workbench/libcdbc.so', 'usr/lib/mysql-workbench/db.wbp.so.0', 'usr/lib/mysql-workbench/libgrtsqlparser_mysql.so', 'usr/lib/mysql-workbench/libmforms.so', 'usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.so', 'usr/lib/mysql-workbench/libgrtdbbe.so.0', 'usr/lib/mysql-workbench/libmforms.so.0.0.0', 'usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.so.0.0.0', 'usr/lib/mysql-workbench/libgrtsqlparser_mysql.so.0.0.0', 'usr/lib/mysql-workbench/modules/dbutils.grt.so.0', 'usr/lib/mysql-workbench/modules/wb.model.editors.wbp.so', 'usr/lib/mysql-workbench/modules/forms.grt.so', 'usr/lib/mysql-workbench/libcanvasbe.so', 'usr/lib/mysql-workbench/libcanvasbe.so.0', 'usr/lib/mysql-workbench/db.wbp.so.0.0.0', 'usr/lib/mysql-workbench/libcdbc.so.0', 'usr/lib/mysql-workbench/modules/wb.model.editors.wbp.so.0.0.0', 'usr/lib/mysql-workbench/libmdcanvas.so', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so', 'usr/lib/mysql-workbench/libgrt.so.0.0.0', 'usr/lib/mysql-workbench/libgrtsqlparser_mysql.so.0', 'usr/lib/mysql-workbench/libmdcanvas.so.0.0.0', 'usr/lib/mysql-workbench/libguiutil.so.0', 'usr/lib/mysql-workbench/libgrtbe.so','usr/lib/mysql-workbench/libcdbc.mysql.so.0', 'usr/lib/mysql-workbench/libsqlparser.so.0.0.0', 'usr/lib/mysql-workbench/libmdcanvasgtk.so', 'usr/lib/mysql-workbench/libcanvasbe.so.0.0.0', 'usr/lib/mysql-workbench/libgrtui.so.0', 'usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.so.0', 'usr/lib/mysql-workbench/libgrt.so.0', 'usr/lib/mysql-workbench/libguiutil.so.0.0.0', 'usr/lib/mysql-workbench/libgrtdbbe.so.0.0.0', 'usr/bin/grtshell', 'usr/lib/mysql-workbench/libsqlparser.so', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so.0', 'usr/lib/mysql-workbench/db.mysql.wbp.so', 'usr/lib/mysql-workbench/libgrtui.so', 'usr/lib/mysql-workbench/modules/wb.model.editors.wbp.so.0', 'usr/lib/mysql-workbench/modules/forms.grt.so.0.0.0', 'usr/lib/mysql-workbench/db.mysql.wbp.so.0.0.0', 'usr/lib/mysql-workbench/libmdcanvas.so.0', 'usr/lib/mysql-workbench/modules/dbutils.grt.so', 'usr/lib/mysql-workbench/libgrtbe.so.0', 'usr/lib/mysql-workbench/libmdcanvasgtk.so.0']
    mysql-workbench E: Dependency detected and not included (ctemplate) from files ['usr/lib/mysql-workbench/modules/db.mysql.grt.so', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so.0', 'usr/lib/mysql-workbench/modules/db.mysql.grt.so.0.0.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so', 'usr/lib/mysql-workbench/modules/wb.model.grt.so.0.0.0', 'usr/lib/mysql-workbench/modules/wb.model.grt.so.0']
    mysql-workbench W: Dependency included but already satisfied (libxml2)
    mysql-workbench W: Dependency included but already satisfied (libsigc++2.0)
    mysql-workbench W: Dependency included and not needed (freeglut)
    mysql-workbench W: Dependency included but already satisfied (pcre)
    mysql-workbench W: Dependency included but already satisfied (gtk2)
    mysql-workbench W: Dependency included but already satisfied (pango)
    mysql-workbench W: Dependency included but already satisfied (cairo)
    mysql-workbench W: File (usr/lib/mysql-workbench/db.mysql.wbp.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/db.wbp.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libcanvasbe.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libcdbc.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libcdbc.mysql.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libgrt.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libgrtbe.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libgrtdbbe.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libgrtsqlparser_mysql.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libgrtui.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libguiutil.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libmdcanvas.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libmdcanvasgtk.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libmforms.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/libsqlparser.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/modules/db.mysql.editors.wbp.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/modules/db.mysql.grt.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/modules/dbutils.grt.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/modules/forms.grt.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/modules/wb.model.editors.wbp.la) is a libtool file.
    mysql-workbench W: File (usr/lib/mysql-workbench/modules/wb.model.grt.la) is a libtool file.
    It seems I missed the mesa dependency (but is a dependency of freeglut I think, which is listed)
    I also guessed wrong inserting ctemplate as a makedepends. Moved to depends now, but I had it installed anyway.
    I'm not sure about the "Dependency included but already satisfied" and "is a libtool file" warnings though...

  • Fat Jar Export: Could not find class-path entry for 'C:Java/jdk/mysql-connector-java-

    ok friends,
    have a normaly running project in eclipse and want to create a jar file...i tried ewerythin in ->export but nothing function
    i wanted to create a runnable jar file but that error ecures:
    JAR export finished with warnings. See details for additional information.
    Exported with compile warnings: ICQJJ/src/ICQJJ.java
    Jar export finished with problems. See details for additional infos.
    Fat Jar Export: Could not find class-path entry for 'C:Java/jdk/mysql-connector-java-5.1.8-bin.jar'
    what's the problem?
    ok, i am using a mysql db und using the driver mysql-connector-java-5.1.8-bin.jar....
    i improted this jar file like this run -> run configuration -> classpath -> add external jar....
    pls help me

    That looks like it might be a binary-distribution JAR that you should unjar. The actual JAR for the classpath is probably inside it.

  • Errors trying to compile PHP for use with MySQL

    I have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build:
    ./configure --prefix=/usr/local/php5 \
    --with-config-file-scan-dir=/usr/local/php5/php.d \
    --with-apxs2=/var/apps/apache/bin/apxs \
    --with-ldap \
    --with-mysql=/var/apps/mysql \
    --with-mysqli=/var/apps/mysql/bin/mysql_config \
    --with-xsl=/usr/local/include/libxslt \
    --with-ncurses \
    --enable-xslt \
    --with-xslt-sablot \
    --with-bz2=/usr \
    --with-gd \
    --with-gdbm=/usr/local/lib \
    --with-openssl \
    --with-imap=/usr/local/imap-2006e \
    --with-imap-ssl \
    --with-freetype-dir=/usr/local/include/freetype2/freetype/freetype.h \
    --with-expat-dir \
    --with-tiff-dir \
    --with-zlib \
    --with-jpeg-dir=/usr/local/include/jpeglib.h \
    --with-png-dir=/usr/include/libpng12/png.h \
    --with-mcrypt \
    --with-curl \
    --with-curlwrappers \
    --with-gettext \
    --disable-short-tags \
    --disable-debug \
    --enable-calendar \
    --enable-ctype \
    --enable-discard-path \
    --enable-exif \
    --enable-ftp \
    --enable-memory-limit \
    --enable-sysvem \
    --enable-sysvshm \
    --enable-gd-native-ttf \
    --enable-soap \
    --enable-shmop \
    --enable-sockets \
    --enable-xslt \
    --enable-mbstring \
    --with-sqlite=shared \
    --with-pdo-sqlite=shared \
    --with-pdo-mysql=shared,/var/apps/mysql \
    --enable-pdo=shared \
    --enable-bcmath \
    --with-oci8=sharedI have ld, make, and various tools linked to /usr/local/bin/<toolname>. The configure string completes with no issue and the make runs for about 30 minutes before it stops with the following warnings/errors:
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libssl.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libssl.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    /usr/ccs/bin/ld: warning: libcrypto.so.0.9.8, needed by /usr/local/lib/libldap.so, may conflict with libcrypto.so.0.9.7
    <snip>....
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:209: undefined reference to `mysql_sqlstate'
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:200: undefined reference to `mysql_set_server_option'
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:212: undefined reference to `mysql_set_server_option'
    ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_query':
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:251: undefined reference to `mysql_set_server_option'
    ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_get_warnings':
    /var/apps/php-5.2.5/ext/mysqli/mysqli_nonapi.c:298: undefined reference to `mysql_warning_count'
    ext/mysqli/.libs/mysqli_nonapi.o: In function `zif_mysqli_stmt_get_warnings'
    /var/apps/php-5.2.5/ext/mysqli/mysqli_warning.c:195: undefined reference to `mysql_warning_count'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1:
    There are many, many more "undefined reference" messages all mysql related.
    Here is my environment and crle output:
    LD_LIBRARY_PATH=/usr/local/ssl/lib:/usr/local/lib:/usr/local/BerkeleyDB.4.2/lib:/var/apps/mysql/lib/mysql
    PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/opt/sfw/bin:/usr/local/ssl/bin:/usr/ucb:/usr/ccs/bin:/opt/VRTS/bin:/etc:/opt/EMCpower/bin:/opt/EMCpower/bin/sparcv9:/etc/emc/bin:/opt/VRTSagents/ha/bin:/usr/local/include:/usr/include:/usr/platform/`uname -i`/sbin:/var/apps/mysql/bin:/var/apps/mysql/include/mysql:/opt/RICHPse/bin:/usr/local/php5/bin:/opt/sfw/sbin
    crle output
    Configuration file [version 4]: /var/ld/ld.config
    Default Library Path (ELF): /lib:/usr/lib:/usr/local/lib
    Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system default)
    Any ideas as to how I can get around the MySQL errors, etc. would be appreciated.

    Here are the requirments for 10.5.8:
    Mac computer with an Intel, PowerPC G5, or PowerPC G4 (867MHz or faster) processor
    512MB of memory
    DVD drive for installation
    9GB of available disk space
    You have to purchase the upgrade from Apple for $129. You ned to call and order ti since it is not listed in their on-line store. You can also try eBay or Craig's List. 

  • Best Xserve configuration for MySQL?

    Basically, I'm trying to figure out the optimal configuration for our next Xserve. Obviously, more RAM, more CPUs, more and faster disks in RAID, etc will improve things. But considering that money doesn't grow on trees, what have some of you found to be particularly cost-efficient in building an Xserve to run mainly MySQL where there are many small INSERTs on indexed (!? tables of 10 million or more rows (DB size of ~1GB, presently). I realize it's kind of a "depends if" type of question, but I'm just curious what people have found. (I've also read that AnandTech article that wasn't too kind to Mach.)
    Anyway, I was thinking of an quad-core Xserve with 4-8GB of RAM, and a RAID5 set of 15K SAS drives. Well, there's not much in terms of options anyway. But this box will be like I said 90% running services that depend on MySQL performance. Some Web services, but mainly automated MySQL stuff.
    Should I even bother to look at a Sun or Dell running Linux?
    I'm presently running primarily an Xserve dual G5 2GHZ with MegaRAID in RAID5. As I said, the key database is about 1GB with ~10 million rows (mostly in just two tables). So, small data sets, already heavily indexed... Anyway, any thoughts are very welcome. Here is a status snapshot of the past couple days:
    Traffic ø per hour
    Received 1,168 MiB 21 MiB
    Sent 1,631 MiB 29 MiB
    Total 2,799 MiB 49 MiB
    Connections ø per hour %
    max. concurrent connections 92 --- ---
    Failed attempts 0 0.00 0.00%
    Aborted 81 1.43 0.08%
    Total 98 k 1,731.89 100.00%
    Total ø per hour ø per minute ø per second
    6,409 k 113.27 k 1.89 k 31.46
    Query type ø per hour %
    admin commands 41 0.00 k 0.00%
    alter db 0 0.00 0.00%
    alter table 7 0.00 k 0.00%
    analyze 3 0.00 k 0.00%
    backup table 0 0.00 0.00%
    begin 0 0.00 0.00%
    call procedure 0 0.00 0.00%
    change db 98 k 1,734.77 1.56%
    change master 0 0.00 0.00%
    check 0 0.00 0.00%
    checksum 0 0.00 0.00%
    commit 0 0.00 0.00%
    create db 0 0.00 0.00%
    create function 0 0.00 0.00%
    create index 0 0.00 0.00%
    create table 1 0.00 k 0.00%
    create user 0 0.00 0.00%
    delete 210 3.71 0.00%
    delete multi 0 0.00 0.00%
    do 0 0.00 0.00%
    drop db 0 0.00 0.00%
    drop function 0 0.00 0.00%
    drop index 0 0.00 0.00%
    drop table 1 0.00 k 0.00%
    drop user 0 0.00 0.00%
    flush 0 0.00 0.00%
    grant 0 0.00 0.00%
    ha close 0 0.00 0.00%
    ha open 0 0.00 0.00%
    ha read 0 0.00 0.00%
    help 0 0.00 0.00%
    insert 214 k 3,776.04 3.39%
    insert select 5,725 101.18 0.09%
    kill 6 0.00 k 0.00%
    load 0 0.00 0.00%
    load master data 0 0.00 0.00%
    load master table 0 0.00 0.00%
    lock tables 16 0.00 k 0.00%
    optimize 0 0.00 0.00%
    preload keys 0 0.00 0.00%
    purge 0 0.00 0.00%
    purge before date 0 0.00 0.00%
    rename table 0 0.00 0.00%
    repair 0 0.00 0.00%
    replace 0 0.00 0.00%
    replace select 0 0.00 0.00%
    reset 0 0.00 0.00%
    restore table 0 0.00 0.00%
    revoke 0 0.00 0.00%
    revoke all 0 0.00 0.00%
    Query type ø per hour %
    rollback 0 0.00 0.00%
    savepoint 0 0.00 0.00%
    select 941 k 16.64 k 14.92%
    set option 855 15.11 0.01%
    show binlog events 1 0.00 k 0.00%
    show binlogs 43 0.00 k 0.00%
    show charsets 121 2.14 0.00%
    show collations 121 2.14 0.00%
    show column types 0 0.00 0.00%
    show create db 15 0.00 k 0.00%
    show create table 376 6.64 0.01%
    show databases 129 2.28 0.00%
    show errors 0 0.00 0.00%
    show fields 675 11.93 0.01%
    show grants 46 0.00 k 0.00%
    show innodb status 393 6.95 0.01%
    show keys 37 0.00 k 0.00%
    show logs 0 0.00 0.00%
    show master status 0 0.00 0.00%
    show ndb status 0 0.00 0.00%
    show new master 0 0.00 0.00%
    show open tables 1 0.00 k 0.00%
    show privileges 0 0.00 0.00%
    show processlist 18 0.00 k 0.00%
    show slave hosts 0 0.00 0.00%
    show slave status 0 0.00 0.00%
    show status 415 7.33 0.01%
    show storage engines 8 0.00 k 0.00%
    show tables 186 3.29 0.00%
    show triggers 0 0.00 0.00%
    show variables 283 5.00 0.00%
    show warnings 0 0.00 0.00%
    slave start 0 0.00 0.00%
    slave stop 0 0.00 0.00%
    stmt close 0 0.00 0.00%
    stmt execute 0 0.00 0.00%
    stmt fetch 0 0.00 0.00%
    stmt prepare 0 0.00 0.00%
    stmt reset 0 0.00 0.00%
    stmt send long data 0 0.00 0.00%
    truncate 0 0.00 0.00%
    unlock tables 16 0.00 k 0.00%
    update 260 k 4,600.62 4.12%
    update multi 0 0.00 0.00%
    xa commit 0 0.00 0.00%
    xa end 0 0.00 0.00%
    xa prepare 0 0.00 0.00%
    xa recover 0 0.00 0.00%
    xa rollback 0 0.00 0.00%
    xa start 0 0.00 0.00%
    Begin
    Variable Value Description
    Flush_commands 1 The number of executed FLUSH statements.
    Lastquerycost 0 The total cost of the last compiled query as computed by the query optimizer. Useful for comparing the cost of different query plans for the same query. The default value of 0 means that no query has been compiled yet.
    Slow_queries 338 The number of queries that have taken more than longquerytime seconds.

    RAID 5 is the worst possible storage option for databases.
    That's not to say it won't work, but it has an overhead that will impact disk I/O, especially writes and it sounds like your data set is write-heavy.
    This is because a write requires a Read-Modify-Write process for every write - whenever you write data to the array it has to read all the existing data in the corresponding blocks, recalculate the new parity data, then write it all back.
    This may or may not be a problem for you, depending on actual quantity and scale of the writes, but if you're looking for the best configuration, RAID 5 is not it.
    For optimal performance use RAID 0. Of course, RAID 0 has no protection, so you need to deal with that.
    The ideal combination is RAID 0+1, but that requires a minimum of four drives, while the XServe can only handle three internal drives.
    As for the rest of it, you really need to analyze your data more before you can get an answer.
    The number of rows is largely irrelevant if you're just inserting data. It has some bearing on indexes, so you need to look at how your data is indexed.
    As for memory, the ideal configuration is at least enough memory for MySQL to load all the indexes into RAM - most lookups should be indexed and if those indexes fit entirely within the memory space you're off to a good start.
    Note that the standard MySQL is 32-bit, so you're limited to 2GB for InnoDB or MyISAM (whichever you're using). You'll need the 64-bit version to use more memory than that.
    Most performance bottlenecks (and gains) can be traced to either indexes (too many indexes can be just as bad as not enough), and application (there's significant overhead in opening a new MySQL connection (which is a large factor in the AnandTech article), so try to ensure that your application uses connection pools (where a number of connections are opened when the app starts, and reused through application processes rather that a new connection opened for every query). Without knowing the application it's impossible to narrow that one down much more.
    As for Sun or Dell - sure, they're options. Just be aware that you'll need Solaris or Linux admin skills in order to get the most out of them. They may (but not necessarily will) perform faster at the end of the day, but it may also take you much time and heartache to get there.
    The other thing that you don't mention is why you're looking to upgrade. Is the G5 currently stressed? If so, where? what's the typical CPU load? disk activity level? network load, etc.
    It doesn't make any sense upgrading the machine if the network is your bottleneck - all you're going to do is move that same bottleneck to a different machine.

Maybe you are looking for

  • How to delete the memory in "other"?

    how do i delete the memory in "other" in my iphone4 . i accidentally restored the data in other as well prior.So restore didnt work.please help. i have come across many questions relating and referred communtities . but no satisfactory answers ..

  • ITunes 7 will not install..??

    I've tried several times to upgrade to iTunes 7 and I keep getting the following error: "Could not open key: HKEYLocalMachine\software\classes\quickttimeplayerlib.quicktimeplayerapp\clsd" Please help. Version 6 is running with no problems. Dell   Win

  • Mac: Upgrading PS CS2 to PS CS3; LR sees CS3 - what I did.

    After reading several threads asking about upgrading from CS2 to CS3 and how that impacts LR, I decided to bite the bullet and did things the way I wanted. Here are my results for a MacBookPro 2 GB ram, core duo: * I first deactived CS2, since I didn

  • Create stereo rig not long enough

    I've got a camera that is over six minutes in timeline, but when I create stereo rig from it, the stereo control is only 4 seconds in the new timeline. If I stretch it out, the stereo works until 4 seconds only, then everything flattens out! Please h

  • I am losing contacts randomly

    I have updated to IOS 5.01 and my contacts are dropping randomly, I have synched my phone but there not there.  As of today, they were still disapperating.   Anyone have this problem?