Mysql: Incorrect Key File For Table

Apr 20, 2009

I have a server with many db on mysql 5

Any db contains 5 table with data

This data is processed by routine

Many time routine die with the error:
"Incorrect key file for table '/var/tmp/#sql_3018_0.MYI'; try to repair it"

The table sql_3018_0.MYI not exist, think that this is refered to a temporary table but is deleted by process..

View 1 Replies


ADVERTISEMENT

MYSQL Incorrect Key File For Table

Jul 3, 2008

what I can do about the following database error in mysql?

Incorrect key file for table '/tmp/#sql_(number of table.MYI); try to repair it

I've repaired, optimized and checked the database in phpmyadmin. Initially 2 tables were showing overhead, but the error message is for a temp table and I'm not sure how to try to repair a temp table.

View 5 Replies View Related

Plesk 11.x / Linux :: FTP And File Permissions Are Incorrect?

Jun 4, 2014

Whenever I setup a new FTP user in Plesk and then configure my FTP client with exactly the same username and password and transfer files and folders onto the server then the file permissions allocated are incorrect. Folders get allocated a permission of 700 and files a permission of 600, whereas I want all folders to have a permission of 755 and files a permission of 644. How can I change my setup so that files and folders get the permissions I want ?

View 1 Replies View Related

Mysql: Copying To Tmp Table

May 18, 2009

mysql: Copying to tmp table, what causes that?

My server is majorly overloading and mysql is atop the cpu, and when I do a processlist there are about 20 copying to tmp table processes.

View 3 Replies View Related

MySQL Table Crashed

Sep 28, 2007

Table '231_message' is marked as crashed and should be repaired

I haven't ever had this happen, is all my data truely lost or can i 'repair' it

i was moving sites to a different server (VPS -> dedicated) and on the vps i have a max of 20gb storage, well as i was using the cpanel transfer it filled this up because it didnt have a warning about this (i dont accept blame )

either way it seemed at this time someone on my site tried to make an adjustment to the table and it crashed it since there wasnt room? i really need to get this fixed asap so I can properly move this site with a working database

View 5 Replies View Related

Optimizing Large MySQL Table

Nov 2, 2009

I optimized a mysql table of 2 million records and about 500MB.. it took about 15 minutes.. However, on the same DB now i have another huge table of 88 million records, it size is 2.2 GB and it has about 30 MB to optimize... my questions..

1.- How can I speed up the optimization process so it can take the less possible time? any tweaks to my.cnf?

2.- Should I repair it using phpmyadmin or just from the shell?

3.- Should I stop http traffic during this optimization?

This is a dedicated db mysql server that handles a large VB forum with 5-8 users online average:

Code:
Intel Xeon 3.2 x4 procs, 32 bits, 4 GB ram
/etc/my.cnf

Code:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-locking
skip-innodb
skip-bdb
query_cache_limit=1M
query_cache_size=48M
query_cache_type=1
max_connections=1200
interactive_timeout=100
wait_timeout=300
connect_timeout=10
thread_cache_size=128
key_buffer=48M
join_buffer=8M
max_allowed_packet=16M
table_cache=2036
sort_buffer_size=1M
read_buffer_size=1M
read_rnd_buffer_size=2M
max_connect_errors=10
# Try number of CPU's*2 for thread_concurrency
thread_concurrency=4
myisam_sort_buffer_size=64M

# Add
max_heap_table_size = 48M
tmp_table_size = 48M
low_priority_updates=1
concurrent_insert=2

[mysqldump]
quick
max_allowed_packet=16M

[mysql.server]
user=mysql
#basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
log-slow-queries=/var/log/slow-queries.log

On the other side, i have the same hardware for the webserver..

View 2 Replies View Related

Deleted Columns_priv Table MySQL

Jun 24, 2009

I accidentally deleted the columns_priv table in mysql database. How can I bring it back can anyone show me the structure of that table so I can build it back.

View 4 Replies View Related

How To Alter Tabel And Create Table In Mysql

Jun 24, 2009

I have a script and there are some modifications that I want to make

In the instructions it says ALTER TABLE and CREATE TABLE in myqsl but I dont know exactly how to do this.

I have tried to google but everything i find is very technical and doesnt explain the easiest way to do it.

Should I use phpmyadmin or whats the correct way?

View 5 Replies View Related

Joomla Installation - Username/Password Incorrect MySQL Database Error

Jun 25, 2007

I am trying to install Joomla on httpme.com but I seem to have problems with it recognising the username/password. Could it be a localhost issue or something?

I just can't seem to get a solution to this. I am referring to step 1 of the Joomla installation.

View 10 Replies View Related

Mysql Disable INSERT Access To Specific User/table

Apr 26, 2009

How can I disable INSERT access to specific table.

The user should have full access the the DB except insert to specific table.

The tables_priv allow to set what enable and not what disable.

I'm using mysql v5

View 4 Replies View Related

Could Not Retrieve From Database: Incorrect Information In File: "several.frm"

Jul 22, 2007

For starters im using mysql Server version: 5.0.32-Debian_7etch1-log Debian etch distribution.

What i did :

a) i run out of space on var partition, so i figured that i will copy my /lib/mysql to other partition (/mnt/hdb) and change only in my.cnf path to it.

b) I did so, and after launching mysql again i got several of this :

Could not retrieve from database: Incorrect information in file: './database/******.frm'

c) when i copy it back to my old location (and change back my : my.cnf) , same result errors

I cant lose my database:

View 1 Replies View Related

Mysql Cannot Create File In /tmp

Feb 3, 2008

I always have this error with mysql

Can't create/write to file '/tmp/#sql_7042_0.MYI' (Errcode: 13)

the /tmp has been chmoded 1777. I installed mysql downloaded from rpm on www.mysql.com, version 5.0.51a 64bits for CentOS-5

