I've used these excellent instructions to migrate several sites form my old webhosting co to my new webshosting co. With the last site I'm having issues. Importing to the new db fails with something like a permissions issue:
#1044 - Access denied for user 'myacct'@'localhost' to database 'oldacctname_joom'
I dont have same user name for the db on each side, that's for sure, but I didn't when migrating the other sites either. I don't see why it's referencing the old db name at all. I'm using the Import tab on phpMyAdmin (my ver is set up slightly different than the walkthrough). The user I'm logged in as does have all perms on the new db. I've tried many things at this point incl exprt as txt from orig. Just don't see why this one is balking.
Last edited by kalpax on Fri Jul 14, 2006 6:33 pm, edited 1 time in total.
Joined: Tue Oct 04, 2005 7:49 pm Posts: 84 Location: Beograd
I will have to ask the same question someone already did, but didn't get an answer.
What should we do with links and images in our posts? When we switch, every link will point to the old one. Would a simple Find and Replace solve the problem when running it on the database?
I turned it over to my hosting company and they were able to work it out..."I had to remove the "CREATE DATABASE" statements in order to get it to import". Now, I don't get that, the export process was 'rote', should have produced sql just like the other sites that I moved. Is the sql script supposed to have "CREATE DATABASE" statements in it? I know the instructions tell one to create the db manually and assign a user all perms...I'd like to figure out why this one varied from the others, but maybe it's not going to be possible.
Is there an updated thing on the steps you had because I've tried that recently and it didnt work, I get the same error as this dude here on this post:
MySQL said: Documentation #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT
Joined: Tue Aug 23, 2005 7:34 am Posts: 66 Location: Brisbane, Australia
I have remote site which I want to bring local for backup and to do some redevelopment work on. I've followed these instructions and eventually got it working, almost...
The backend admin section works fine and the front page loads okay, but none of the links off the front page work so I can't browse the site.
I get the error
Not Found The requested URL /N2B/content/view/81/96/ was not found on this server.
The remote site has OpenSEF running, but I've tried turning it both on and off on the local copy but that didn't help.
MySQL said: Documentation #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT
Take off with an editor all instances of "DEFAULT CHARSET = latin1 COLLATE = latin1_general_ci" in the dump.
Set these parameters when creating the empty database with phpmyadmin
_________________ Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1 Qui vult dare parva non debet magna rogare. --------------------------------- Joomla! Translation Coordination Team
Joined: Tue Oct 04, 2005 7:49 pm Posts: 84 Location: Beograd
visualbuffet wrote:
pyost, content will have to be fixed manually.
But why? I just checked my existing database with a lot of content, and found out that it would work fine. The web site is located at http://www.domain.net, so I exported the database and did a search on "www.domain.net". All the results notepad found actually are the ones that should be replaced if I were to switch to http://www.domain2.net. So what's the problem?
Relative urls are always better to me. Makes things easier. Gobal change of one url to the other is fine.
_________________ Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1 Qui vult dare parva non debet magna rogare. --------------------------------- Joomla! Translation Coordination Team
Using relative path is easy with JCE 1.0.4. Just a parameter to change in the bot. For images as for links to other articles or files to download. For anything which is in the images/ folder.
Quote:
Gobal change of one url to the other is fine.
means you can achieve this easily by editing the dump.
_________________ Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1 Qui vult dare parva non debet magna rogare. --------------------------------- Joomla! Translation Coordination Team
I would delete all the collate latin1_general_ci as well as all the charset=latin1 in the dump before query. This should be set for the entire db.
_________________ Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1 Qui vult dare parva non debet magna rogare. --------------------------------- Joomla! Translation Coordination Team
Open the dump with a text editor and mass replace it. Find/Replace all instances.
_________________ Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1 Qui vult dare parva non debet magna rogare. --------------------------------- Joomla! Translation Coordination Team
The mysql was different versions from website 1 and website 2. So when i exported the database, i had to check a export button saying: Mysql 40, since it was that version i'm using on website 2.
Thanks for helping me, infograf768
You do not have the required permissions to view the files attached to this post.
_________________ Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1 Qui vult dare parva non debet magna rogare. --------------------------------- Joomla! Translation Coordination Team
Joined: Tue Oct 04, 2005 7:49 pm Posts: 84 Location: Beograd
pyost wrote:
I will have to ask the same question someone already did, but didn't get an answer.
What should we do with links and images in our posts? When we switch, every link will point to the old one. Would a simple Find and Replace solve the problem when running it on the database?
I have just found out how stupid I had been! If you are changing the domain name, there is no need to worry about images and links in content items. When you create a link that points to a page on your web site, it containt the site URL, right? Well, Joomla! is so smart that it created relative URLs in the database in those cases. The same goes for images.
So, if you created an image with "www.domain.com/images/smth.jpg" as the source, in the database it will be stored as " I love Joomla!
8 ) In the box for "Structure" check the boxes for "Add DROP TABLE" AND "Add IF NOT EXISTS".
i did everyting through myphpadmin and was only getting errors when importing my db, and getting error 2 on my webpage.
after going back into my old db and exporting it again and checking these two options off, i was able to import it in with phpadmin and have it work, THANK YOU
I moved a site using the instructions posted on this site, as I have for many other sites previously. I carefully fixed all pathing in the config.php, and went to hit the site.
I had to change the name of the Db and the user name in order to move it, but fixed those as well in config.
So my question is this... Does changing the db name or user name in someway effect the secret word or password? Can't think of another reason I wouldn't be able to connect to Mysql (error code 2).
I'm getting the #2 error. this is the 5th time I have moved a Joomla site, and this is the first time I have had any errors.
my problem is the site was developed on a server with MySQL - 4.0.27-standard
and I am moving it to a site with MySQL - 4.1.18-standard
I have tried every solution in this tread, and have no other errors other than the This site is temporarily unavailable. Please notify the System Administrator 2
To make a local copy of my online site I have followed all the steps: - export then import the database - copy all the files - modify the configuration file
When I try to use the local site, the admin back end works fine, and everything seems alright (content, etc.).
However, the front end (127.0.0.1) doesn't work: the front page is displayed but without all the rest of the page. If I do "View page source", the first lines are:
Only the contentpane is displayed. Yet, the template is selected like it should be in the back end...
Do you know what is going on here?
Thanks a lot for your help, it's much appreciated!!!
Hey guys having all sorts of problems exporting my db from old server and importing to new server. http://www.pacc-nj.org/index.php check it out for yourself. Getting all sorts of friggin errors. It appears that the modules aren't working properly and the components aren't working. I uploaded for instance zweather from my old installation and goto the back end and click on zweather under components and nothing comes up, it just brings me back to the main screen. Granted i could reinstall everything however this is on a deadline and i would have to reconfigure everything, anyway around this? Why isn't it working?
Last edited by qwik3r on Tue Sep 12, 2006 3:56 pm, edited 1 time in total.
As I mentioned 2 posts above, I am having trouble migrating my joomla website from online to my local computer (so that I get a local copy to do some testing on).
And I really can't figure it out. I made sure that mysql and phpmyadmin are the same version on the online and local servers. I did the migration several times, and I always get the same problem: the admin back end works fine, but on the front end I only get the frontpage's content (without the menus, and anything else). In fact, if I do "View page source", it starts with:
are you getting any php errors on the page? What is your site's url? My transfer was a PITA because of the fact that my server didn't quite upload everything all in one shot so i had to keep going back and uploading modules and components etc. If i were you i'd grab smartftp if you don't already have it and reupload the components and modules folder and just select "skip all" when it asks you to overwrite that way you can be sure that those 2 folders are uploaded. But in addition to that (if it doesn't work) i would try to reupload the site again (sans those 2 folders) with the skip all ticked off. There could also be some other reasons, such as you not exporting the phpmyadmin correclty, GL.
joomlien wrote:
Hi again,
As I mentioned 2 posts above, I am having trouble migrating my joomla website from online to my local computer (so that I get a local copy to do some testing on).
And I really can't figure it out. I made sure that mysql and phpmyadmin are the same version on the online and local servers. I did the migration several times, and I always get the same problem: the admin back end works fine, but on the front end I only get the frontpage's content (without the menus, and anything else). In fact, if I do "View page source", it starts with:
are you getting any php errors on the page? What is your site's url? My transfer was a PITA because of the fact that my server didn't quite upload everything all in one shot so i had to keep going back and uploading modules and components etc. If i were you i'd grab smartftp if you don't already have it and reupload the components and modules folder and just select "skip all" when it asks you to overwrite that way you can be sure that those 2 folders are uploaded. But in addition to that (if it doesn't work) i would try to reupload the site again (sans those 2 folders) with the skip all ticked off. There could also be some other reasons, such as you not exporting the phpmyadmin correclty, GL.
Thx qwik3r for your reply!
I don't get any PHP error (the frontpage's content is displayed, but nothing else, and no apparent error), and my online site is just fine. It is the local copy of the site that doesn't work.
I narrowed down that it's likely a database-related issue. Indeed, I tried to create another blank website from scratch (joomla installation blablah), and then redirected the other llocal copy of my website to that new database, and it works well. Have I lost you? -> if I install a new website from scratch on my computer, then get rid of all the files but just keep the database, then use all the files copied from my online site with that, it kinda works...
So, it *seems* that the database that I transfer from my online server to my local one (using phpmyadmin SQL export and import) doesn't work properly, or at least I must be missing something...
Is there anything to configure within the database itself (like some path or directory)?
I really appreciate any help, I am getting a bit frustrated
Thanks!
Last edited by joomlien on Wed Sep 13, 2006 1:23 pm, edited 1 time in total.
I sorta had the same problem. If you install joomla from scratch on a new site, using the prefered method, uploading fresh files and going to yoursite.com/installation and do the preinstall check etc then it will create a new database, if you try to import an old database it won't work. What i did was i deleted the database that joomla made in phpmyadmin completely and then imported my old database. You could try that.
joomlien wrote:
qwik3r wrote:
are you getting any php errors on the page? What is your site's url? My transfer was a PITA because of the fact that my server didn't quite upload everything all in one shot so i had to keep going back and uploading modules and components etc. If i were you i'd grab smartftp if you don't already have it and reupload the components and modules folder and just select "skip all" when it asks you to overwrite that way you can be sure that those 2 folders are uploaded. But in addition to that (if it doesn't work) i would try to reupload the site again (sans those 2 folders) with the skip all ticked off. There could also be some other reasons, such as you not exporting the phpmyadmin correclty, GL.
Thx qwik3r for your reply!
I don't get any PHP error (the frontpage's content is displayed, but nothing else, and no apparent error), and my online site is just fine. It is the local copy of the site that doesn't work.
I narrowed down that it's likely a database-related issue. Indeed, I tried to create another blank website from scratch (joomla installation blablah), and then redirected the other llocal copy of my website to that new database, and it works well. Have I lost you? -> if I install a new website from scratch on my computer, then get rid of all the files but just keep the database, then use all the files copied from my online site with that, it kinda works...
So, it *seems* that the database that I transfer from my online server to my local one (using phpmyadmin SQL export and import) doesn't work properly, or at least I must be missing something...
Is there anything to configure within the database itself (like some path or directory)?
I really appreciate any help, I am getting a bit frustrated
Users browsing this forum: No registered users and 4 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum