Server :: Stop Mysql In Order To Preform A Backup?

Apr 12, 2010

I'm working on an old redhat server with mysql installed and I need to find a way to stop the service in order to preform a backup.

some info that I found on the server code...

View 9 Replies


ADVERTISEMENT

Server :: Recover MySQL Innodb From /var/lib/mysql/ Backup?

Jan 30, 2011

I installed mediawiki the other day and went with the default innodb option. However a week later something went wrong. And since I have scripts that nightly backup /var/ I just copied the backup of /var/lib/mysql/wikidb/ (as I've done with MyISAM). Then when I connect the wikidb database. I can see the tables (via "show tables"), but when I do any query with them (check table X, select * from X) I get:

Code:

Table 'wikidb.X' doesn't exist I've since read that can can't just copy the database directory like MyISAM, and there appears to be no way that I can find to restore or fix Innodb, without a dump of the data. And I never got a chance to do a mysqldump of the data. So has anybody got any idea how I can at least view the "page" table from the files I've backed up in /var/lib/mysql/wikidb/ ?

View 1 Replies View Related

Server :: Tar Backup And Restore In Mysql?

May 6, 2011

how to take tar backup and restore in mysql,Iam new to mysql,i searched in google but i did not get the exact one.

View 4 Replies View Related

OpenSUSE :: How To Start Stop Mysql Server

Feb 25, 2010

i am using putty to connect to my server and wanted to restart mysql server. searched the internet and found thatcommand is /etc/init.d/mysqld start or stopbut it did not worked.then tried /etc/init.d/mysql stop or startthis also did not worked.

View 6 Replies View Related

Server :: Mysql Backup And Restore Scripts?

Apr 11, 2011

writting shell scripts,i searched in google but could not get the exact,pls can anyone help how to take mysql backup & restore using shell scripts.

View 3 Replies View Related

Server :: Recover A Compressed Mysql Backup?

Dec 6, 2009

I'm trying to recover a compressed mysql backup. As the backup is extremely large, I dont wanna decompress it before importing. How can I make a mysql variable take effect before I load this compressed file into the database.

View 7 Replies View Related

Server :: MySQL Backup Cron Job Not Executing Correctly?

Mar 2, 2011

I own a CentOS 5 VPS. I typed crontab -e, and then I added the following line to automatically have my server backup mysql

0 * * * * mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

When I go in and look, it doesn't place any files in /home/dbbackup. When I run

mysqldump -u root -p password --all-databases | gzip > /home/dbbackup/database_`date '+%m-%d-%Y_%H'`.sql.gz

View 3 Replies View Related

Server :: MySQL Backup - Deal With Large Amounts Of Data?

Feb 15, 2011

we've been trying to become a bit more serious about backup. It seems the better way to do MySQL backup is to use the binlog. However, that binlog is huge! We seem to produce something like 10Gb per month. I'd like to copy the backup to somewhere off the server as I don't feel like there is much to be gained by just copying it to somewhere else on the server. I recently made a full backup which after compression amounted to 2.5Gb and took me 6.5 hours to copy to my own computer ... So that solution doesn't seem practical for the binlog backup.Should we rent another server somewhere? Is it possible to find a server like that really cheap? Or is there some other solution? What are other people's MySQL backup practices?

View 8 Replies View Related

Ubuntu Servers :: Mysql-admin Won't Schedule Backup But Will Manual Backup

Jan 19, 2010

I have a scheduled backup to run on our server at work and since the 7/12/09 it has be making 592k files instead of 10Mb files, In mysql-admin (the GUI tool) I have a stored connection for the user 'backup', the user has select and lock rights on the databases being backed up. I have a backup profile called 'backup_regular' and in the third tab along its scheduled to backup at 2 in the morning every week day. If I look at one of the small backup files generated I see the following:

Code:

-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version`

[code]....

It seems that MySQL can open and write to the file fine, it just can't dump

View 3 Replies View Related

CentOS 5 :: Backup, Restore And Crash (in That Order, Unfortunately)?

Sep 30, 2009

this message is a bit long but I've been pulling my hair for 2 days now. I am installing Centos 5.3 on a Dell Powerege R610, x86_64 flavour. That part goes well. next is testing backup & restore. I've tried MondoArchive, that I used on other OS, but it fails to remount the LVM correctly, and disk formatting fails. Now, I am trying another way: boot with centos 5.3 i386 live cd, take the disks online, cpio to a usb file everything but: /tmp /proc /boot /dev /etc/fstab /etc/mtab

then, reinstall a fresh centos to erase the disk (crash simulation) and to simulate the initial restore I would do after a crash. From there, I go again with the livecd, mount r/w the logical volume, cpio -i all my files, and reboot. It sort of goes well. system reboots correctly - it loads all my drivers (even asterisk & dahdi and the T1/E1 card light goes green...), starts KDE, but from there I get an infamous error message preventing me to log in "Your session only lasted less than 10 seconds" - looking in the details, i get this message "could not exe /etc/X11/xinit/XSession default' - but I dont think X11 has so much to do with it...

When I go to a text console (ctrl alt f1), and try to log, no luck either - and no time to see why. I've modified initrd to level 1 - there I get the single user prompt, that's ok - but init 3 brings me to a screen where I cant log (either with root or a user) - there is a clear difference between an incorrect password and a failed login - the later, as soon as I enter the password, I return to a login prompt Now my questions. 1/ how can I make a "system backup" of Centos 5.3 x64 -ie after a crash, I want an image tha t I will restore and bring back OS + Applications (data can be backed up separately) 2/ what is wrong with my restore thru livecd ? why cant I log into the system ?

[Code]..

View 2 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

Software :: [MySQL] Order By Custom Date?

Jun 30, 2011

I'm actually tryinng to order all by DATE on MySQL but seems not to be possible.The date order is like this for example: Wednesday, June 29, 2011, 18:31I tried with this, but doesn't work:SELECT * FROM members ORDER BY date ASCSometimes it works with DESC.And also with this, and same!SELECT * STR_TO_DATE( date, '%D, %M %d, %Y, %H:%M' ) AS date_for_sort FROM `members` ORDER BY date_for_sort;I have this problem and I need to fix it asap for the business.

View 2 Replies View Related

Programming :: MYSQL Select ORDER BY, GROUP BY Together?

Apr 19, 2010

I'm writing a PHP script, and I need a top 10 result from a mysql query.I've tryed like this:select IP,sum(download) from traf group by IP order by ASC limit 0,10and my sql returnsmysql> select IP,sum(download) from traf group by IP order by ASC limit 0, 10;ERROR 1064 (42000): 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 'ASC limit 0, 10' at line 1As I red through Google this is not quite supported by mysql, so is there another way to do this?

View 5 Replies View Related

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

Fedora :: You Need To Be Root To Preform This Command?

Mar 21, 2011

I am trying to install Wine 1.2 through the terminal, I type yum -y install wine1.2 cabextract and then hit enter. Then it says "You need to be root to preform this command" What does this mean and how do I become "root?"

View 3 Replies View Related

Ubuntu :: Copied Backup Disk (3.2 GB) Onto Hard Drive Using 10.4 In Order To Reorganize Storage, But Then Could Not Trash It?

Jun 30, 2010

I copied my backup disk (3.2 GB) onto my hard drive using 10.4 in order to reorganize my storage, but then I could not trash it.In "file browser" a lock icon appears next to the folder name, and I always get the error message that it can not be put into trash in one step, would I like to delete it? I click on "delete" and no help.Further trial led to an error message that I don't have "permission." I'm the only user.I don't know anything about terminal and not one command, and usually when I ask for help, people provide "code" but no instructions on how to enter it or where.I'm the rawest beginner at terminal,

View 9 Replies View Related

Software :: How To Stop Mysql Instance

Aug 4, 2011

here is contents of .my.cnf :
[mysql]
host=localhost
user=root
password=mei

[Code].....

why mysql client can login after mysql instance has been shutdown? there is only one mysql instacne running on my computer.

View 2 Replies View Related

Software :: How Do I Stop MySQL Database

Jan 28, 2010

How do I stop a MySQL database that is defined as utf-8 from assuming that 'Sergio' and 'Srgio' are the same thing?

View 14 Replies View Related

Software :: Unable To Stop Mysql Daemon?

Mar 2, 2011

In my system I installed Oracle enterprise linux.while installing I installed Mysql also.

I checked the version which is 5.0.15

After my installation,I am installing Bugzilla 4.0.at that time it's showing below
===========================================================
Checking for DBD-mysql (v4.00) found v3.0007

For MySQL, Bugzilla requires that perl's DBD::mysql 4.00 or later be installed. To install this module, run the following command (as root):

/usr/bin/perl install-module.pl DBD::mysql
===========================================================
I ran below command
#/usr/bin/perl install-module.pl DBD::mysql

[Code].....

I can't able to stop mysql daemon

View 2 Replies View Related

General :: Backup All Tables In Mysql?

Nov 18, 2009

I want to write the shell script which

1)Finds all the databases in mysql

2)create the folder who ever is the creater of that database or owner of that database. I think the databse starts with username_ so i think i have to split the database name to get folders name . How to do that? backs up the databases belonging to that user.

View 3 Replies View Related

General :: Backup A Particular Database In MYSQL?

Jun 27, 2011

How to backup a particular Databases..through Bash script! For example i have 6 databases;

Anish
linux
Software
Questions
Rhce
Google

these are the databases i have from that i want to take "Anish" and "questions" database backup regularly.

View 8 Replies View Related

Ubuntu Servers :: Update Process (and I) Can't Stop Mysql?

Mar 10, 2010

I'm running an update, and get this:

Code:
The following packages will be upgraded:
apache2 apache2-doc apache2-mpm-prefork apache2-utils apache2.2-common libcupsys2 libmysqlclient15-dev linux-libc-dev mysql-server
mysql-server-5.0 php5-imap sudo
12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.

[Code]...

View 1 Replies View Related

Ubuntu Installation :: 10.04 Upgrade - MySQL 5.1 Does Not Want To Start Or Stop

Apr 30, 2010

I upgraded from Kubuntu 9.10 to 10.04. 32 bit. The install had not finished as it barked at tripwire config. I have had to stop it and continue from command prompt. More or less the install went OK. After the install, mysql 5.1 does not want to start or stop. Commands
/etc/init.d/mysql stop ( or 'stop mysql' , or service mysql stop' )
/etc/init.d/mysql start

Do not finish - do not return to command prompt. No log messages insyslog or mysql logs. Say, I do 'service mysql start', the command does not return, I click Ctrl+C, then repeat the command. This displays :
'start: Job is already running: mysql'.
Of course mysql is not running. I've tried to remove and reinstall the packages. No result. There is 'stop mysql' command in one of install scripts that hangs.

View 9 Replies View Related

Ubuntu :: Mysql Stop Working After Today's Update

May 26, 2010

I'am using ubuntu lucid, after today's system updates, mysql stop working at all. Log file at /var/log/mysql/error.log does not say anything about today, and whe I try to start it the terminal hang also in verbose mode.

View 9 Replies View Related

Ubuntu :: Backup MYSQL Database From Where Its Stored?

Feb 2, 2010

I had a problem with my ubuntu installation, but I don't want to get into that...The OS wouldn't load...Now, that I have a ubuntu partition mounted on a live cd, is there a way I can access or backup my database without booting the system? I'm pretty sure the database is stored somewhere, but how can I find it and back it up?

View 8 Replies View Related

Ubuntu :: Backup From An Old Mysql In A Hard Drive?

May 4, 2011

How to backup from an old mysql in a hard drive?I have this HD which used to have an Ubuntu 7.04... However, the system crashed and it is not possible to boot anymore.I have moved the HD to another computer and made a copy for every important file and folder... But I am facing trouble to backup mysql... To copy /etc/lib/mysql doesn't work because it is probably in an older version from the mysql I use on Ubuntu 10.10

View 3 Replies View Related

Ubuntu :: Restore Backup Server - Where Is The Location Backup Snapshots Or Files Are Saving

May 10, 2011

I install and tested Restore EE Backup server on a test PC with basic configuration and its working fine.

[URL]

The issue i have is where is the location these backup snapshots or files are saving? I want to add a separate Storage to save the backup?

View 1 Replies View Related

Software :: Backup A Few Servers And A Bunch Of Desktops Onto One Backup Server?

May 10, 2010

Does anyone know of any decent enterprise level backup solutions for Linux? I need to backup a few servers and a bunch of desktops onto one backup server. Using rsync/tar.gz won't cut it. I need like bi-monthly full HDD backups, and things such as that, with a nice GUI interface to add/remove systems from the backup list. I need basically something similar to CommVault or Veritas. Veritas I've used before but it has its issues, such as leaving 30GB cache files. CommVault, I have no idea how much it is, and if it supports backing up to a hard drive rather than tape.

View 7 Replies View Related

Ubuntu Installation :: Stop Mysql From Auto Starting When Start Machine

Mar 1, 2010

i have installed mysql and its running fine. how i can stop mysql from auto starting when i start my machine

View 2 Replies View Related

OpenSUSE :: Unable To Schedule Successfully MySQL Backup Jobs

Aug 29, 2010

I'm running:
OpenSuSE 11.1
MySQL 5.0.67
MySQL Administrator 1.2.12

I have one database for my web application. It's using MyISAM tables. In MySQL admin, I went to Backup and created a scheduled backup project called backup1. On the advanced tab, I selected "Lock All Tables" and checked the box for "Backup Selected Database Completely". On the Schedule Backup tab I have "Execute this Project Daily" selected and the time 1AM. The target directory is set along with the connection name. The connection it's using is the same MySQL user that my web application uses in order to utilize the database. It has full access to that database. Now when the backup file is created, it backs up no data at all.

Instead in creates files that are 580bytes in size. When I open the files they contain:
-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version5.0.67

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

View 1 Replies View Related







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