View 9 Replies View Related

Web Server - File And MySQL Backups

Mar 2, 2009

how to achieve the following:

We have a dedicated server, on which we hosts about 15 sites. I am needing to:
Backup each site individually (all files)
Backup each Db associated with each site
FTP to our own in-house ftp server

I have been searching around all afternoon, and possible solutions to each point above are the following:

Iterate through each top level folder in, say /var/www/vhosts/ and tar each folder individaully

I have only been able to do a mysqldump the whole server, and have only found scripts into which you have to manually specify each db if i need separate backups for each one done

Not an issue, we currently have backups from a separate server running

Is it possible to set this all up in one, top-level cron job?

View 4 Replies View Related

Mysql Open File Limit

Aug 14, 2008

I am trying to increase my open file limit on my CentOS release 4.6 VPS.

I have tried modifying my /etc/security/limits.conf with the following:
@mysql soft nofile 4096
@mysql hard nofile 4096
@mysql soft sigpending 4096
@mysql hard sigpending 4096

Even is a mannual set it with "ulimit -n 4096 mysql" it will not stick.

Any ideas what I can do to get this limit increased permanently?

View 7 Replies View Related

How To Import Mysql Dump File To Database By SSH

May 19, 2009

How to import mysql dump file to database by SSH?

How to import mysql database host to other host database by SSH?

View 4 Replies View Related

Is It Possible To Export The MYSQL DB From An Hypervm Backup File

Jun 10, 2009

Is it possible to export the MYSQL DB from an Hypervm backup file?

If possible,how to?

As I fail several times to restore it in Hypervm.

View 9 Replies View Related

ERROR! MySQL Manager Or Server PID File Could Not Be Found

Feb 14, 2008

Recently,Mysql has been a problem that is going down.So,I have to restart Mysql Service everyday. You can see for further information at here

Quote:

ERROR

Couldn't connect to database.
Please contact admin about this err. Back

DETAIL
2002 : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

This is the error when i restart Mysql Service via SSH

Quote:

ERROR! MySQL manager or server PID file could not be found!
Starting MySQL SUCCESS!

what i should do and give me a solution to kill this error

View 2 Replies View Related

MySQL Error: Can't Create/write To File '/dev/shm/MYxQT8lz'

May 19, 2008

one of my site shows this error

MySQL Error: Can't create/write to file '/dev/shm/MYxQT8lz'

I checked space on the server is still 25 GB free,

View 1 Replies View Related

Time Incorrect On FTP

Jun 4, 2007

The time is always 4 hours off in my FTP client even though I select the correct timezone for the server (Central Timezone -4:00). I'm on Eastern Timezone -5:00. Server is running on proftpd. This never happens on other servers, only this one I moved to recently. It happens to other users too. I tried adding GMT ON and OFF in proftpd conf but to no avail.

I always set ftp client to use server time and it never had a problem with displaying the right time. So weird.

logged into ftp using firefox and it still shows the time 4 hours ahead of my time

View 5 Replies View Related

Plesk 12.x / Linux :: Fail To Connect MySQL / Database / WebAdmin - File Not Found

Mar 30, 2015

I cant connect to the Database WebAdmin. If I click the icon, i got an "File not found." in the opening tab. Back in Plesk I get the following:

ERROR: PlexkFatalException
Server id is undefined?

I even cant connect via ssh to the mysql part of my server. But the server is running and both of my two wordpress pages run smoothly. I know this page: [URL] .... – but as I sad, cant enter die mysql.

It seems something is wrong with the permissions. I'm on the point where I just want to reset everything database related. But how?

View 2 Replies View Related

Su - Root Su: Incorrect Password

Sep 1, 2007

when log in via user in wheel group it works

but when su to root
it show incorrect password

/etc/pam.d/su

Code:
#%PAM-1.0
auth sufficient /lib/security/$ISA/pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient /lib/security/$ISA/pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required /lib/security/$ISA/pam_wheel.so use_uid
auth required /lib/security/$ISA/pam_stack.so service=system-auth
account required /lib/security/$ISA/pam_stack.so service=system-auth
password required /lib/security/$ISA/pam_stack.so service=system-auth
# pam_selinux.so close must be first session rule
session required /lib/security/$ISA/pam_selinux.so close
session required /lib/security/$ISA/pam_stack.so service=system-auth
# pam_selinux.so open and pam_xauth must be last two session rules
session required /lib/security/$ISA/pam_selinux.so open
session optional /lib/security/$ISA/pam_xauth.so
id

Code:
uid=32006(admin) gid=32010(admin) groups=10(wheel),32010(admin)

View 4 Replies View Related

Plesk 12.x / Linux :: Deny User Upload File Via File Manager Or Hidden File Tab?

Feb 10, 2015

I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...

View 2 Replies View Related

Incorrect Mem Usage (OpenVZ / HyperVM)

Nov 1, 2007

In the last two weeks I have noticed a major issue concerning memory usage. HyperVM and Top (via console) report two very different amounts of memory being used. On a fresh rebuild, my overall usage should be no more then 22mb. However, HyperVM reports 45mb whereas Top reports 11mb. Notice the huge gap?

I was told by my VPS host that OpenVZ / HyperVM is to blame. The overwhelming issue is: if I pay for 256mb of ram and I'm being cut short, then I'm obviously over paying. What's more: how can I tell whether or not I'm being cut short?

Has anyone run across these problems in the last two weeks?

View 4 Replies View Related

Unknown Or Incorrect Time Zone

Jul 27, 2007

while i am restoring db following error occured

Code:

Error at the line 6803: /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

Query: /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

MySQL: Unknown or incorrect time zone: 'NULL'

View 1 Replies View Related







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