Leopard MySQL help

Hi Folks,
After upgrading to Mac OSX 10.5 (Leopard) I discovered I
could no longer connect to MySql. I immediately searched the web
for a fix and found a few different posts offering solutions. No
doubt due to my own lack of knowledge the terminal on the other
'black arts' I was encouraged to delve into along the way, every
post I followed failed to solve my problem.
I'm sure it's all messed up behind the scenes now as I've
dipped into all kinds of things trying to fix MySQL. The result is
that when I try to connect through Cocoa MySql which was my tool of
choice on OSX10.4 I get the following message:
"Unable to connect to host localhost.
Be sure that the address is correct and that you have the
necessary privileges.
MySQL said: Can't connect to local MySQL server through
socket '/private/tmp/mysql.sock' (2)"
I even tried MAMP which seemed to connect through PHPMyAdmin
on the first try but following that I get this message:
" #2002 - The server is not responding (or the local MySQL
server's socket is not correctly configured) "
I hate to ask but I really have tried everything over the
past month (over and over again) and I seem to have run out of
options. Does anyone has the time to help me find a solution?
Cheers
Dave

davecheet wrote:
> Hi Folks,
>
> After upgrading to Mac OSX 10.5 (Leopard) I discovered I
could no longer
> connect to MySql. I immediately searched the web for a
fix and found a few
> different posts offering solutions. No doubt due to my
own lack of knowledge
> the terminal on the other 'black arts' I was encouraged
to delve into along the
> way, every post I followed failed to solve my problem.
> I'm sure it's all messed up behind the scenes now as
I've dipped into all
> kinds of things trying to fix MySQL. The result is that
when I try to connect
> through Cocoa MySql which was my tool of choice on
OSX10.4 I get the following
> message:
> "Unable to connect to host localhost.
> Be sure that the address is correct and that you have
the necessary privileges.
> MySQL said: Can't connect to local MySQL server through
socket
> '/private/tmp/mysql.sock' (2)"
>
> I even tried MAMP which seemed to connect through
PHPMyAdmin on the first try
> but following that I get this message:
> " #2002 - The server is not responding (or the local
MySQL server's socket is
> not correctly configured) "
>
> I hate to ask but I really have tried everything over
the past month (over and
> over again) and I seem to have run out of options. Does
anyone has the time to
> help me find a solution?
>
"mysql.sock" may be missing or in the wrong directory:
http://forum.mamboserver.com/showthread.php?t=70766
Or per Dave Powers:
Try this in Terminal:
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
Mick

