Can't reload from dump file

2006-01-29 Thread Chris Mason (Lists)
We have had some problems with corrupt data due to running out of space 
recently. I wanted to repair the tables so I backed up our database by 
dumping to a file with mysqldump. I then tried to repair the database 
and had some problems with that.
I stopped MySQL and moved the database to database.old and restarted the 
database. I wanted to import the dump file. As it is 700 MB it takes a 
while to load.

I got this error

[EMAIL PROTECTED] backups]# mysql -u root -prt3.sql
Enter password:
ERROR 1005 (HY000) at line 694: Can't create table 
'./rt3/Attributes.frm' (errno: 121)


and in the error file:

060129 19:27:32  InnoDB: Error: table `rt3/Attributes` already exists in 
InnoDB internal

InnoDB: data dictionary. Have you deleted the .frm file
InnoDB: and not used DROP TABLE? Have you used DROP DATABASE
InnoDB: for InnoDB tables in MySQL version = 3.23.43?
InnoDB: See the Restrictions section of the InnoDB manual.
InnoDB: You can drop the orphaned table inside InnoDB by
InnoDB: creating an InnoDB table with the same name in another
InnoDB: database and copying the .frm file to the current database.
InnoDB: Then MySQL thinks the table exists, and DROP TABLE will
InnoDB: succeed.
InnoDB: You can look for further help from
InnoDB: 
http://dev.mysql.com/doc/mysql/en/InnoDB_troubleshooting_datadict.html


What can I do?

--
Chris Mason
NetConcepts
(264) 497-5670 Fax: (264) 497-8463
Int:  (305) 704-7249 Fax: (815)301-9759 UK 44.207.183.0271
Cell: 264-235-5670
Yahoo IM: [EMAIL PROTECTED] 



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Replication problem

2005-03-19 Thread Chris Mason
I have two servers, server5.mydomain.com and server8.mydomain.com. I want to
replicate one database on server5 to server 8.
I did the whole proceedure as recommended in
http://dev.mysql.com/doc/mysql/en/replication-howto.html - 6.4. How to Set
Up Replication

I setup the GRANT statement on server5 for the slave.

mysql SHOW GRANTS FOR [EMAIL PROTECTED];
+---
---+
| Grants for [EMAIL PROTECTED]
|
+---
---+
| GRANT RELOAD, SUPER, REPLICATION SLAVE ON *.* TO 'server8'@'MyServer8IP'
IDENTIFIED BY PASSWORD 'xxx' |
+---
---+
1 row in set (0.00 sec)

But when I stop and start the slave, I get:

050316  8:56:42 [Note] Slave SQL thread initialized, starting replication in
log 'mysql-bin.04' at position 79, relay log
'./server8-relay-bin.01' position: 4
050316  8:56:42 [ERROR] Slave I/O thread: error connecting to master
'[EMAIL PROTECTED]:3306': Error: 'Unknown MySQL server host
'server5.domain.com' (1)'  errno: 2005  retry-time: 60  retries: 86400

When I try from the command line, I get it to work without problem:

[EMAIL PROTECTED] mysql]# mysql -h server5.domain.com -u server8 -p
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 30 to server version: 4.1.10-standard-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql 



Both /etc/my.cnf files are listed below

[EMAIL PROTECTED] mysql]# cat /etc/my.cnf 
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords
skip-locking
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache = 8
query_cache_size= 16M
skip-networking
sort_buffer=2M
log-bin
server-id=2
log-slave-updates 
log-warnings 
replicate-ignore-db=mysql

replicate-do-db=anguillaguide

[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
 
[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[EMAIL PROTECTED] mysql]# cat /etc/my.cnf 
[mysqld]
old-passwords
max_connections = 500
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer_size = 2M
read_buffer_size = 2M
sort_buffer_size = 3M
table_cache = 1500
thread_cache_size = 128
wait_timeout = 14400
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
skip-innodb
log-bin=mysql-bin
server-id=1

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M

Chris Mason
Anguilla

 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005
 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



{Spam?} Cannot start replication - can someone help?

2005-03-16 Thread Chris Mason
I have two servers, server5.mydomain.com and server8.mydomain.com. I want to
replicate one database on server5 to server 8.
I did the whole proceedure as recommended in
http://dev.mysql.com/doc/mysql/en/replication-howto.html - 6.4. How to Set
Up Replication

I setup the GRANT statement on server5 for the slave.

mysql SHOW GRANTS FOR [EMAIL PROTECTED];
+---
---+
| Grants for [EMAIL PROTECTED]
|
+---
---+
| GRANT RELOAD, SUPER, REPLICATION SLAVE ON *.* TO 'server8'@'MyServer8IP'
IDENTIFIED BY PASSWORD 'xxx' |
+---
---+
1 row in set (0.00 sec)

But when I stop and start the slave, I get:

050316  8:56:42 [Note] Slave SQL thread initialized, starting replication in
log 'mysql-bin.04' at position 79, relay log
'./server8-relay-bin.01' position: 4
050316  8:56:42 [ERROR] Slave I/O thread: error connecting to master
'[EMAIL PROTECTED]:3306': Error: 'Unknown MySQL server host
'server5.picado.com' (1)'  errno: 2005  retry-time: 60  retries: 86400

When I try from the command line, I get it to work without problem:

[EMAIL PROTECTED] mysql]# mysql -h server5.domain.com -u server8 -p
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 30 to server version: 4.1.10-standard-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql 



