General :: Help On A Script That Checks Mysql Db

Mar 3, 2010

I recently got stocked with this script..it was running fine on an amazon ec2 box (centos based) but when i moved to the actual box...

Code:

Part of the mysql query is not getting the falue.

As you see; i've added echo $VALUE somewhere to verify if the value was picked up... and it is; but dbexist is null..

If i remove the single quote marks i have

Code:

Where 3816253 is the value of $VALUE...

View 14 Replies


ADVERTISEMENT

General :: Can't Connect To Local MySQL Server Through Socket '/var/lib/mysql/mysql.sock' (2)

Jun 2, 2010

i am using liferay5.2(mysql included in the download pack) on fedora. while liferay is working fine but i cannot connect to mysql.i am getting the error

[
[root@localhost ~]# ln -s /var/lib/mysql/mysql.sock /tmp
[root@localhost ~]# /etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.

[code]....

i didnt find the mysql.sock file in the location /var/lib/mysql/mysql.sock. i cannot find the portal-ext.properties file also to make intial settings.

View 9 Replies View Related

General :: Enable E2fsck Checks Every 5th Boot?

Nov 13, 2010

I want the e2fsck check the filesystem on
every 5th boot.

View 1 Replies View Related

General :: Use The 'at' Command To Run A File That Checks ALL Process

Jun 26, 2011

I'm trying to use the 'at' command to run a file that checks ALL process running at 5:00pm and does a system load check? Any advice on where to start?

View 7 Replies View Related

General :: Does Shutdown -rF Imply A -y On All The Checks On Reboot?

Apr 27, 2010

I want to do a shutdown -rF 3:00 to reboot my RHEL server at 3am tomorrow and force an e2fsck on each volume. But I want the e2fsck to run with the -y switch so it automatically answers yes so it will fix any problems it find automatically.

I can't find anywhere where it says if it will do this or not. does anyone know or have proof? Or is there a better way to do what I'm trying to accomplish?

View 8 Replies View Related

General :: Website Compatibility Checks For IE/ Printer With No Driver ?

Jun 4, 2010

Currently have just Linux on my main computer (brother built it for me, knew I wanted to try Linux, so just put Ubuntu on).

Old computer (very old, 256MB Ram etc) runs Windows 2000 very slowly, currently will only start up in safe mode (not sure whether this is because it's not currently attached to the router or printer, or whether more serious).

I'd like to put linux (qimo, DSL or puppy probably) on the old computer so my 3-year-old can use it instead of demanding the penguin game (tuxpaint) whenever I want to use my computer!

So, wondering whether to try and shrink the windows partition or whether to just go for linux only. That computer was second-hand as well, so I don't have the windows disks.

The two things I'm worried about:

1) sometimes do some web design, and how would I check whether IE will display my pages without strange problems 'cos it doesn't follow the standards...

2) printing out photos at short notice: husband picked the printer so we're lumbered with a canon pixma MX700. It can do basic printing but won't communicate with linux to do photo quality (no linux drivers...) If I have plenty of time I use a photo printing service such as photobox.

Any thoughts how I can get round these problems so I can just jettison windows without worry? I don't have the spare cash to buy windows 7 or whatever to run in a virtual box...

View 4 Replies View Related

General :: Safe To Tune2fs Mounted Volume To Prevent Disk Checks At Reboot?

May 12, 2010

I have some large volumes that I don't want to automatically be e2fsck'd when I reboot the server. Is it safe to change maximum mount count to -1 and check interval to 0 while a volume is mounted, or will that cause problems to the file system?

View 2 Replies View Related

General :: Create A New Mysql User And A Mysql Database At The Shell Prompt?

Aug 7, 2010

How do I create a new mysql user and a mysql database at the shell prompt?

View 1 Replies View Related

General :: Mysql Not Starting After Changing Mysql Admin Password In Fedora?

Feb 19, 2010

Mysql starting problem after changing mysqladmin password.I tried all the solutions available on forums, but not solve the problem.At last I restored the mysql db backup, this make mysql service start, but till other databases not showing all tables.

View 1 Replies View Related

General :: Access Remote Mysql Db With Mysql-administrator Command?

May 13, 2011

I have install mysql on my fedora12. My different mysql server is located in us. I want to check health status and hits per seconds everything. Is it possible with mysql-administrator command.

now a these days i am connect through ssh and excuting below command

#mytop mysql -u root -p <passwd>

In my mysql db i have added the userip & passwd (allowed the privileages for that ip)

If i use mysql-administrator i am getting below error

MySQL Error Nr. 2003
Can't connect to MySQL server on '66.98.152.64' (111)

View 6 Replies View Related

General :: Interact With The Mysql To Reset The Root Mysql Pass?

Jun 14, 2011

I have tried many different ways to interact with the mysql to reset the root mysql pass. This is what I got to right now

Code:
#!/bin/sh
newpass=$1
service mysqld stop
mysqld_safe --skip-grant-tables --skip-networking &
echo "use mysql;" >> /tmp/mysql_pass_reset.txt
echo "update user set password=PASSWORD("$newpass") where User="root";" >> /tmp/mysql_pass_reset.txt

