Issue importing wordpress db into godaddy - php

I have a local working Wordpress site and now I'm trying to import the db on a site hosted in Godaddy but it's telling me it can't connect to the database.
Basically I need db name, user and pass in the wp-config and I created manually the db in Godaddy to make sure the table prefixes are the same. Also, Godaddy won't take localhost in the wp-config, you have to use their ip address with a port, something like: 127.0.0.1:1234. The only thing I haven't checked yet are my privileges. Not sure what the defaults are in Godaddy.
For those Godaddy users, Am I missing something? Thanks.

don't upload your local wordpress database like that!
When you create articles, post, pages, etc locally with wordpress it fills your database with your local links. Even if you push it to your new godady database, all the links won't work.
Here is what you have to do:
Create a new database in godady (done)
Create a new user and password for the db with all the priviledge (you have to this, very important)
Upload and install wordpress to your new domain (follow the install tutorial)
Register your dbname, user and password (localhost will work as the db is one godady, but you can put the IP)
Upload your local theme to the new domain (update only the theme, uploads and plugins).
If needed, set up the htacess and permissions to be able to upload files
Download WP Migrate DB on your local project and export the db with your production website info. If you are unsure, install the plugin on the production site too, simulate an export and copy the info to your local project
Upload the migrate database to gadady and then rock'n roll =)

Related

how to Configure WordPress with another database?

As WordPress uses a wp-config file for connecting with the main database, and usually the database server is hosted on the same platform. But I want to use a third-party service or database provided by another hosting platform.
For example,
The website is hosted on Siteground and it will use database services from Bluehost.
I have tried this by setting all the details in wp-config file,
dbname
username
Password etc.
but I'm facing Error Connecting With Database. Could you please suggest to me, Is it possible with WordPress or what are the other ways?

Trying to connect local wordpress site to a remote db

There is a site at my job that has only been maintained by 1-2 developers for a while but as more developers are being added to it we want to implement git. The workflow we're looking for has everyone using a local copy that is connected to the same remote database. We can all push and pull code as needed while any database changes would be shared that way.
I'm running into a weird issue where many files are refusing to load or clicking on any link results in a redirect to the xampp dashboard.
I downloaded xampp and created a directory in htdocs called local_test. I downloaded all the sites files into that directory with ftp. Grabbed the dbs info from the host and whitelisted the outside ip address on the host.
I went into wp-config.php and changes all the db values so it connect correctly. Plus I added:
define('WP_SITEURL', 'localhost/local_test/');
define('WP_HOME', 'localhost/local_test/');
At first I was convinced it was a db issue, but I can connect to the database remotely just fine using mysql workbench so I doubt it's that. The footer and the header show up, just not much of the content in between and like I said whenever I click on a link it redirect to the generic xampp dashboard.

WordPress site isn't working after I migrated site - changed site address (URL)

I migrated from my local computer to my live server using Duplicator. When I switched over, my Wordpress Address (URL) was http://107.343.442.344 - my IP address - and the Site Address (URL) was http://nameofwebsite.com. Everything appears to be working just fine.
However, when I add an item to my cart and try to delete it, it doesn't remove the item. I check the console and there's a failed AJAX request. It's requesting information from http://107.343.442.344. So, I change the Site URL to http://107.343.442.344 and then the everything works just fine. However, now I can't go to my front page.
I tried making these changes to the database (WP-Options), but nothing works.
Does anyone know what I can do to correct the problem. I've contacted WooCommerce, but they're taking forever.
My site is not currently up, so you can't go to it.
Easiest way how to properly migrate your site from localhost to server:
Copy all your local site files to web server
Install and activate "WP Migrate DB" plugin to your local site, it's free and got all functionality you will need.
After "WP Migrate DB" activation you will find it under "Tools" > "Migrate DB". Open "Migrate DB", there will be empty "Replace" block with two fields which you need to fill (look at the picture below).
These two fields are only one you need to fill, after that click on "Export" button and plugin will download mysql database.
Login into your hosting cPanel (or any other webhosting management app if your hosting doesn't provide cPanel, for example, ISPconfig etc.) and create new database or replace old one with that which you just created with "WP Migrate DB" plugin.
Open and edit wp-config.php file on your public_html folder on webserver, replacing database name and other authentification credentials (change database name, database user and password which you created in cPanel) and save this file.
Done, enjoy. :)
i think you database is not migrate properly please try again with wp migrate db plugin or search replace file , if problem still appear then check the serve file and folder permissions
So I found out what the problem was. I was using VHS Host to redirect the IP address to my new server. Once I changed the nameservers to point towards my new server, it worked.
Thanks to everyone who posted a response. I really do appreciate it.

WordPress : setting up wordpress on live server

I am transferring WordPress theme from one server to another, the other developer provided me
1- all the files from public_html folder
2- exported SQL file for site to be transferred
now this is what I did, I did upload all the files to public_html folder in new hosting, created a new database and assigned it a new user with all privileges and updated wp-config.php
I've to install wordpress in my server. Now confusion is that when I try to install wordpress its creating a database and once i am installed I've 2 databases one that I imported one that wordpress got during installation and I am not sure which one to link with wp-config.php please help me with it how do I manage this problem
You should run the wordpress installer in your new live server, let it create the database, and only export the tables of your previous server's database and import it in the new.
Note that there might be entries in the database that have urls with the previous host (if both your servers have the same host it won't be an issue).
After you create the database, restore it from the backup of the database you have using PHPMyAdmin
Make sure the domain name on the database is correct, I think you need to change it on wp_options table (2 places)
Should work fine, if not, send me a chat message
if you have all content from publichtml, and you have some domain as before, you do not need to reinstall it.
Import database, update the wp_config.php, copy all files from publichtml in your new document root of the webserver and you should be done.
Export database from current installation.
Upload all files to public_html folder.
Install wordpress.
(During installation, keep credentials same as the previous installation).
Once installed.
Go to phpmyadmin, find newly created database.
Select all tables, Drop all of them.
Now import previous database.
You're done !

Trouble migrating WordPress from local server to host

I'm having trouble migrating a Wordpress site I've been working on from my local machine onto a host.
I've been through the documentation and as far as I understand, I have to:
Export the wordpress database from my local server.
Edit the wp-config.php file to suit my target server.
Change the URL's in the settings to suit my target server.
Import the database on my target server and move over the adjusted wordpress installation onto my target server.
I can do all of this, but my there seem to be some problems: in my hosts phpmyadmin I can't view or edit any users and neither can I create any databases (there's no option for it). When I try to import a database I get an error: #1046 - No database selected.
What do I not know/doing wrong?
If importing a database, you need to create one first with the same name, then select it and then IMPORT the existing database to it.
I can do all of this, but my there seem to be some problems: in my hosts phpmyadmin I can't view or edit any users and neither can I
create any databases (there's no option for it).
If you're going through CPanel, you won't be able to add a database directly through PHPMyadmin. You should go to your host's home page and look for some wizard to create a database. (it should be next to the PHPMyadmin link.
Alternatively, for moving wordpress, You can install wordpress on your live site, then export your localhost content via Wordpress's dashboard and then import it on the live site.
This article on Moving Wordpress will also be helpful.

Categories