Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
870 views
in Technique[技术] by (71.8m points)

xampp - phpMyAdmin error: Table doesn't exist in engine

I installed XAMPP today on Ubuntu 14.04. I tried to create a new database in phpMyAdmin but received the error

#1932 - Table 'phpmyadmin.pma__tracking' doesn't exist in engine

So I Googled a bit and I saw I should import create_tables.sql located in /usr/share/doc/phpmyadmin/example (if I remember correctly, but I couldn't locate it there, but I did locate it in /opt/lampp/phpmyadmin/sql. So I tried to import it, but I receive the same error.

First I installed XAMPP 5.6.14 / PHP 5.6.14 twice, but no change. Then I installed XAMPP 5.5.30 / PHP 5.5.30, but still no change. I also tried changing the config.inc.php file (then I stop XAMPP and start it again).

Note: I can see the phpmyadmin database and if I expand it I can see that all the tables that are giving problems, do exist: Error when importing and phpmyadmin database expanded

I have no idea why this is happening or how to solve it. Can anyone please help?

PS: I have seen that this question has been asked before, but none of the answers I found worked for me.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Since none of the solutions worked for me I did the following:

  1. Open Nautilus (Linux's file explorer) with root privileges: sudo nautlius.
  2. Navigate to the mysql directory: /opt/lampp/var/mysql.
  3. Delete the phpmyadmin folder. This is the phpmyadmin database in phpMyAdmin
  4. Copy the content of the create_tables.sql (found at /opt/lampp/phpmyadmin/sql) file to another one on the desktop called sql.sql
  5. Open the MySQL command line interface: /opt/lampp/bin/mysql -uroot -p
  6. Then in the mysql promp I ran the script to create the database phpmyadmin with source /home/user/Desktop/sql.sql

That solved the problem for me.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...