Similar Messages

  • Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    what email service - Yahoo mail have been acting up lately
    you can try setting Mail as your email client - it resolves this pfoblem for some people
    LN

  • I am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!

    i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
    When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
    Please HELP!!!!!! Getting second thoughts on Lion!!!!

    Hi b,
    Have you restarted yet?

  • I have tiger 10.4.11.  In order for my computer to recognize my new Iphone I need to install the new iTunes, however the new iTunes will not download on my computer because it is not 10.5 or higher.  Is there a way that I can upgrade to leopard?  Help!!

    I have tiger 10.4.11.  In order for my computer to recognize my new Iphone I need to install the new iTunes, however the new iTunes will not download on my computer because it is not 10.5 or higher.  Is there a way that I can upgrade from tiger to leopard?  Help!!

    Mac OS X 10.5 Leopard installation system requirements
    http://support.apple.com/kb/TA24950
    Leopard is no longer available at the Apple Store but may be available by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753).
    If you can't obtain a retail install DVD from Apple, look on eBay or Google the installer part numbers to possibly find at an on-line store. Here's what to look for:
    MB427Z/A  Leopard 10.5.1 install DVD
    MB576Z/A  Leopard 10.5.4 install DVD
    MB021Z/A  Leopard 10.5.6 install DVD (single user)
    MB022Z/A  Leopard 10.5.6 install DVD (5-user family pack)
    Installing Mac OS X 10.5 Leopard
    http://support.apple.com/kb/HT1544
    Mac OS X 10.5 Leopard Installation and Setup Guide
    http://manuals.info.apple.com/en/leopard_install-setup.pdf
    After you install the base 10.5, download & install the 10.5.8 combo update at http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
     Cheers, Tom

  • TS3002 My macbook pro 4,1 runs os x 10.6 but won't run my apple usb superdrive. One forum said that this is due to os x, not hardware. The terminal commands given were for Lion, but don't work in snow leopard. Help!

    My macbook pro 4,1 runs os x 10.6 but won't run my apple usb superdrive. One forum said that this is due to os x, not hardware. The terminal commands given were for Lion, but don't work in snow leopard. Help!

    I was able to get it to work!

  • I can't read in Mavericks DVDs and Bluray data burn with UDF system files burn with Snow Leopard, please help me. Thanks

    i can't read in Mavericks DVDs and Bluray data burn with UDF system files burn with Snow Leopard, please help me. Thanks

    They are DVDs with video files from a little more than 2 GB per file, were burned in Snow Leopard, with UDF file system, now that I updated to Mavericks when I try to read disks displays the directory in the finder a moment and then disappear and does not display them show them more. It is impossible to read the discs, but only those who were burned with UDF file system. Thank you for your help.

  • Can't get the INNODB storage engine to start with Leopard MySQL server...

    As shipped by apple. In the /etc/my.cnf file it says to just uncomment the stuff related to innodb and all will be well. I did that, restarted the Mysql server and when I take a look at the available storage engines using phpmyadmin, innodb is turned off...
    The following SQL runs:
    CREATE TABLE `Puzzles` (
    `id` int(10) unsigned NOT NULL auto_increment,
    `initialState` char(81) NOT NULL default '',
    `solution` char(81) NOT NULL default '',
    `levelOfDifficulty` int(11) NOT NULL default '5',
    `numberOfClues` smallint(5) unsigned NOT NULL default '0',
    PRIMARY KEY (`id`),
    UNIQUE KEY `initialState` (`initialState`),
    KEY `levelOfDifficulty` (`levelOfDifficulty`),
    KEY `numberOfClues` (`numberOfClues`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=780 ;
    But when I look at the table, it's a MyIsam table.
    Heres the innodb part of the /etc/my.cnf file:
    # Uncomment the following if you are using InnoDB tables
    innodbdata_homedir = /var/mysql/
    innodbdata_filepath = ibdata1:2000M;ibdata2:10M:autoextend
    innodblog_group_homedir = /var/mysql/
    innodblog_archdir = /var/mysql/
    # You can set ..buffer_poolsize up to 50 - 80 %
    # of RAM but beware of setting memory usage too high
    innodbbuffer_poolsize = 384M
    innodbadditional_mem_poolsize = 20M
    # Set ..log_filesize to 25 % of buffer pool size
    innodblog_filesize = 100M
    innodblog_buffersize = 8M
    innodbflush_log_at_trxcommit = 1
    innodblock_waittimeout = 50
    No errors in the logs visible through Server Admin. Did Apple put the MySQL configuration files somewhere non-standard and leave the /etc/my.cnf file around to fool us?
    Any pointers will be helpful or should I just build the fink package and give up on the shipped Leopard package (so far I'm not too impressed with Leopard).
    Best,
    Dick Munroe

    The problem turned out to be the sizes of the INNODB log and data files. Apparently, the initial startup of MySQL causes these files to be built. The numbers that you uncomment in the my.cnf file aren't related in any way to these sizes and the innodb storage engine won't start unless they match. Stop the server, delete the files, and restart the server and you're off and running. The logs on Leopard Server have NO indication that this has occurred. I found the problem by installing the Mac OS kit from mysql.com and looking in those logs. Interesting question is why that information is missing from the log for Leopard Server when the information is clearly available (as show by running the mysql server).
    Best,
    Dick Munroe

  • Discoveries while trying to setup Leopard Server - Help! What am I doing ??

    I have documented 2 scenarios and i would like some help with proper build procedures. Until today I have been using the host record I asked my ISP who also hosts Pri/Sec for my company domain to setup. It wasn't until this morning that I realized that they didn't setup a PTR record so because of that I did a RDNS lookup on my static IP and today I programmed that into the host/domain fields thru my build so that there was proper RDNS for the setup. Which looks like this rrcs-0-0-0-0.central.biz.us.rr.com zero's being an actual static IP.
    Scenario 1- Install Leopard onto MacMini with Standard install and use Apple Airport extreme for NAT firewall/router. Ok so I have done this about 4-6 times to try and get this right.
    A. Install Leopard and let OS auto config Airport-N for port mapping.
    B. Airport WAN is static IP from ISP and LAN is 10.0.1.1, Mini LAN is 10.0.1.2 Airport is DHCP provider on LAN.
    C. Mini hostname is set to rrcs-0-0-0-0 and domain is set to central.biz.us.rr.com
    D. After the system was rebooted after install I immediately got an error because the server prefs told me it could not find server rrcs-0-0-0-0.central.biz.us.rr.com which was weird because it is a brand new build. but since I setup the computer name to be mac-srvr I was able to remove the FQDN and input mac-srvr.local and then I could sign in. ---- I think this happened because when I am trying to log into the server prefs it's going out and performing a lookup and returning an error because from inside the FQDN reverse is actually the WAN interface of the Airport and not the LAN of the mini even though I told the mini to be the FQDN. Hope that makes sense and someone can tell me if I am right and then how to fix it .
    E. When I connected the MacBook and setup a user on the LAN side and then immediately disconnected from LAN and performed Dialup to the internet I was able to use the VPN for the first time which is great but but but the ichat would not work as I kept getting certificate errors and the ical from what I remember was good.
    So major issues here in this scenario is that internally the server is setup as rrcs-0-0-0-0.central.biz.us.rr.com and services don't seem to be able to find that computer. And second ichat does not accept the default certificate and or cannot connect to the ichat server.
    Scenario 2 - Install Leopard onto MacPro with Standard install nic0-wan with static ip 0.0.0.0 and nic1-lan with static of 192.168.1.1
    A. Install Leopard and set hostname=rrcs-0-0-0-0 and domain=central.biz.us.rr.com with computer name of mac-srvr.
    B. Upon server reboot and the second interface is not giving out IP's, I found that the range was from 192.168.1.2-254 and the default search domain was example.com because I Ieft that field blank during install and so I had to stop DHCP and setup someting like company.office and restart and all is was good.
    C. Once Macbook was on LAN and services setup properly I then disconnected and I was not able to VPN into the network like on the macmini unless I opened up the server admin and went the vpn console and then enabled pptp with another range. I could then PPTP vpn but not L2TP which should have worked out of the setup. But when I do PPTP I cannot gain access to server resources via smb://192.168.1.1 which is what the server automatically creates when you run server gateway assistant.
    D. The ichat and or L2TP VPN does not work unless I actually go into the Server Admin and disable it which I have another posting in VPN/Networking support about this for a 3rd build showing the same issues.
    So major issues here are that services such as ichat, L2TP does not work unless I disable firewall, PPTP does work but does not pass traffic onto the LAN or I can't log into the server shares.
    So if anyone has any insight, I am about 20 rebuilds in trying to get just one working properly over the past 3 days. And if anyone has a step by step that would be even better lol. I have all the Apple Server Docs as I attended a training seminar recently so I am well versed in the generic documentation but there is nothing in the server admin or any other apple doc that states this is what you need and how to do it as far as setup goes with setting up your Leopard server if you don't have external DNS and or if you just want to have a fake dns setup like fakeserver.fakedomain.office as we do with SBS. So any help would be good.

    Found that if I clean up DNS for my domain with PTR and A then everything started working properly after a rebuild.

  • Freezing iMac with both Tiger and now Leopard PLEASE HELP!!

    Hello,
    Our 1st gen 24" iMac was giving us Kernal Panics under Tiger 10.4.11 recently it all started two months ago.
    We took it into the Apple store for a Cleaning and fresh install of Leopard.
    When we received it back it locked/froze up immediately, forcing a hard restart. When I called the store they said one of my sticks of ram was not techinically bad but still suspect.
    This is what I did after that call.
    1. Checked the ram physically (the Apple store had placed my 512mb Apple ram stick in slot 1) which I thought very strange.
    2. I corrected the ram, meaning I put the 2gb (suspect) stick in slot 0 and the 512 Apple ram in slot 1. Things were better it would take 10-15 minutes of use before locking up not 1-2 minutes.
    3. I placed a new stick of Crucial (2gb from OWC) in place of the supect stick. that has had ZERO affect, our mac still freezes.
    4. I pulled out the 512mb Apple (Micron) ram and replaced it with a 1gb Micron stick from OWC and that gives us roughly 20-40 minutes of time befroe freezing.
    The software is up to date, I've max'd out the ram (at Apple's request) and all we have running is iTunes in the background to stream to AppleTV and a few tabs of Safari open when this locks up.
    Right before it freezes we notice lines arcoss the application windows almost as though there a distorted pixels.
    If any of you Mac Gods can help guide me in the right direction I would greatly appreciate it!
    Thanks

    Thanks, they did test the HD and booted from an external when I had it at the store, so maybe it is the Logic Board. That would suck bad!

  • My mac won't open video clips from my iphone in iphoto since upgrading to snow leopard. Help.

    My Mac won't open video clips from my iphone in iphoto in iphoto since upgrading to Snow Leopard. Usually I just used to double click and the video clip would open, now nothing happens.  Help please.

    Can you access the material via the Finder or Image Capture (in your Applications Folder) ?

  • Error message when I run searches on my website (PHP/MySQL help)

    Hey guys, can someone tell me why this is happening in my PHP? I run a search on my website and get this error message ye sI filled the hostname, username and password)
    Results for
    PHP Error Message
    Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a8295382/public_html/Search Results.php on line 233
    Couldn't execute query
    Here is my PHP code:
    <?php
    $hostname_logon = "host" ;
    $database_logon = "hostname" ;
    $username_logon = username" ;
    $password_logon = "password" ;
    //open database connection
    $connections = mysql_connect($hostname_logon, $username_logon, $password_logon) or die ( "Unabale to connect to the database" );
    //select database
    mysql_select_db($database_logon) or die ( "Unable to select database!" );
    //specify how many results to display per page
    $limit = 15;
    //get the search variable from URL
    $var = mysql_real_escape_string(@$_REQUEST['q']);
    //get pagination
    $s = mysql_real_escape_string($_REQUEST['s']);
    //set keyword character limit
    if(strlen($var) < 3){
        $resultmsg =  "<p>Search Error</p><p>Keywords with less then three characters are omitted...</p>" ;
    //trim whitespace from the stored variable
    $trimmed = trim($var);
    $trimmed1 = trim($var);
    //separate key-phrases into keywords
    $trimmed_array = explode(" ",$trimmed);
    $trimmed_array1 = explode(" ",$trimmed1);
    // check for an empty string and display a message.
    if ($trimmed == "") {
        $resultmsg =  "<p>Search Error</p><p>Please enter a search...</p>" ;
    // check for a search parameter
    if (!isset($var)){
        $resultmsg =  "<p>Search Error</p><p>We don't seem to have a search parameter! </p>" ;
    // Build SQL Query for each keyword entered
    foreach ($trimmed_array as $trimm){
    // EDIT HERE and specify your table and field names for the SQL query
    // MySQL "MATCH" is used for full-text searching. Please visit mysql for details.
    $query = "SELECT * , MATCH (field1, field2) AGAINST ('".$trimm."') AS score FROM table_name WHERE MATCH (field1, field2) AGAINST ('+".$trimm."') ORDER BY score DESC";
    // Execute the query to  get number of rows that contain search kewords
    $numresults=mysql_query ($query);
    $row_num_links_main =mysql_num_rows ($numresults);
    //If MATCH query doesn't return any results due to how it works do a search using LIKE
    if($row_num_links_main < 1){
        $query = "SELECT * FROM table_name WHERE field1 LIKE '%$trimm%' OR field2 LIKE '%$trimm%'  ORDER BY field3 DESC";
        $numresults=mysql_query ($query);
        $row_num_links_main1 =mysql_num_rows ($numresults);
    // next determine if 's' has been passed to script, if not use 0.
    // 's' is a variable that gets set as we navigate the search result pages.
    if (empty($s)) {
         $s=0;
      // now let's get results.
      $query .= " LIMIT $s,$limit" ;
      $numresults = mysql_query ($query) or die ( "Couldn't execute query" );
      $row= mysql_fetch_array ($numresults);
      //store record id of every item that contains the keyword in the array we need to do this to avoid display of duplicate search result.
      do{
          $adid_array[] = $row[ 'field_id' ];
      }while( $row= mysql_fetch_array($numresults));
    } //end foreach
    //Display a message if no results found
    if($row_num_links_main == 0 && $row_num_links_main1 == 0){
        $resultmsg = "<p>Search results for: ". $trimmed."</p><p>Sorry, your search returned zero results</p>" ;
    //delete duplicate record id's from the array. To do this we will use array_unique function
    $tmparr = array_unique($adid_array);
    $i=0;
    foreach ($tmparr as $v) {
       $newarr[$i] = $v;
       $i++;
    //total result
    $row_num_links_main = $row_num_links_main + $row_num_links_main1;
    // now you can display the results returned. But first we will display the search form on the top of the page
    echo '<form action="search.php" method="get">
            <div>
            <input name="q" type="text" value="'.$q.'">
            <input name="search" type="submit" value="Search">
            </div>
    </form>';
    // display an error or, what the person searched
    if( isset ($resultmsg)){
        echo $resultmsg;
    }else{
        echo "<p>Search results for: <strong>" . $var."</strong></p>";
        foreach($newarr as $value){
        // EDIT HERE and specify your table and field unique ID for the SQL query
        $query_value = "SELECT * FROM newsight_articles WHERE field_id = '".$value."'";
        $num_value=mysql_query ($query_value);
        $row_linkcat= mysql_fetch_array ($num_value);
        $row_num_links= mysql_num_rows ($num_value);
        //create summary of the long text. For example if the field2 is your full text grab only first 130 characters of it for the result
        $introcontent = strip_tags($row_linkcat[ 'field2']);
        $introcontent = substr($introcontent, 0, 130)."...";
        //now let's make the keywods bold. To do that we will use preg_replace function.
        //Replace field
          $title = preg_replace ( "'($var)'si" , "<strong>\\1</strong>" , $row_linkcat[ 'field1' ] );
          $desc = preg_replace ( "'($var)'si" , "<strong>\\1</strong>" , $introcontent);
          $link = preg_replace ( "'($var)'si" , "<strong>\\1</strong>" ,  $row_linkcat[ 'field3' ]  );
            foreach($trimmed_array as $trimm){
                if($trimm != 'b' ){
                    $title = preg_replace( "'($trimm)'si" ,  "<strong>\\1</strong>" , $title);
                    $desc = preg_replace( "'($trimm)'si" , "<strong>\\1</strong>" , $desc);
                    $link = preg_replace( "'($trimm)'si" ,  "<strong>\\1</strong>" , $link);
                 }//end highlight
            }//end foreach $trimmed_array
            //format and display search results
                echo '<div class="search-result">';
                    echo '<div class="search-title">'.$title.'</div>';
                    echo '<div class="search-text">';
                        echo $desc;
                    echo '</div>';
                    echo '<div class="search-link">';
                    echo $link;
                    echo '</div>';
                echo '</div>';
        }  //end foreach $newarr
        if($row_num_links_main > $limit){
        // next we need to do the links to other search result pages
            if ($s >=1) { // do not display previous link if 's' is '0'
                $prevs=($s-$limit);
                echo '<div class="search_previous"><a href="'.$PHP_SELF.'?s='.$prevs.'&q='.$var.'">Previous</a>
                </div>';
        // check to see if last page
            $slimit =$s+$limit;
            if (!($slimit >= $row_num_links_main) && $row_num_links_main!=1) {
                // not last page so display next link
                $n=$s+$limit;
                echo '<div  class="search_next"><a href="'.$PHP_SELF.'?s='.$n.'&q='.$var.'">Next</a>
                </div>';
        }//end if $row_num_links_main > $limit
    }//end if search result
    ?>
    Anyone got any ideas as to why this is happening?
    Also, I have not created any tables in my database... is this why it doesn't display any search results from my website?

    Sorry, but it doesn't help JTANNA.
    What is your definition of "more efficiently"? If it's limitation of search results, branded search, and limitation of styling your results then google search is more efficient. Real developers rely on their own developments. For example: how can google search display results from a password-protected site? They can't.
    best,
    Shocker

  • Mac Pro will not boot with Snow Leopard - need help!

    I have had a lot of issues with Snow Leopard since I upgraded from 10.5.8. Most of my problems started after installing Office 2007. I finally wiped the hard drive and reinstalled everything. No problems until last week. Start up was taking longer and had to reboot a couple of times because of grey screen. So I would just put computer to sleep. Yesterday the computer was frozen on screen saver with scrambled rows of pixels on screen two and the main monitor had a frozen image.
    I initially pulled all peripherals out and pulled the power plug for 5 minutes. I have left the peripherals out and pulled the second monitor as well. I tried pulling the power plug during a few more starts but nothing gets me to a complete start up screen.
    I have tried resetting PRAM and VRAM and tried a safe boot. I tried booting from Snow Leopard and my Leopard disk stayed on either a blue or gray screen with spinning beach ball (on gray screen).
    Put original install disk in and booted from using D to check the hardware. Good news is that the hardware test was OK. I did the extended test.
    All different kind of start up problems.
    - Some start with start up sound goes to Apple logo to blue screen to grey screen with beachball
    - Some start ups with no initial sound then Apple logo to blue screen to grey screen with no cursor or beachball
    - Some start ups with no sound to gray screen to blue screen to grey screen.
    I have no problem wiping the HD1 again but I can't even get the OS disk to be recognized with holding the C key during start up. This last time it went to a blue screen (holding the C key) and a cursor.
    I don't know what else to do - Please help!!!

    There are lists (MacIntouch and MacFixit) of hardware / software support issues with 10.6. Accelerateyourmac is another place to watch.
    There were some really long threads back in Sept about printer driver support.
    The 7300 firmware was more about Windows support; those cards are failing and dropping like flies (how DO they know 3 yrs has expired anyway?) and they don't support SL features like OpenCL etc so I'd invest in ATI 4870, best graphic card and works in all models Mac Pro.
    Lots and lots of bootable clones for backup. Never need to wipe and install again.

  • Apache2, PHP, MySQL Help

    Hi,
    Sorry if this is a bit of a newbie thing todo but I am not too good with solaris configuration yet.
    Can anyone supply a decent step by step and easy tutorial/how-to on how to set up Apache, PHP, MySQL and PHPmyadmin on a SPARC solaris 10 box please...
    Thanks Rob

    Can anyone supply a decent step by step and easy
    tutorial/how-to on how to set up Apache, PHP, MySQL
    and PHPmyadmin on a SPARC solaris 10 box please...Setting up Apache is very easy since all it takes is setting it up. Its installed by default, you can check /etc/apache for an example configuration file. Next to that www.apache.org/docs/ is also a very valuable read.
    <blunt SPAM>
    You could also consider looking into the Java webserver (formely SunONE). Its currently being made available for free with the Java Enterprise System and compares very well to Apache. If you'll also be doing some Java it would be a better choice (IMO its a better choice than Tomcat) and it can also do PHP.
    http://www.sun.com/software/products/web_srvr/home_web_srvr.xml
    http://www.zend.com/sun/?article=/sun/index.php&kind=&id=6179&open=1&anc=0&view=1
    http://www.php.net/
    </SPAM>
    As you'll note I included the PHP website because with the above setup you'd also need to manually setup PHP. If you have the companion CD present you can install the PHP module which will end up on /opt/sfw/apache. This directory will also present you a php.ini example which will need to be placed in /etc/apache as well. Setting it up is basicly following the documentation in the ini file, and the Apache documentation on adding an extra module (/opt/sfw/apache/libexec/libphp4.so).
    MySQL. Also very easy since its shipped with Solaris as well. Look into /etc/sfw/mysql for a README which covers the most essential steps to set it up. In short you'll need to setup a few directories for MySQL to work and optionally (but recommended) copy the default config file to /etc (/etc/my.cnf) which will define certain basic settings. The readme explains. Next you're likely to need the MySQL guide (if you're new with MySQL) which can be located at http://dev.mysql.com/doc/refman/4.1/en/index.html.
    This applies to the version (close enough anyway) which is shipped with Solaris. From personal experience I can say that MySQL 5 will also run very well on Solaris 10.
    Finally the PHPMyadmin... That really is an RTFM issue, once you have your environment setup (Apache and the likes) its likely you only need to copy it to your document root and point your browser to it.
    Hopes this helps somewhat.

  • PHP/MySQL Help Needed

    I'm a beginner with this PHP/MySQL language, but I'm using
    Dreamweaver CS3 to help things along. I've set up my database with
    my host (using PHPmyAdmin) and put in a table with some fields.
    Then I went into Dreamweaver and set up everything and it saw the
    database name perfectly. Then I made a recordset and it saw the
    fields just fine. I then made an input page to put the data into
    the database and that went off without a hitch. I then made a basic
    webpage with nothing but the call to display 2 of the fields in my
    database (I did the test in dreamweaver and it saw all the data I
    populated my database with perfectly). I then told it to preview in
    Firefox and got a blank page... Ok I must have done something
    wrong, so I put in some basic text just so I could see if even that
    would show up correctly. Then I previewed in Firefox again and not
    only did it show up, but the 2 fields showed up as well! Yea! So I
    made some changes to the fields I wanted to show and again did a
    Preview in Firefox. I was again treated to a blank page. Not even
    my basic text was showing up. I went back to Dreamweaver and added
    some more text... preview... works perfectly showing everything. I
    refresh the page and it's blank. I close Firefox and preview again.
    It's a blank page, but for the heck of it I decide to View Source
    and lo and behold all the data is there. I close the source and try
    reloading the page... blank. I'm at a loss. Any idea why this might
    be happening?

    jays99 wrote:
    > Thanks, David. I have your PHP5-Flash 8 book and egerly
    await your newest. I
    > installerd MySQL 5.027 for 10.4 intel which but it does
    not come up
    > automatically and there is no MySQL control on the
    Preferences. I read
    > somewhere that I have to open a file and change some
    lines of code in a config.
    > file. Do you have any insight to that? Thanks again, Jay
    Sorry, I haven't tested anything on an Intel Mac yet. Testing
    everything
    on Vista for my new Dreamweaver book has given me enough of a
    headache.
    However, I'm pretty sure that my editor has an Intel Mac, and
    he
    followed the instructions in "PHP Solutions" without any
    major hiccups.
    (They're pretty much the same as in the Flash book.)
    Isn't there a MySQL.prefPane icon in the MySQL installation
    package? I
    have found that MySQL won't start automatically on 10.4 (it
    did on
    10.3), but as long as you install the prefPane, you should be
    able to go
    in and start it manually.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Float values in mysql. help appreciated.

    Hi all,
    I have a mysql db table where a few of the fields are of type 'float unsigned'.
    When inserting large values into these fields (I am using statement.setDouble()), mysql seems to convert the values to the form 1e+0x,
    for example 1,000,000 to 1e+06
    2,000,000 to 2e+06.
    I dont have a problem with this but when I am retrieving these values at a later stage (using getDouble) the db is giving them in the converted form, and as a result my jsp page is displaying them in this form which is undesirable. Is there a way in java to parse these values or convert them back?
    Thanks for the help.

    If you want to control number formatting, use
    java.text.DecimalFormatWhat part of this simple statement don't you understand! Without writing your own formatting routines the only way to format your number the way you want is using java.text.DecimalFormat.
    >
    I appreciate what you're saying, You obviously don't!
    but i am certain
    that the double values I am working with are not
    being formatted, changed to strings, or being printed
    using println. the values are being displayed on a
    jsp page using getters which return doubles. So you have an implict formating in the JSP that you don't like! Use DecimalFormat.
    The
    doubles have been assigned using
    statement.getDouble().
    Everything works fine for numbers up 9,999,999.0, but
    any number greater than that, ie 10 million or
    higher, is returned from the mysql db in the form
    1e+0xNo they are not! They are returned as IEEE format numbers.
    ex 9,999,999.0 is returned by msql as 1e+08. any
    ideas?Yes, look at DecimalFormat again and then again.

Maybe you are looking for

  • Help on write back feature

    Hi All, I am working in Siebel Analytics 7.8.2. I have tried enabling write back feature in my application but I am not able to do so. The write back tab is enabled in the physical layer of repository. I have created a write back template. But the "M

  • Using bindings created by wsdlc (staxb?)

    I have a wsdl and xsd that I have used to create a web service using wsdlc. This created me a types jar containing java types, and also a binding-file.xml in META-INF. The web service is working fine. What I can't figure out how to do is take one of

  • My macbook is extremely SLOW after installing MAVERICK!, My laptop is extremely SLOW after installing MAVERICK!

    anyone else have the same problem? and if so, what is being done about it??

  • Cross Domain Web App Authentication

    I have two web apps that are running within different domains. They both use j_security for authentication. Is it possible to link from one web app to the other without requiring the user to reauthenticate? I tried setting the security credential to

  • Searcing text in album or project names

    Hi! In iphoto I could search for text in the name of an album. For example by typing "copenhagen" I would see all the pictures that are in albums whose name contained the word copenhagen. (xmas in copenhagen, copenhagen opera, my friend molly in cope