+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

 

Thread: MySQL Help!

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts


    I am new to My SQL & PHPMyAdmin, and am trying to build my first table. I have created a table anyway in phpMyAdmin, 16 columns, 19 rows, and have imported a CSV file from AW. The process gone well but just that the table is empty! I can't figure out what has gone wrong. I basically follow instruction in http://www.a4uforum.co.uk/showthread...MySQL+datafeed

    Could anyone help please? That would be very kind of you. Cheers
    Last edited by ukyellowpage; 16-02-05 at 10:59 PM.
    Cheers
    YJ

  2. #2
    Avoiding real work

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Buckinghamshire
    Posts
    1,373
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did you check that the right options were chosen for the importing. My version of PHPMyAdmin defaults to ; as the field delimiter so I have to change it to ,.
    Those who can do, those who can't talk about it

  3. #3
    Registered User

    Status
    Offline
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes, and the phpMyAdmin also showed that 19 rows (all rows from the csv file) have been imported. However it is just blank table when I saw from the "browse" button. Cheers
    Cheers
    YJ

  4. #4
    Dot Com Pennyaire

    Status
    Offline
    Join Date
    Jan 2004
    Location
    this month, Guatemala
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is it because you only have 16 fields? I am importing 18 fields from the Affiliate Window feed and it works fine.
    Last edited by lakrasia; 17-02-05 at 10:10 PM.
    I used to have an open mind but my brains kept falling out.

  5. #5
    Registered User

    Status
    Offline
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Good point lakrasia but I got an error message when try to create a table with 18 fields:

    MySQL said:
    #1070 - Too many key parts specified. Max 16 parts allowed



    What's the problem? Anybody any ideas? PLEASE! Thank you and cheers Lakrasia
    Cheers
    YJ

  6. #6
    Avoiding real work

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Buckinghamshire
    Posts
    1,373
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you specifying all the fields as being primary key? If so they shouldn't be.
    Those who can do, those who can't talk about it

  7. #7
    Registered User

    Status
    Offline
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nope... have select "index" though.

    thanks ianm
    Cheers
    YJ

  8. #8
    Avoiding real work

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Buckinghamshire
    Posts
    1,373
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You don't need to select index for every field - it will slow down uploading as it will have to index every field.

    Just index any fields that you do searching and sorting on (for example prod name, id and perhaps the categories).
    Those who can do, those who can't talk about it

  9. #9
    Registered User

    Status
    Offline
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your advice ianm, but still the table is empty
    Cheers
    YJ

  10. #10
    Dot Com Pennyaire

    Status
    Offline
    Join Date
    Jan 2004
    Location
    this month, Guatemala
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You mention a csv file. Did you download a zipped file and forget to unzip it?

    Did you blank out 'lines terminated by' and 'fields escaped by'?
    Last edited by lakrasia; 17-02-05 at 11:37 PM.
    I used to have an open mind but my brains kept falling out.

  11. #11
    Registered User

    Status
    Offline
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks lakrasia now I manage to import the csv file (imported as a .txt file anyway) into my table by blanking all field except "field terminated by" - but it gives me another problem:

    some data are messed up, i.e. advertiser name appear in column refNumber and so on.... what's wrong again?

    Cheers
    Cheers
    YJ

  12. #12
    Dot Com Pennyaire

    Status
    Offline
    Join Date
    Jan 2004
    Location
    this month, Guatemala
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not sure how you ended up with a .txt file. Perhaps this is the problem. You really need it to be in csv format - if a comma is missing, then the data will end up in different columns.
    I used to have an open mind but my brains kept falling out.

  13. #13
    Registered User

    Status
    Offline
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Imported original unzipped csv file, still give me mess up columns.....

    Cheers and thanks a lot lakrasia for your time today - and to all other guys.
    Cheers
    YJ

  14. #14
    Dot Com Pennyaire

    Status
    Offline
    Join Date
    Jan 2004
    Location
    this month, Guatemala
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've sent you a PM to offer remote assistance.

    Alternatively, there's another way of doing it - I haven't tried this yet, but it sounds like a really good idea and I will be using it when I finish what I'm working on at the moment.

    http://www.a4uforum.co.uk/showthread...threadid=26166
    I used to have an open mind but my brains kept falling out.

  15. #15
    Registered User

    Status
    Offline
    Join Date
    Jan 2005
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by ukyellowpage
    Imported original unzipped csv file, still give me mess up columns.....

    Cheers and thanks a lot lakrasia for your time today - and to all other guys.
    This may help

    http://www.flatmysql.com/

    http://www.flatmysql.com/help/excel.htm

+ Reply to Thread
Page 1 of 2 1 2 LastLast


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2