Why my database disappeared then appeared and now again is disappeared? - mysql

I am on cpanel, and working with phpmyadmin.
I create a subdomain, then I create a database, and I changed some of my settings.(2days ago)
But now when I login to cpanel, I see that there is something just like ctrl + z! I mean The only database that was created 5 month ago is now remained and the database which I create it 2 days ago is NOT in my databases list! + I changed the menu settings(put the 'databases' menu on the top, put the 'preferences' menu on the bottom of the cpanel home page and ...) but now there are just like the default cpanel setting.
What's the problem?
I am 75% sure that my cpanel login is NOT hacked.
I've changed the cpanel password but not the phpmyadmin password.

You may only be allotted one database with your webhost. Contact their support.

Your host may have restored a backup. Ask them.

I had something similar occur with my vps account recently. While my databases show up within the mysql database menu list they're no longer available in the backup menu. I tried changing themes and it corrected the problem. The theme I had the problem with is X3.
In my situation I believe the theme must have been broken due to a recent control panel update as I noticed the login page has changed drastically but I'm not sure if that's the same issue you're dealing with.
To clarify, I changed the theme within WHM not cpanel. From X3 to X2. X2 is apparently depreciated so this isn't a long term fix to whatever the underlying issue is; just thought I'd share in case it helps you out.

I found out the problem.
I contact with the host provider, and I found out the problem. He said according to the internet problem in your place and also our previous actions to change the server, your host is sometime, loaded by the new server, and sometime by the previous one! So when I create a database from my computer it connect to the first one, then you browse web or again I check the website from another place, then I connect to the second server, and see that there isn't any database!
I don't have much experience, so I don't know, this answer is true or just for kidding!

Related

How do I add a Remote Connection to Ionos Database for ExcelforMySQL?

I have a database that I have created for a friend of a mine that he would like to store his data and work directly from on a daily basis. Recently I came across ExcelforMySQL and thought this would be a perfect AddIn for him to use.
I have successfully linked the AddIn to the database (Xampp Local connection) and this loads up fine but when I move the database onto a webserver that I have with ionos(1and1) and enter the Host Details along with the Username and Password, I get the following error:
Connection attempt failed.
Unable to connect to any of the specified MySQL hosts.
When I click Show Details:
All it says is One or more errors occurred.
Would really appreciate it, if somebody could advise on how to fix this, as I really want to be able to work live on the data and update the changes from the user directly in Excel if possible and this addin looks like it does that.
If anyone has any other suggestions then I am happy to hear them as not fussed as what is used as long as it works.
Thanks
I had a similar problem to yourself with a number of my own sites/DB's hosted on Ionos. After a bit of searching through their help they state that access from outside your Ionos package is not possible. Unfortunately we're stuck with their hosted version of PHP My Admin in the control panel.
Although I have found that MySQL-front works great and bypasses the Ionos restrictions. Google is your friend...
Maybe a bit late for you but for others who come across this question as I said google is your friend...

Wordpress theme pages have disappeared after host database server change

A friend of mine got in touch because his wordpress site was showing "error establishing database connection" (the website has been working for 2 years up until now). I checked out his config pinged the database IP and found it timing out. I told him many times he needs to contact his host but he never knows what i'm on about so gets frustrated and just expects me to work magic.
Anyway i visited an address i got sent by i assume the dev/previous dev which took me to phpmyadmin could log into the database, all data is still there, great.
i cannot get the ip as he wont contact the host. so i tried the IP of the phpmyadmin site, no luck (i assume its some sort of reverse proxy as i believe he has shared hosting)
so i just try the 0.0.0.0 meta-address. this works fine
i also notice the database name, user and password has been changed by someone since then. so i plug these new credentials in. Visit the website, great its back up.
however when i visit the site it makes me go through the "wordpress install" which i find weird as i assumed the website would just work. the site just shows the default wordpress page. his website is now gone. i don't use wordpress because its wordpress. so my knowlage is now very limited at this point. Iv looked at the database and i can see in the {websitename}posts table that all his content is there still. for example all the paragraphs for the services he provides, image links etc. i look in wp-content/uploads/2018/01 and all the pictures the website had are still there.
When i go to the wp-admin UI and click on pages tab, there are no pages. all his previous ones are gone. i go to media tab and there no images i go to appearance and activate the theme that his dev used. still nothing. its as if its a fresh install.
as all his content is still i the database and all the files like images are still on the server etc. there must be a way to get his custom pages back?
i'm not sure when he last had someone touch wordpress or any code but is it safe to say the hosts making this change and whoever changed the database name and user is to blame? (he is going to want to know what went wrong)
if its any sort of help here is the theme that is used
any help is much appreciated, thanks
UPDATE
i can see in the {sitename}posts table the post_title column has the name of his pages in post_status is publish or inherit comment_status is closed ping_status is closed

Switching hosts, Moving databases, but having trouble

So I do mainly design-based work for a small company. Graphic/Web (more so advertising). I have maintained and updated their decent-sized website for awhile now, but now we are switching hosts.
I have been asked for passwords to the wordpress blog databases, as they don't have them (neither do I). With that, I was asked to check the web configurations and look for database connection strings with the passwords. If not we'll have to reset them. I can setup wordpress blogs, write HTML, CSS and overall design - but databases and backend stuff is not my forte.
Can someone give me an idea of what it is I should be looking for, and where?
You should find your database password in the WordPress configuration file, wp-config.php. This is usually located in the root of the site but it may have been moved outside the web root.
Can you gain access to the FTP? Assuming so, look for a file on the main area where you have wordpress called wp-config.php. You'll be able to find your db connection stuff in there.

Creating - importing database issue

I'v made a huge mistake. It's 5 am for me currently, so i didnt think it trough. I'm complete newbie.
Basically, what i did is this. Bought a vps to learn , added site and all configuration. When i was done, it was the next step to add some posts. Since i do have from my old site a backup of mysql i decided just to import it and have all posts in a minute.
I created a new database with the same name as of my old database and hit import. Problem is it ruined everything. My url points to old url (from old database and asks for old site url).
How i can revert this or fix it whithout deleting a whole vps and starting over.
Thanks
Are you using CPanel ? Are you keeping the previous database backup file somewhere.

Previewing dedicated server MySql not working

I am moving a clients website from one dedicated server to another. (UK2.net to Fasthosts.co.uk) and would obviously like to check everything has transfered correctly before making the final switch to avoid any downtime.
I have successfully transfered everything across such as MySql database, webpages etc. I have set-up the CPanel for the user as well and so now would like to check everything is working. I have manually gone through a lot of the CPanel to check things like the page locations, database etc but will now look at the physical side.
I know that I can view the site live in-browser following with http://xxx.xxx.xxx.xxx/~username (substituting IP and username where needed) but this is where I encounter my problem. The site shows up fine but when clicking to a specific page some of the MySql queries are not working correctly, basically data is not showing up where it should be and I am wondering if this is just because it is a preview rather than the full thing or is there more to this? I have not altered anything of the website just transferred it across to the new server.
I know that this seems a bit long-winded to explain my problem but felt that it needed some back story! Thank-you in advance