[Code]...

View 6 Replies View Related

OpenSUSE Network :: ERROR 2002 (HY000): Can't Connect To Local MySQL Server Through Socket '/var/mysql/mysql.sock

Jun 7, 2011

I think this goes here, but I'm not sure. I decided that XAMPP had been troublesome enough. MySQL never worked. So I decided to instal the LAMP stack offered by YaST. I went about installing it thinking that it would all work. But it seems that I was wrong. So I try to start mysql, and here's what I get:

Code:
the-matrix:~ # mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) or
Code:
the-matrix:~ # rcmysql start
Starting service MySQL warning: /var/mysql/mysql.sock didn't appear within 30 seconds
chmod: cannot access `/var/run/mysql/mysqld.pid': No such file or directory

[Code]...

View 6 Replies View Related

Fedora Installation :: 10 - Checks DVD Ok But Can't See It After

Jul 21, 2009

I downloaded the Fedora 10 DVD installation image and burn it to a DVD.The image was good, I checked the md5 sum.When I put the DVD in the drive and rebooted the text based menu appeared and I chose Install or upgrade.The the installer asked me if I want to check the DVD and I entered Yes.The DVD was checked and it turned out to be fine, but after that when I wanted to continue whit the installation the installer reinserted the DVD but it gave a message saying that it can't find Fedora on any drive .Even if just minutes ago it verified the DVD for integrity.And then it ejected the DVD.If I wanted to press F12 to continue it reinserted the DVD and gave the same message.So I can't continue my installation.

The DVD was fine as you can see, checked by me and by the installer itself.Is the installer asking for a CD?? I thought the DVD was for installing.And even better, that DVD was made whit the exact DVD writer which I use for the installation.So it can't be any incompatibility problem between different DVD ROMs or Writers.

The DVD installation is very important to me, because on that computer there is no internet connection.So the DVD is a solution to install a lot of software and actually use that computer, since yum does not work.

View 1 Replies View Related

Slackware :: Password Checks - Does Not Use PAM ?

Jul 20, 2010

Since Slackware does not use PAM where do I go to set password requirements. For instance, in CentOS there is the /etc/pam.d/system-auth-ac file where I can edit the cracklib and pam_unix modules to allow/disallow dictionary checks and min/max password lengths. Where do I go to edit that in Slackware?

View 1 Replies View Related

Fedora :: 11 And Filesystem Checks - Fsck

Oct 28, 2009

I'm used to having my computer do a fsck every 30 boots or so...Fedora doesn't seem to do that...am I missing something?

View 5 Replies View Related

Ubuntu :: 10.4 Checks Disks After Every Boot?

May 15, 2010

Ever since my upgrade from 9.10 to 10.4, every time I reboot the system it does a full disk check. /var/log/boot.log tells me that fsck thinks that the file systems contain errors or that it wasn't cleanly unmounted. And yet, it doesn't seem to actually find errors, and a clean reboot starts another check (again with it thinking something is dirty). I dual-boot with Windows, and reboot from there with the same problem.Again, all of this is new with 10.4 and was not happening with 9.10.Is there a way to find out when/how/why the disks are not being unmounted cleanly?

View 4 Replies View Related

Ubuntu :: System Freeze - What Checks To Do?

Mar 26, 2011

Nothing too major here but today I had a few programs open and was doing a bunch of things and suddenly the system froze.

I am on 10.04 LTS -

Are there checks that I can do to see if everything is ok?

I had to turn the power off and re-booted and everything is fine, or rather, seems to be 100% fine - but more out of curiosity Id like to see if there are some checks that I can do.

I think that ubuntu creates a log of activity if I am not mistaken?

View 4 Replies View Related

Ubuntu :: Always Checks Discs For Errors ?

Apr 12, 2011

I was just wondering why Ubuntu is always checking my discs for errors. This happens every few times i turn the computer off and back on. Maybe every 2 or 3 times. Is this just ubuntu checking the discs or something to worry about?

View 3 Replies View Related

Programming :: Check The Db For Some Value And Run Some Functions To Do Some Checks?

May 15, 2011

have an application where from time to time I need to check the db for some value and run some functions to do some checks. is the best option do it as php daemon or cron job?Whatworried of cron job is the overalapping.

View 9 Replies View Related

Server :: Sendmail Sometimes Does No Dnsbl Checks

Apr 2, 2010

I am running Sendmail server for SMTP. I included dnsbl form spam filtering and it works well.

Quote:

But sometimes it seems that sendmail just doesn't check the dnsbl. I was capturing the communication and I find out that several times the client just send the message and the sendmail does not even send a packet for check it in dnsbl. The whole SMTP session was completed without one blacklist check?

I use FEATURE(`delay_checks')dnl for allowing authenticated clients to pass the filters. Can this cause that the SMTP session is completed to fast and sendmail just has no time to check the dnsbls? (the check is delayed)

View 3 Replies View Related

Programming :: Bash - MD5 Checks With Script ?

Aug 10, 2010

I'm triyng to make a Bash Script that checks (recursively) the MD5 from all the files in a certain directory and compare them against some other check that should be already done and saved in a file.