Both /etc/my.cnf files are listed below

[EMAIL PROTECTED] mysql]# cat /etc/my.cnf 
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords
skip-locking
key_buffer = 256M
max_allowed_packet = 1M
table_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache = 8
query_cache_size= 16M
skip-networking
sort_buffer=2M
log-bin
server-id=2
log-slave-updates 
log-warnings 
replicate-ignore-db=mysql

replicate-do-db=anguillaguide

[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
 
[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[EMAIL PROTECTED] mysql]# cat /etc/my.cnf 
[mysqld]
old-passwords
max_connections = 500
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer_size = 2M
read_buffer_size = 2M
sort_buffer_size = 3M
table_cache = 1500
thread_cache_size = 128
wait_timeout = 14400
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
skip-innodb
log-bin=mysql-bin
server-id=1

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M

Chris Mason
Anguilla

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005
 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Need advice on windows front end application

2004-12-29 Thread Chris Mason
I have a mysql database runing on an internal linux server and I need to
connect to it with an appliication running on a windows workstation. The
application must start another application with command line informaiton
from the database so I cant use a web based application, as web browsers
cannot start an application on the local machine.
I'm looking for recommendations on the easiest way to implement this
project. I would prefer a php like scripting language, I certainly wont be
able to do it in C or similar.

Chris Mason

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.6 - Release Date: 12/28/2004
 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: How is DBTools Software?

2002-12-08 Thread Chris Mason
I've found mysql-front to be far superior, in fact, I can't complain
about it at all.

-Original Message-
From: Michael She [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 07, 2002 3:27 PM
To: Will Standley
Cc: Sandeep Murphy; Crercio O. Silva; MySQL List
Subject: Re: How is DBTools Software?


Hi,

I used it for a while, it's quite good for free software, but it is
rough 
around the edges.  Some of the menus are a bit hard to navigate and it 
crashes once in a while too.

I'm currently using EMS Hitech's MySQL Manager.  It's one of the best
GUI's 
I've come across.  There are a couple of glitches with the program, but 
nothing severe.  The author is really responsive in returning questions
and 
comments.  The only drawback - It's not free...

http://www.ems-hitech.com/mymanager

I'm debating if I should register it (might go back to DB Tools), but 
that's because I'm building a charity/non-profit site and funds are kind
of 
tight!


At 08:15 AM 12/7/2002 -0500, Will Standley wrote:
Has anyone used DBTools Software? (http://www.dbtools.com.br/EN/)

It is a free utility for managing MySQL  other db's.

I also discovered Intelligent Converters at www.convert-in.com

Both look good.

The first is free and does more than convert Access to MySQL.

The second converts more stuff... like Excel to MySQL.

All comments encouraged.

-- 
Michael She  : [EMAIL PROTECTED]
Mobile   : (519) 589-7309
WWW Homepage : http://www.binaryio.com/



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Need a little query help

2002-10-28 Thread Chris Mason
I am trying to select some data from a hotel database I am putting on
the web. Currently I am using two temporary tables and three queries to
get the data, but I suspect it can be done in one query by a better
knowledge of SQL.
The tables are

Hotels:
ID,
PostCode,
ShowHotel

AmenityLink:
ID,
HotelID,
AmenityID,
Value

I have the postcode as $postcode and one or more amenities = 'y';

I want to find all active hotel IDs with PostCode = $postcode and having
the amenityid, ignoring the amenity value as I will test for that later.

SELECT Hotels.ID FROM Hotels, AmenityLink
WHERE Hotels.ID = AmenityLink.HotelID
AND ShowHotel = 1
AND PostCode = '$postcode'
AND 
(AmenityLink.AmenityID = $amenityid[1] OR AmenityLink.AmenityID =
$amenityid[2] )

The problem is, it is easy to test for one amenity, but I need to test
that the hotel has all of the amenities. The query above returns all the
hotels that have ANY of the amenities, I need the hotels having ALL of
the amenties only.

Thanks for any assistance.




Chris Mason
[EMAIL PROTECTED]
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463 Cell: 264 235 5670
http://www.anguillaguide.com/ The Anguilla Guide
Talk to me in real time:
Yahoo:netconcepts_anguilla
US Fax and Voicemail: (815)301-9759



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Too many connections (again)

2001-11-26 Thread Chris Mason

I have a lot of databased websites running on my server (1 Ghz P3/256
MB/20GB/RH7.1) and I am continually getting connection problems. None of the
sites are high volume, so I am surprised by this and I suspect that
connections are not being reused quickly enough.

Here's my config, can anyone help me sort this out?



[root@server1 /root]# vi /etc/my.cnf

[mysqld]
#datadir=/var/lib/mysql
datadir=/usr/mysql
#socket=/usr/mysql/mysql.sock
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql
basedir=/var/lib
max_connections=300

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


Chris Mason
[EMAIL PROTECTED]


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php