10.6.8 MySQL socket issues

I can't get MySQL to run. It's the same with every other system update, each time requiring a new workaround.
In the terminal:
$ mysql -uroot
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
Then I try:
$ sudo edit /etc/my.cnf
And find an old fix:
[client]
socket=/var/mysql/mysql.sock
[mysqld]
socket=/var/mysql/mysql.sock
Which I delete and save. Back in the terminal,
$ mysql -uroot
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Interestingly, I have no trouble loading the database in Sequel Pro. When I view the server variables in Sequel Pro, I see:
socket = /tmp/mysql.sock
Please help me figure this out again.

Editor is wonky. Sorry.

Similar Messages

  • MySQL socket problems after system update

    I have been using my new Mac Mini Snow Leopard server as Squeezebox Server for over a month wihtout problems. After a system update this weekend I started to get MySQL socket errors after reboot.
    Started; log sequence number 0 43655
    091213 17:10:04 [ERROR] Can't start server : Bind on unix socket: Invalid argument
    091213 17:10:04 [ERROR] Do you already have another mysqld server running on socket: /Users/admin/Library/Caches/Squeezebox/squeezebox-mysql.sock ?
    091213 17:10:04 [ERROR] Aborting
    Although I have posted this issue to the Squeezebox forum (http://forums.slimdevices.com/showthread.php?t=72510) where it primarily belongs to I wanted to hear if anyone maybe had an idea what recent changes in Apple updates could cause this? Maybe someone else has similar MySQL problems with other installations? I am a bit desperate by now so any idea or hint is appreciated.

    Here was my solution/workaround for this issue to the rest of us poor fellas that have too fight around with Squeezebox server from time to time:
    I setup SBS to use the the standard MySQL installation on Mac OS X SL Server since I could get it to run without problems from Server Admin. Here are the instruction from the SBS Wiki:
    http://wiki.slimdevices.com/index.php/ExistingMySQLInstance
    However, I had to deviate a bit from that in order to make it work since it seems a bit outdated.
    First deviation was necessary for the MySQL access privileges. Notice the extra grant to slimserver@localhost. Don't ask me why but this worked. I do also not know whether both grants would be necessary because I haven't tried it. Feel free to improve it:
    # mysql -u admin_user -p
    Enter password: admin_password
    Welcome to the MySQL monitor.
    Commands end with ; or \g.
    Your MySQL connection id is 103 to server version: 5.0.24a-log
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    mysql> create database slimserver;
    Query OK, 1 row affected (0.22 sec)
    mysql> grant all on slimserver.* to slimserver identified by 'slimserver_password';
    Query OK, 0 rows affected (0.13 sec)
    mysql> grant all on slimserver.* to slimserver@localhost identified by 'slimserver_password';
    Query OK, 0 rows affected (0.13 sec)
    mysql> flush privileges;
    Query OK,
    mysql> quit
    There were also slight differences necessary in the preferences setup because MySQL socket location was different from the standard one. Here are my db entries ~/Library/Application Support/Squeezebox/server.prefs:
    dbpassword: slimserver_password
    dbsource: dbi:mysql:database=slimserver;mysql_socket=/var/mysql/mysql.sock
    dbusername: slimserver
    Notice the extra mysql_socket configuration.

  • Master Socket Issue

    Would like to take up option of Infinity now it's available in my area, anything has to be an improvement on my current BT rate of 2 Meg.
    However the current master socket is in the hall and I want everything in the living room where it is now. I have read about the Master sockets issues and rang the Sales line last night and asked about moving the master socket.
    The operatives initial reaction was effectively "what's your problem have the modem and hub in your hall" - I don't want that , I don't have the space. The next solution is the data extension kit - again I don't want a lead running round 3 door frames to get to my living room. After putting me on hold for a while he came back with the princely sum of £205 to move my master socket. I asked him whether there was any possible movement on price - No.
    Anybody else hit this wall - I am pretty aggrieved having been loyal to BT Internet for many years, £205 is a joke.

    Do you have any phone extensions from your master socket that run into the room you want the modem?
    If so, then just tell the Engineer and he will move it for you, they don't charge, well didn't when I had Infinity installed.
    If I helped, then consider clicking the star to the left

  • Mysql socket error 2002

    I've read all about this error and have played around with it for a while and still can't get it to work. This is how I got to where I am.
    1. installed OS X Server fresh and updated to 10.4.7
    2. installed entrophy php 5.1.4 from the installer pkg
    3. installed mysql standard 5.0.22 from the installer pkg
    4. installed phpMyAdmin and am trying to browse to http://localhost/phpMyAdmin/index.php and am getting the socket error 2002
    I read the technote http://docs.info.apple.com/article.html?artnum=302977 which refers to the mysql.sock file.
    when I start up mysql, it says 'running' and the mysql.sock file is in /var/mysql/ my php.ini file is pointing there. the /etc/my.conf file is pointing there.
    yet I'm still getting this error.
    What am I missing?

    At this point, you have two versions of PHP and two versions of MySQL installed on your system. So, when you say you start up MySQL, how are you doing that?
    For a MySQL-package installed version, you need to start up MySQL in the path /usr/local/mysql/bin/... or use the StartupItem they provide, which would be "/Library/StartupItems/MySQLCOM/MySQLCOM start". Then check where the mysql.sock file is with "/usr/local/mysql/bin/mysqladmin -u root variables" (or "/usr/local/mysql/bin/mysqladmin -u root -p variables", if you've given your root user a password so far).
    Also, you can check your PHP installation's default MySQL socket file search path with "/usr/local/php5/bin/php -i" and see what the "MYSQL_SOCKET" variable states is the location for the MySQL socket file.
    You just have to make sure these two things are in sync in order to get something like phpMyAdmin to run.
    NOTE: If you just type "php" or "mysql" at the command line, you're going to be launching/using Apple's preinstalled versions, so you'll always need to use the full path when working on the command line.

  • 10.4.11 server and MySQL - almost there need some help - socket issue

    After having problems with launching the mysql server on the built-in mysql (4.x) on my 10.4 server, I installed 5.1.31 from MySQLCom and followed the install instructions. I attempt to start the server with mysqld_safe as documented.
    This appears to actually launches the process, and the error log doesnt show any errors, and it shows up as mysqld in Activity Monitor, but I can't connect to it via mysql client - I keep getting "Can't connect to local MySQL server through socket /var/mysql/mysql.sock".
    Any suggestions would be very welcome...

    Hi,
    We sorted the problem, one issue was that we did not have the hostname set to the FQDN that was needed for the home folder mounts, this stopped the proper traversal of the /Network/Servers symbolic link. And the other issue is that on our 10.5 afp servers we needed to have the 'Open Directory Server' option set for LDAP Mappings in Directory Utility to be able to see all users in the 10.4 OD.
    J

  • PHP can't connect to MySQL socket

    Since upgrading from 10.4 to Leopard 10.5, PHP can no longer connect to MySQL. It gives the error:
    +Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'+
    I've read the threads and the following Technical Article:
    http://docs.info.apple.com/article.html?artnum=301457
    The problem is that none of the solutions are working!
    I can see that MySQL is creating a socket at:
    /tmp/mysql.sock
    1. So in /etc/apache2/httpd.config I set:
    mysql.default_socket = /tmp/mysql.sock
    But that had no effect, because even after restarting everything it still gives the above error message referring to /var/mysql/mysql.sock
    2. So then I followed the directions to have MySQL create the socket in the /var/mysql/mysql.sock. But any attempt to set the permissions on that directory has no effect or produces an 'unexpected error'.
    3. So then I tried creating an alias from /var/mysql/mysql.sock to /tmp/mysql.sock, but that had no effect either.
    Three possible solutions -- any one of which would solve the problem -- but all three of them fail, and the error message is always the same. What gives?

    Hi,
    I had the exactly the same problem after the 10.5 upgrade, I found following in another forum (seems to be pretty same as your solution 3, except for the mkdir command). After I applied these commands via the terminal window the MySQL worked with my PHP scripts (The PHP needed also some tweaking before working, but is not the issue here).
    ! first create the /var/mysql directory
    sudo mkdir /var/mysql/
    ! Then create the link
    sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    ! The restart apache (web sharing off and on in the sharing panel)
    Best regards,
    Sebastian

  • [CLOSED] Weird mysql/php issue.

    Hi,
    I am running an ArchLinux as my Server. It's a fresh install. I just configured nginx as my Webserver and then configured MySQL. I wanted to use phpMyAdmin as a manager. I installed it via wget and it worked fine. But all of a sudden it would not let me log in anymore. The log in screen just keeps on popping up, without any errors or anything. It tried reinstalling phpMyAdmin, I also tried the alternative chive. In chive I get the error "CDbConnection failed to open the DB connection." I really am at a loss here, has anyone else encountered a similar issue and can point me in the right direction?
    Disclaimer: Please excuse my possibly poor english, as it is not my native language, also please excuse any questions that may sound noob-like, because I am quite new to Arch.
    Last edited by oengelha (2012-12-15 17:40:09)

    config.inc.php should be in
    /etc/webapps/phpmyadmin
    but the installation symlinks that file to
    /usr/share/webapps/phpMyAdmin
    where the installation is.
    You'll have to add this directive in open_basedir @
    /etc/php/:/usr/share/webapps/
    Also might need an alias in
    /etc/nginx/nginx.conf
    What I do is symlink
    ln -s /usr/share/webapps /srv/http/.webapps
    /srv/http being my www directory I can visit mysite.com/.webapps/phpMyAdmin to access.
    This can be a security issue, maybe allow only local access or use another mean of accessing the installation.
    Also symlinking just the installation directory to a hidden directory precursed with '.' won't float, like mysite.com/.phpmyadmin
    Last edited by ackt1c (2012-12-16 17:44:01)

  • Crystal Reports Server 2008 (Linux) - Crystal Reports/MySQL/ODBC Issue

    Hello,
    I have successfully installed CRS '08 on a Red Hat Enterprise Linux 4 server.  All services run fine.
    In the CMC, I have uploaded a Crystal Report that connect to a remote MySQL server. 
    I have installed the My SQL ODBC 3.51.11 and .12 Drivers as a System DSN.
    I have proven that the reports run fine in Crystal Reports 2008 directly against the remote MySQL DB server.
    (in Windows but with the same 3.51 ODBC Drivers)
    I have also proven that the database connection works okay from the CRS '08 Red Hat server to the remote MySQL DB server, when also creating a system DSN (using bash ./ODBCConfig)
    The problem is that when I log into the CMC or InfoView, and when I run the Crystal Reports from there, I get an error message:
    "Error in File <MyCrystalReport>: Failed to load database information"
    Is there something wrong with my specific Crystal Reports' Database Configuration? (Right click- Database Configuration)
    I see the driver was registered correctly in the /etc/odbc.ini file
    Am I supposed to set any other ODBC environment variables?
    Is there are firewall issue (port 3306 is already open)?
    In summary, the install was successful, and Crystal Reports can be uploaded and viewed via CMC or InfoView, but I cannot run the Crystal Reports against the database.
    Please advise, Thanks!

    Hi, I'm facing a similar problem. My ODBC DSN never works with CRS. Here are the details:<br><br>
    (1) I  installed the CRS 2008 in /opt/crystalreportsserver_2008_v1/ on a Linux platform. The CRS works well. I created a report with Crystal Reports 2008. This report directly connects to a MySQL server. After I published the report and manually modify its database configuration, I can browse it from InfoView. I'm sure that CRS, MySQL, and a report connecting to MySQL are all good.<br><br>
    (2) Then, I created an ODBC DSN on a Windows platform. This DSN connects to a MySQL server. I created another report with Crystal Reports using this DSN. The report can show the data within Crystal Reports.<br><br>
    (3) Then, I published the second report to CRS, but when I try to browse it, I always get such a message: Failed to open the connection.<br><br>
    I have configured the ODBC for CRS on the Linux server and I think the configuration is correct. This is how I do that: I edited the /opt/crystalreportsserver_2008_v1/bobje/odbc.ini file. In the file I added a data source called ods_telstar. Following is the content of the file:<br><br>
    [ODBC Data Sources]<br><
    CRSQLServerWP=DataDirect 5.3 SQLServer Wire Protocol Driver<br>
    CRSybaseWP=DataDirect 5.3 Sybase Wire Protocol Driver<br>
    CRText=DataDirect 5.3 Text Driver<br>
    %SYBASEDSN%=DataDirect 5.3 Sybase Wire Protocol Driver<br>
    ods_telstar = MySQL<br>
    <br>
    ... <br>
    <br>
    [ods_telstar]<br>
    Description     = ODS on telstar<br>
    Trace       = Off<br>
    TraceFile   = stderr<br>
    Driver      = /opt/crystalreportsserver_2008_v1/bobje/enterprise120/linux_x86/odbc/lib/libmyodbc5.so<br>
    SERVER      = xxx<br>
    USER        = xxx<br>
    PASSWORD    = xxx<br>
    PORT        = 3306<br>
    DATABASE    = ods<br>
    <br>
    In the middle I removed some data source definitions that are by default in the file. Note that I use "xxx" to replace the server name, user, and password. Such information is for internal use and I'm sure the original information is correct. The MySQL ODBC driver file has been put in the correct location. Correct access permissions has been assigned to the file.<br><br>
    I've tried to restart the CRS server, but still the report using ODBC DSN cannot be viewed.<br><br>
    The reason that we want to user ODBC DSN is that we may have many reports to publish. When we design the reports, we specify that they get data through an ODBC DSN such as ods_telstar. If we configure the same DSN on CRS, then we don't need manually modify each report's configuration after we publish them. If these reports are directly connecting to MySQL, then we have to manually modify each one's database configuration after we publish them.<br><br>
    I've no idea what's wrong with all the setup. Any suggestions and comments are appreciated!<br>

  • Mysql Variable issue

    I am passing a what will soon be my search variable into php from flash. The issue is when I need to search for something that needs to find a string value in quotes it fails.
    Below is the like field variable declared in flash
    LikeField = "Model_Profile.Gender = \'m\' ";
    This is how I am capturing my like field in php.
    $LikeField=mysql_real_escape_string($_POST['likefield']);
    Below is my query
    "SELECT count(*) AS Total FROM Model_Profile, Models  WHERE  Model_Profile.Model_ID = Models.Model_ID AND Models.Active = 1 AND {$LikeField}"
    For some reason it just doesn't seem to like the single quotes on the m, but I need them there to execute. Tracing the flash variables passed it outputs this likefield=Model%5FProfile%2EGender%20%3D%20%27m%27
    If I put the query in below it works fine, so I know it's not an issue with my query, misspelling etc.
    "SELECT count(*) AS Total FROM Model_Profile, Models  WHERE  Model_Profile.Model_ID = Models.Model_ID AND Models.Active = 1 AND Model_Profile.Gender = 'm' "
    If pass this value from flash I get a result
    LikeField = "Model_Profile.Active = 1 ";
    I am stump and don't know where the issue is at the moment.

    It's difficult to give detailed advice without knowing exactly what's going on with this app and how it's going to be implemented.  Personally I like to use stored procedures with MySQL, it helps avoid SQL Injection attacks and it also eliminates the need to deal with quote literals when building a SQL string on the fly.
    From the details you did post, it appears that your query alows the user to include or exclude the Gender feature.  How does it handle a situation in which the Gender is not set, so it's not equal to 'm' or 'f'?  Does it simply exclude that field from the WHERE clause?
    One of the biggest limitations of MySQL stored procedures is that they don't allow for default values for their parameters.  But you can program around this in the PHP call by including a default value in your PHP code that would be overridden by input from the user in the search form.
    If I were going to develop this search, I'd try to limit what I'm passing from Flash to PHP as much as possible.  I'd start with my stored procedure:
    DELIMITER $$
    DROP PROCEDURE IF EXISTS `db_name`.`sp_name` $$
    CREATE DEFINER=`root`@`%` PROCDEURE `sp_name`(prmGender varchar(1))
    BEGIN
         SELECT COUNT(*) AS Total FROM Model_Profile, Models  WHERE  Model_Profile.Model_ID = Models.Model_ID AND
    Models.Active = 1 AND Model_Profile.Gender LIKE prmGender;
    END $$
    DELIMITER ;
    In my PHP code that calls this stored procedure I'd create a variable for the gender selection and set it to '%' (the MySQL wildcard character) and override it if a specific gender was selected by the user.
    This set up allows you to ignore the whole issue of dealing with quotation marks - simply pass the appropriate letter from Flash and pass it into the gender variable in PHP, which you would assign to the stored procedure call.  I hope this is somewhat helpful, if not please provide a bit more detail on your efforts and perhaps I can provide a better option.  Good luck! 

  • How to completely remove mysql [underlying issue solved]

    I am setting up a new system with egroupware.  Mysql started doing weird things, so I decided to remove it and reinstall it.  However, I cannot figure out how to get everything (databases, everything) off the system.
    When I run pacman -R mysql, I get the normal removal line, then one that says
    error: command failed to execute correctly
    the pacman.log file contains no errors
    I tried pacman -Rd mysql, with no change
    What do I need to do to get a system where mysql appears to never have been installed?
    Last edited by timm (2009-11-19 03:07:00)

    I login as user1, su to root
    [root@server user1]# groupadd -g 89 mysql
    groupadd: group 'mysql' already exists
    [root@server user1]# useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql
    useradd: user 'mysql' already exists
    [root@server user1]# userdel mysql
    userdel: user mysql is currently logged in
    [root@server user1]# w
    17:09:25 up  2:48,  2 users,  load average: 0.04, 0.01, 0.00
    USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
    user1     tty1      14:24    1:18m  7.61s  0.02s -bash
    user1     pts/0     17:02    0.00s  0.02s  0.03s sshd: user1 [priv]
    [root@server user1]#
    Ok, I'm over my head.  Will reboot and try it again......
    [update]
    reboot allowed me to delete user mysql and group mysql, but on reinstallation after running the recommended commands, the error on removal persists.  Reinstalled and I'll try to recreate the database.
    [update]
    Never did figure out how to get rid of mysql, but the error did end up being the default socket location.  The errors egroupware was throwing did not appear to implicate that, but going back step-by-step with the correction got it (mostly) working.
    Last edited by timm (2009-11-19 03:06:38)

  • MySQL Driver issue

    Hi,
    I've been trying to connect to a MySQL database from Java. I have no problems from PHP so the db is fine, but suspect this is a driver issue.
    I was using the Netbeans IDE but have now switched to a basic texteditor and command line to try understanding whats going on:
    $ javac *.java -cp <other-libs-here>:~/Java/libs/mysql-connector-java-5.1.6-bin/mysql-connector-java-5.1.6-bin.jar
    $ java Main
    Failed to get connection
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at MyDBConnection.init(MyDBConnection.java:38)
         at MyDBConnection.query(MyDBConnection.java:23)
         at Processor.index(Processor.java:31)
         at Main.main(Main.java:32)
    Exception in thread "main" java.lang.NullPointerException
         at MyDBConnection.query(MyDBConnection.java:25)
         at Processor.index(Processor.java:31)
         at Main.main(Main.java:32)Any help you can offer on this would be greatly appreciated.

    OK I thought one classpath was the same as another. It seems that the system classpath is something different.
    Running: CLASSPATH=~/Java/libs/mysql-connector-java-5.1.6-bin/mysql-connector-java-5.1.6-bin.jar;export CLASSPATHin bash fixed this problems.
    But I really want to get it working in NetBeans, does anyone have any ideas?

  • MySQL & PHP issues since upgrade

    Little bit of background: I ran an arch server about two years ago, basically a personal web server (for about a year).  Had apache, mysql and php running nicely on it using the basic configurations with some minor changes.
    Now, present day.  I have recently installed Arch again and once the upgrades were announced, I held off on installing the LAMP applications.  So, Friday I installed them (as oppsed to upgrading), and thought I had them all working fine.  Apache was running, mysql was running (command line access was working well with one exception, more on that later), and php was being parsed.  When I tried to pull data out of a database, i was getting "call to undeclared function mysql_pconnect()."  I googled the error and searched the Arch forums, and everything said to make sure php was compiled with the '--with-mysql' option.  I checked that using phpinfo(), and indeed it was, but it was '--with-mysql=/shared', /usr' (or something similar).  What I ended up doing was removing the arch package and recompiling php myself using '--with-mysql' (no arguments) and it works beautifully.  So, basically, is the arch configuration for php correct?
    Also, issue number two, I have created a non-root user in mysql, but when i try to log in i receive access denied for 'user@localhost' (using password: YES).  Did i miss a setting that won't allow me to log in as anyone but root?
    Thanks in advance. 

    simple, edit your php.ini like so:
    BEFORE:
    1250:;extension=mysql.so
    AFTER
    1250:extension=mysql.so
    no need to recompile php.
    ps: "grep -n mysql.so /etc/php.ini"

  • FYI: date.timezine and mysql.sock issues resolved!

    For anyone who might run into the same issues with your website(s) like I did. Here are a couple things you may want to look into if you are having these issues.
    The cause of these issues is due to snow leopard server using PHP 5.3.
    *_ISSUE #1_*: PHP throwing the following errors:
    +Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /path/to/my/www/wp-includes/functions.php on line 35+
    +Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /path/to/my/www/wp-includes/functions.php on line 43+
    +Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /path/to/my/www/wp-includes/functions.php on line 35+
    +Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /path/to/my/www/wp-includes/functions.php on line 43+
    *_FIX FOR ISSUE #1:_* Set "date.timezone = "YOURTIMEZONE"" value in your /etc/php.ini. Here is the list of timezones http://nl3.php.net/manual/en/timezones.america.php. Then restart web service in server admin.
    *_ISSUE #2_:* PHP throwing error "+Warning: mysql_connect() [function.mysql-connect]: [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock)+"
    *_FIX FOR ISSUE #2:_* Set "mysql.default_socket" value in your /etc/php.ini to "mysql.default_socket = /var/mysql/mysql.sock". Then restart web service in server admin

    Didn't resolve it for me using 10.6.1 server. I tried adding each of the following in php.ini (not all at the same time, one by one...). Restarted web service after each change (even though you don't really need to).
    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    date.timezone = 'America/Los_Angeles'
    date.timezone = 'PDT'
    datedefault_timezone_set('America/LosAngeles')
    datedefault_timezone_set("America/LosAngeles")
    Same error in the logs with any of these enabled:
    [Sat Sep 19 14:33:32 2009] [error] [client xxx.xxx.xxx.xx] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/share/squirrelmail/functions/date.php on line 289, referer: https://icecrown.hri.uci.edu/webmail/src/webmail.php
    I'm not running any PHP other than webmail anyway and it seems to be working fine (Besides not being able to get vacation replies working) but I haven't done a lot of sending / receiving since this is a test box.

  • Urgent for socket issue!!!!!!

    all,
    I am using socket to do FTP from NT to a mainframe. first of first, I can do FTP in MS-DOS console to the mainframe server, however, when I implement it in java code using socket, I can not get any response for "PASV" command.
    Anyone have idea about this issue? I need it badly!
    Thanks!

    I repied in your other post.

  • MySQL Connection Issues

    Hey,
    I am trying to use the MySQL database with my java application but I am experiencing some issues. I have downloaded the database as well as the appropriate drivers. I have also inserted in the classpath, the path to the connector (C:\Users\Nisha\Desktop\mysql-connector-java-5.1.14\mysql-connector-java-5.1.14-bin.jar). Nonetheless, when I run the application and try to insert a new entry into one of the tables in the database, I get the following error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver. I am assuming that this is a basic problem and I would really appreciate it if someone can recommend a quick fix to it. It is really frustrating because at the present time the database is becoming a bottleneck for me and preventing me from continuing on with the rest of my project.
    Here's the code I have thus far (I just attempt to establish a connection and then add to the database):
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package homeworkorganizer;
    import java.sql.*;
    import java.util.Properties;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    * @author Nisha
    public class Database {
    private String ipAdress= "localhost";
         public void addCourse(String courseNumber,String courseCredit,String courseName) {
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch (ClassNotFoundException ex) {
    Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);
    String server = "jdbc:mysql://"+ipAdress+"/";
    String dbName = "courses";
    String url = server + dbName;
    Properties props = new Properties();
    props.setProperty("user", "root");
    props.setProperty("password", "kish");
    Connection conn;
    Statement st;
    String columns = "course_number, no_credits, course_name";
    String sqlInsrt = "insert into Users (" + columns + ") values ";
    try {
    conn = DriverManager.getConnection(url, props);
    st = conn.createStatement();
    //Add user to the database
    String userInfo= " ('"+courseNumber+"','"+courseCredit+"','"+courseName+"')";
    //Use executeUpdate when our statement will change the database.
    st.executeUpdate(sqlInsrt + userInfo);
    } catch (SQLException ex) {
    Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);
    }

    user13523574 wrote:
    This is how I set the class path. I went to control panel (btw I am running windows 7), I clicked on system and security, I clicked on system, I clicked on advanced system setting, I clicked on environment variables, I selected the classpath variable under system variables and clicked on edit, and finally I put a semi-colon (to seperate the path that was there before) and I pasted the path to the connector.1. You can set the class path via a command line option. That will override whatever is in the env var CLASSPATH.
    2. Recent experiences of mine suggest that windows 7 might have changed the way env vars are handled versus older windows. Certainly possible since the shell was re-written. On some occasions I have found it necessary to reboot to get it to take. Although a re-login might have worked as well. That said it is was always necessary to restart the console window or application (such as an IDE) for env vars to take. But for an IDE you must set the class path in the IDE not the env anyways.

Maybe you are looking for

  • InDesign CS4 memory problems

    I have had memory problems with InDesign CS4 (and also with Photoshop CS4) for about a year now. If my file has a lot of pictures (100+) at some stage I get error message "Out of memory" . In the beginning it just have problems with redraw pictures (

  • Behaviour of 'NOT IN' in Stored Procedure

    Hello, I am encountering an abnormal behavior of 'NOT IN' in my .hdbprocedure. It was working fine a couple of days ago but today it doesn't yield any result. If I execute the same query via SQL Console ( replacing sub query for col2 with hardcoded v

  • Scanning values of characters in a string

    Hey guys, I'm trying to figure out a way I can scan the individual characters of a string to find their value [unicode value, if it's a number, punctuation etc] and I'm a bit stumped. I know I'll have to be using the chatAt method, but I can't think

  • Modified date changes with get

    Hello, I am having trouble with synchronizing files with Dreamweaver CS6. When I Get files from the server, the modified date for all the local files changes to the date/time that I did the Get, they do not reflect the modified date/time of those on

  • DVDs not readable after upgrade

    I recently upgraded to iLife '11 and since then I get the following message box when inserting a movie dvd: "The disk you inserted was not readable by this computer." with the option to ignore or eject. I know that it worked fine a few days before th