Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Posts
    138
    Plugin Contributions
    0

    Default issue with godaddy database connection

    Please go easy on me because I mention Go Daddy (I'm making the most of the resources I have available to me at the moment and if you get it set up right...grid & linux environment...they have been ok. And OCCASIONALLY you get a tech that seems to know a little bit)

    Situation:
    I was building our ZC1.3.9h site on another GD account. It is set up on a Linux server / Grid environment. Things worked fine.

    Now I am trying to transfer everything to our live site. It is currently a windows platform (which I'm thinking is not a cause for my problem) I need to stay on the window platform until i confirm everything is set up because our current site uses a MSSQL d-base that is not supported in a Linux environment.

    I moved all my files, exported d-base, and imported. System was broke. I did a GD one-click install in a sub-directory, and that one worked. I then pointed my manual installation to the GD one-click database and my install now works (admin and front end resolves). Point back to mine and nothing. The tables in GD one-click have a prefix of zen_ (and yes i updated the configure.php file accordingly for my scenarios). I later imported my tables (which have no prefix) into the GD d-base. My tables do not allow the page to resolve yet the GD install tables do? Any thoughts on what could be happening to make a simple export import not work? I did follow the instructions posted elsewhere in Zen-Cart regarding the options to click when exporting. I'd like to keep my format because the configure file states that the preference is without a prefix.

    Thanks
    ZC 1.5.5
    Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: issue with database connection

    I'm confused... what site is using a MSSQL dbase, and what are you trying to do with that database?
    20 years a Zencart User

  3. #3
    Join Date
    Jul 2011
    Posts
    138
    Plugin Contributions
    0

    Default Re: issue with database connection

    Quote Originally Posted by schoolboy View Post
    I'm confused... what site is using a MSSQL dbase, and what are you trying to do with that database?
    Sorry for the confusion. Our current live site is not Zen and runs off a MSSQL d-base. If I go ahead and switch that domain over to a Linux server, I would have to basically go ahead and kill our current live site. I would like to leave that site & MSSQL up and running until the ZC site is functioning on the same domain.
    ZC 1.5.5
    Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: issue with database connection

    Well... there is no real big issue with the dbase prefix. we have sites WITH and WITHOUT prefixes... and they all work just fine.

    If the dbase WITH prefixes works... then just leave it at that...
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: issue with database connection

    Here's what I've done in the past... DrByte will probably "scold" me for telling you this, but it's never failed me in the past.

    In your initial ZC setup, go to phpMyAdmin, and export the database as a screen-dump of text. (So you can see it in a scrolling textbox in phpMyAdmin.

    Highlight the whole block of text (or rather, sql) Use COPY <ctrl+c>

    Then, PASTE <ctrl+v> into a blank notepad file on your computer.

    SAVE AS a xyz.sql file, and make sure to set the collation as UTF8 as you save in notepad.

    Then, go to your RECENT database (the one with the PREFIXES) and MAKE A BACKUP.

    Then... DROP all the tables in it. (Remove them, so the dbase is empty).

    Then, open up that notepad sql file and grab all the "text".

    Go back to phpMyAdmin and click the SQL tab at the top.

    PASTE the sql into the input frame and click "GO"

    Tell me what happens.
    20 years a Zencart User

  6. #6
    Join Date
    Jul 2011
    Posts
    138
    Plugin Contributions
    0

    Default Re: issue with database connection

    It somewhat worked.

    I have messed around further and tried your technique (which helped speed up one process of removing the prefix by doing a find and replace in notepad). What I have been able to do is:
    1)Export to screen the working GoDaddy d-base
    2)Copy&Paste into notepad
    3)Find & Replace prefix
    4)Copy&paste into sql tab in My d-base

    Doing the above steps allowed the site to now resolve. However if I try to update the data with that from my zen-cart test site...it crashes again. I'm still testing different methods for getting the data into the working system, but I really curious as to why this would be happening to possibly prevent future issues.

    Thanks for the help b/c that is definitely a good trick to know and hopefully Dr. Byte won't scold you too bad.
    ZC 1.5.5
    Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: issue with database connection

    Quote Originally Posted by schoolboy View Post
    Here's what I've done in the past... DrByte will probably "scold" me for telling you this, but it's never failed me in the past.

    In your initial ZC setup, go to phpMyAdmin, and export the database as a screen-dump of text. (So you can see it in a scrolling textbox in phpMyAdmin.

    Highlight the whole block of text (or rather, sql) Use COPY <ctrl+c>

    Then, PASTE <ctrl+v> into a blank notepad file on your computer.

    SAVE AS a xyz.sql file, and make sure to set the collation as UTF8 as you save in notepad.

    Then, go to your RECENT database (the one with the PREFIXES) and MAKE A BACKUP.

    Then... DROP all the tables in it. (Remove them, so the dbase is empty).

    Then, open up that notepad sql file and grab all the "text".

    Go back to phpMyAdmin and click the SQL tab at the top.

    PASTE the sql into the input frame and click "GO"

    Tell me what happens.
    The biggest problem with doing copy+paste like that is the risk of characters being incorrectly translated between character sets. A properly executed export is often safer. Granted, if NONE of your data uses any extended non-english characters then it's somewhat moot, and of course then there's no reason that the export-to-file wouldn't work exactly as we recommend.

    The issues at hand here, making any of these suggestions remotely necessary, are caused by the inferior tools provided by the host.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. connection to my database on godaddy
    By pixel1987 in forum General Questions
    Replies: 7
    Last Post: 10 Aug 2015, 01:47 PM
  2. v151 issue with transfer to godaddy
    By OCHSweb in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 13 Dec 2014, 06:23 AM
  3. v150 Database Setup Issue: Connection to Database failed, on iPage
    By tempoart in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Jul 2012, 07:43 AM
  4. Replies: 4
    Last Post: 2 Jan 2012, 10:46 PM
  5. GoDaddy database connection error - HELP!!!
    By cinbou in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 14 May 2008, 09:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg