Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5531

the_burning_head on "wordpress database tables gone from phpmyadmin and impossible to repair"

$
0
0

Hello everyone,

I ran through the forums but didn't find an answer to my issue so here I request for help. First thing to know is that I am quite new to programming/coding so my issue might seem easy to some of you but for me it is starting to become a nightmare.

I'll try to be chrystal clear.

So, I created a website locally with wordpress using XAMPP. Everything worked like a charm until I decided to migrate my website to the "simple hosting instance" in have on http://www.gandi.net.

Since it is the first time I design and publish a website on-line I followed a tutorial on how to do so.

First thing I did was to export my wordpress database into a "wordpress.sql" file. I then changed all "localhost" references to my domain name "www.emptytaxii.com". I was then advised to import the database to my host server database... I made a mistake there since I imported the database back to my local mysql but in a database I named emptytaxi.

I then uploaded all my htdoc/wordpress/ folders to /lamp0/web/vhosts/www.emptytaxii.com/htdocs thanks to FILEZILLA.
and changed wp-config so that it would link to my new database (I was still mistaken there).

I then connected to http://www.gandi.net and following the documentation I reaalized that I still had to import the database on the server. I first tried to do so but I had an error message regarding the collation. I apparently created my database with "utf8_unicode_520_ci" but gandi's server would only support "utf8_unicode_ci". I was then advised to replace every references to "utf8_unicode_520_ci" by "utf8_unicode_ci" in the wordpress.sql file... It worked and i managed to import the database online on a database I named wordpress.

By the time I have dropped the "emptytaxi" database I created "offline".

So, when I thought everything would work just fine... well, hell felt upon me.

1. I checked i f my website was online with the domain name I have registered http://www.emptytaxii.com but the site is completely messed up and none of my theme layout appears. + Some content is missing and some content was added (like a contact form or some footer with copy right). While trying to access it from another machine I am redirected to http://www.tumblr.com where I used to have a blog with the same domain name.

2. Second issue I noticed is that the "wordpress" database I created on mysql in order to create my website locally disappeared from phpmyadmin...

Actually the database still exists on the left sidebar and when I click on it the tables appear in the dropdown menu. But in the main frame there is no table and it says "no table where found in this base" (directly translated from french).

when I click on any of the sidebar table I have this kind of message:

SELECT prefs FROM phpmyadmin.pma_table_uiprefs WHERE username = 'root' AND db_name = 'wordpress' AND table_name = 'wp_commentmeta'
--------------
MYSQL Answered

#1142 - SELECT command denied to user ''@'localhost' for table 'pma_table_uiprefs'

Ok. So I tried to repair the database thanks to a dropdown menu that is supposed to appear when I select the database but there is not dropdown menu for this database.

So I logicaly decided to delete the database in order to import it again but It doesn't work and I receive this message:

#1010 - Error dropping database (can't rmdir '.\wordpress', errno: 41)

+ the collation is latin1_swedish_ci while I specificaly created my database with utf8 unicode ci.

I thought that the wordpress/sql file might be broken somehow but it works fine since I managed to import it in a new database that I named "test". I change wp-config so that I have that line:

define('DB_NAME', 'test');

but it doesn't work either.. and I cannot access my dashboard located at localhost/wordpress/wp-admin ... I now receive this message:

404. That’s an error.

The requested URL /wordpress/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwordpress%2Fwp-admin%2F&reauth=1 was not found on this server. That’s all we know.

So basicaly I cannot acces my website online... nor offline and I am kind of stuck here.

From what I read in loads of forums, it seems that there is always a solution to be found so I hope we'll sort things out here.

I am open to any suggestion.

Thanks to anyone who can shed some light on this issue.


Viewing all articles
Browse latest Browse all 5531

Trending Articles