Confused About Rows and Skipping On Import with MySQL Migration Toolkit 1.1

2009-03-06 Thread revDAVE
Hi folks,

I'm trying to use MySQL Migration Toolkit 1.1 with MS SQL server 2005
http://dev.mysql.com/downloads/gui-tools/5.0.html

- basically all is working great - some tables import no problem - except...

I'm trying to import an address table and in the summary it says that
there's a few problems like:

incorrect string value for column 'street' at row 655
0 rows transferred 

The problem is when I try to import just 650 or so,  then I go to phpmyadim
to look - well the rows are not in the original order - they start with
addressID 1-2-3-4 etc but randomly skips some so there's no way I can match
the imported row 655 to the addressID (655) (they were in order - no
deletions) - to find the bad field to fix it...

Q: why is it importing rows and seemingly skipping many?

Q: how can I figure out which is the REAL row 655 (without counting by hand)
to fix the field text string error?

Thanks in advance - dave


--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists 09]




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Simple Search Logic Issue...

2009-02-14 Thread revDAVE
Newbie question...


I have a search page with multi lines of search criteria:

Name
Topic
Message
Etc...

I'm hoping to get results based on what criteria I type - but I'm not
getting what I expect. I think it's just getting results where in addition
to getting search criteria I type - ALSO none of the search fields can be
blank (not what I hoped) ...

Like I type just 'c' in the name field and it shows 3 records (other search
fields filled up) ... But I have many more records with name containing 'c'

Goal: to search for what I type in whatever search fields and not worry
about whether others are blank or not - like:

Name contains 'c'

Charles
Chuck
Chuck
Chas

Or 

Name contains 'c' and topic contains 'test1'

Maybe just charles fits this criteria

--


I made a simple results page,

... More code here ... ( DW CS3 )

$name_list1 = "-1";
if (isset($_GET['Name'])) {
  $name_list1 = $_GET['Name'];
}
$top_list1 = "-1";
if (isset($_GET['Topic'])) {
  $top_list1 = $_GET['Topic'];
}
$mess_list1 = "-1";
if (isset($_GET['Message'])) {
  $mess_list1 = $_GET['Message'];
}
mysql_select_db($database_test1, $test1);
$query_list1 = sprintf("SELECT * FROM mytable WHERE Name LIKE %s and Message
LIKE %s and Topic LIKE %s ORDER BY mytable.id desc", GetSQLValueString("%" .
$name_list1 . "%", "text"),GetSQLValueString("%" . $mess_list1 . "%",
"text"),GetSQLValueString("%" . $top_list1 . "%", "text"));

--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists 09]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists 09]




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Broken Database issue - tables vanishing

2009-01-27 Thread revDAVE
Newbie question

Something - or maybe me is breaking my database. this happened before with
the same DB - so,using phpMyAdmin, I just rebuilt the structure again and
all was fine for a few minutes - then I created a basic user with Privileges
for the db and within a few minutes the DB broke with the issue below. Any
ideas what happened or how to get it back? (since it's brand new, I have no
backups but will in the future)

Thanks in advance - dave

using: 

- 10.4.11 OSX 
- MAMP 1.72 http://mamp.info/en/index.php
- coldfusion 8 dev edition
- phpMyAdmin 2.11.7.1




on the phpMyAdmin - page showing localhost>mydatabase>structure

table - action - then columns: records type collation - size - overhead all
show:


"in use"

- when i click on a table it says:


#1146 - Table 'mydatabase.contacts' doesn't exist


hmmm...

--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists 09]




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org



Importing - Adding Fields Into MySql From A List

2008-04-14 Thread revDAVE
Newbie question!

I have a list of field names from another database (not mysql) - like:

name
phone1
phone2
street
city
state
zip
info
etc (a bunch more fields)

Q: Is there a way I can add these to an existing empty/blank table?

Maybe I can use:

- phpMyAdmin ?
- sql commands with php - loop thru a list of these names?
- import field names from CSV?
- some other method?

I tried a test with php and got NO errors - but no result either ( looked
with phpMyAdmin after - the table didn't add or drop the fields... Nothing
changed)





I have phpMyAdmin and If there's a way add tables w / php - maybe that would
work also

If I can just get all the field names in the table as text fields - that
would be ok for now - then I can individually change the field type by hand
w phpMyAdmin...




--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists]




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