can't connect my old database to my new hostinger account - php

So, I had an old Hostinger account with all the information of my web page with some company that helped me with all of that, but we split and I created a new Hostinger account.
I tried everything to download the database I had in my old account, but nothing works, my WordPress now is disconnected, I tried to follow tutorials, uploaded my information whit FileZilla but nothing, my webpage is lost, I even uploaded mysql with php but it won't connect to the server!!
Please help!!!! What could I be doing wrong? I am so worried that I am gonna have to start over my web page, it took me a lot of time to finish it.
Thank you

This may be the wrong path on the server. You can try to install a clean WordPress on your site, and then transfer the whole site using this plugin or manually theme files, plugins, media using ftp manager and finally the database using this plugin.

Related

can I host a WordPress website in my local host using the wordpress files

I had a WordPress website working just fine . I downloaded the WordPress website files from cPanel , the files are :
bunch of php files , and three folders
wp-admin
wp-content
wp-includes
I really need to see the website design and content
any ideas ?
In short, you cannot. Because you don't have everything you need for it. Wordpress utilizes a mySQL database to store the actual content of the website.
So the first thing you need to do is go and download your sql information. This is fairly straightforward, but can be a pain if you're not familiar with the tools.
For example: if you're using Cpanel on your webhost, go to "phpMyAdmin" and then click on the database that starts "wp_" (note, if you have multiple wordpress installs, you'll have to figure out which database is the one you're looking for. try looking in the options table of each database for a sitename.).
Once you've clicked the database, click on Operations, and then Export.
You'll be able to download a sql file from there that you can import into a sql database elsewhere in order to view it on your localhost. EllPro is right, using XAMPP or MAMP would allow you to do this. Same deal but in reverse to import the SQL information.
Problem is, now you need to go edit that database to tell it to point to the new location, which is more than I can just type out here.
Here's a link with a lot more information: https://wpengine.com/resources/migrate-wordpress-site/

hosting an old part of a php site on a subdomain?

This is my first post here, I'm also kinda new to web dev.
I made a new site for a client an changed the hosting of the domain.
But he wants an old part of the side witch is an catalog with sorting functions made with php behind a login. I want to host this on a subsite of the hosting. Can I "copy-paste" this catalog with ftp? i have a copy of the database and the full file of the old website. I know that the php version is out of date and I'm having trouble how to find a way to update this.
When i upload the site i get a permission error trying to visit it.
When I try it locally i get to the login screen and the first page of the catalog, but when i try to select a category I only get a white screen.
I already want to thank you all for the help.

How to setup MySQL for PHP on an already hosted website?

I hope you are doing well.
We have fully developed our website (this means everything, the domain, hosting, design is all done and the website is live and working). We chose Bluehost (bluehost.com) as our Hosting and Domain provider. Here's a snapshot of the panel I see (just in case for knowing the available menus) :
Now we have some PHP pages with us, and we need to integrate MySQL with it. I have seen some videos regarding this, but all of them were for localhost & XAAMP. I just need to know how to connect MySQL with a published website, so we can code the database storing section in our PHP file.
Can you suggest any tutorials/articles reffering this problem?
I hope you understand my query. Any help is appreciated!
Thanks 😀
First you must create a database then somewhere in the menu-settings the blue host gives you information about username and password , then modify your php database connection file with host(probably is localhost),username,password,and database name

After migrating website rederection to old website

I just migrated my website and it keeps rederection to another domainname of mine. Before I did this I open de SQL file and replaced the old domain with the new one. And imported it this in a new database. After that I configured the wp-admin. So after done this it should work right? In can access the website through wp-admin and that seems to work, but when I just type in the URL it rederection to another old domain of mine.
Anyone any idea how to fix this?
Seems like you missed some records in the database. The best approach is to use a tool like https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
If you download this free tool and upload to your server then it does a batch find-and-replace across every single table in your Wordpress database.
So, for example, replace http://www.example.com with http://sub.example.com
You can do a dry run and it will show you all the replaces that it will make. Once you're happy then click the "live run" button and all the changes are made.
I use this tool all the time when I am moving a site from my local machine to the live server. I also use the exact same approach when migrating a site from http to https

Moving old wordpress.com site stats to a self hosted blog

I recently moved my old wordpress.com blog into self hosted blog with a my own domain name. So far I have done these things.
transferred my old articles and posts.
installed and activated the Jetpack plugin.
transferred my old blog followers with the help of wordpress support team.
And now I want to get transfer my old blog site stats into new one. Is it possible to do so? At least is there a work around for that?
Thanks in Advance
According to my research, albeit not too in-depth, the vast majority of results seems to point to this not being possible.
Please see -> here <- for more information.
Good luck!
Personally I do not use Jetpack for stats but digging into jetpack it seems that the stats are transferred based on the domain name.
Reference:
http://en.forums.wordpress.com/topic/moving-jetpacked-wporg-installation-to-another-site
So technically as long as you have the same mysite.com address it should retain the stats.
As for transferring wordpress over to your own server, I have done this a couple times and the one that seems to work the best for me is this process.
From Old Server:
Export MySQL database
Copy the whole file directory
From new Server:
Install a copy of Wordpress on your server (just to create the DB and file structure)
Empty the newly created MySQL DB and import the database from the Old Server.
Copy/Replace all files from the old server to the new one except for wp-config.php (since it has new credentials)
Lastly I go into wp-admin -> Settings and save the permalinks to have it resetup the .htaccess
Hope this helps.

Categories