I've reached to the point where i have the MD5 from the file and the MD5 that the script saved in a file the last time it runs.

But, for some reason, when i compare them, the script always tell me that the MD5 change!

Here is the part of the script that make the comparision:

Code:

For those who want it, the complete script: (Long and with Comments in Spanish!)

Code:

View 5 Replies View Related

Fedora :: Weekly Raid-check Never Checks Md1?

Feb 21, 2011

I have three raid volumes, md0, md1, and md2. The weekly raid-check cron always causes md0 and md2 to get checked but never md1.

/etc/cron.weekly/99-raid-check

Volumes md0 and md1 are on the same 8 disks. Volume md0 is a small raid1 across all 8 disks for boot and md1 is a raid5 that occupies the rest of those 8 disks. Volume md2 is a raid5 on a separate set of 6 drives. When I check /var/log/messages* I see that every Sunday md0 and md2 get checked but md1 is never checked. However, when I run 99-raid-check manually, all three volumes get checked. There is clearly something different between how crond runs that script and how I run it, but I can't imagine what that would be.

View 2 Replies View Related

Ubuntu :: Those Annoying File System Checks?

May 19, 2010

I have my Media Center running Ubuntu 10.04, and it's annoying to have that "Your disk drives are being checked for errors" message every so often. And ofcourse, as Murphy's law states, it usually happens when I'm in a hurry to quickly watch something.

Ofcourse, I can press 'C' (cancel) all the time. But I guess Ubuntu set up this file check interval for a reason, right? I was wondering if it's save to change the interval so it's less often. Or is it easy to configure the check to occur at SHUTDOWN? That's when most people don't care what the computer does anymore.

Also, although it's a pretty fresh install, any Ubuntu on my machine has never ever ever ever worked flawlessly and neither does this one. More often then not, on shutdown, the computer doesn't shut down but just sits there with a black screen or with the ubuntu logo. So I just power it off. Does this scenario make it unwise to tone down on the number of file checks?

View 9 Replies View Related

Ubuntu :: Integrity Checks Before Install Always With Errors

Jun 30, 2010

I've tried to install Linux Ubuntu 9 on an HPmini 110, since this type of netbook doesnt have any optical unit (CD/DVD Reader) I decided to install Ubuntu from an USB flash drive, I created the booteable USB drive with Lili USB Creator, then when I reboot the HPMini and select the "check integrity" option before install, it's always the same error, when the check is finished it tells me "Encountered 1 error in 1 file" (With no description of this error whatsoever) even when Lili USB Creator previously did a succesfull integrity check of the same ISO I'm trying to install.

I'have installed this same version of linux before (on the same machine), from the same ISO image without this error, I also have tried with 3 different flash drives and lately even tried downloading again the ISO image of Ubuntu 10, I dont think is my hardware either since Ive tried to install this same image in 2 different laptops 1HPmini and 1 HPCompaq CQ60 with the same results at the integrity test.

View 9 Replies View Related

Ubuntu :: Turn Off Checks When Changing Password?

Nov 24, 2010

The other day I wanted to make a small change to my (user account) password, but I kept getting errors about the new password merely being the old with changed case, or just a cyclic shift etc.Security issues aside, is there any way I can override these checks so that I can make whatever minor changes I like to my password?

View 1 Replies View Related

Debian :: Brasero Always Passes Image Integrity Checks?

Feb 9, 2011

I've been using Brasero to burn iso images on DVD-Rs, and although the burns are successful (I know by testing them), Brasero doesn't seem to perform its file/image integrity check from Tools>Check Integrity. The Brasero plugin "File checksum" or "Image checksum" is checked (can't have both checked), and when I perform a manual check with an md5 file and its burned DVD,it"always" gives me, immediately, a success message: "the file integrity was performed successfully," even when I insert a different image with the previous md5 file! So, immediate response (doesn't seem to be checking anything, I know that a 4Gb DVD md5 checking should take some time), and success whatever the DVD image used with one md5 file. Something must be wrong or the feature is broken.

View 4 Replies View Related

Fedora Networking :: App That Continually Checks For Devices On Network

Dec 4, 2010

Does anyone know of an application that continually scans for devices on a network and notifies you if a device connects/disconnects to/from the network? I just want a way of knowing when a computer is connected and when it's not.

View 10 Replies View Related

OpenSUSE Hardware :: How To Disable Filesystem Checks On Boot

Mar 12, 2010

How to diasable filesystem checks on boot?

View 9 Replies View Related

Ubuntu :: File Checks Fail For /home Partition?

Feb 28, 2010

I have a dual boot with Arch linux that share a /home partition. Whenever ubuntu starts tho it tries to do a check on the /home partition and fails.... it gets an error saying unable to check then drops into a shell. I have to run it in recovery mode frequently then start it up and it usually works, but i have to type startx after logging into a shell before that

View 8 Replies View Related

Ubuntu Networking :: Script Which Checks If User Is Connected Via VNC ?

May 4, 2010

My Lucid-PC runs x11vnc (port 5900) I would like to check with a script, if a user is currently connected to my Lucid-PC via VNC...

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved