Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering phpMyAdmin 3.4 for Effective MySQL Management

You're reading from   Mastering phpMyAdmin 3.4 for Effective MySQL Management A complete guide to getting started with phpMyAdmin 3.4 and mastering its features book and ebook

Arrow left icon
Product type Paperback
Published in Feb 2012
Publisher Packt
ISBN-13 9781849517782
Length 394 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (27) Chapters Close

Mastering phpMyAdmin 3.4 for Effective MySQL Management
Credits
About the Author
About the Reviewers
www.PacktPub.com
1. Preface
1. Getting Started with phpMyAdmin FREE CHAPTER 2. Configuring Authentication and Security 3. Over Viewing the Interface 4. Creating and Browsing Tables 5. Changing Data and Structure 6. Exporting Structure and Data (Backup) 7. Importing Structure and Data 8. Searching Data 9. Performing Table and Database Operations 10. Benefiting from the Relational System 11. Entering SQL Statements 12. Generating Multi-table Queries 13. Synchronizing Data and Supporting Replication 14. Using Query Bookmarks 15. Documenting the System 16. Transforming Data using MIME 17. Supporting Features Added in MySQL 5 18. Tracking Changes 19. Administrating the MySQL Server Troubleshooting and Support Index

Troubleshooting


Over the years, the development team has received numerous requests for support, and many of them could have been avoided with a few simple verifications.

System requirements

A section at the beginning of the Documentation.html file (which is included with phpMyAdmin's software), discusses system requirements for the particular phpMyAdmin version we are using. It's crucial that these requirements be met, and that the environment be properly configured so that problems are avoided.

Some problems, looking like phpMyAdmin bugs, are in fact caused by the server environment. Sometimes, the web server is not configured to interpret .php files correctly, or the PHP component inside the web server does not run with the mysql or mysqli extensions. MySQL accounts may be badly configured. This can happen on home servers as well as on hosted servers.

When we suspect that something is wrong, we can try a simple PHP script, test.php, which contains the following code block, to check if the PHP component answers correctly:

<?php
echo 'hello';
?>

We should see the hello message. If this works, we can try another script:

<?php
phpinfo();
?>

This script displays information about the PHP component, including the available extensions. We should at least see a section about MySQL (proving that the mysql extension is available), which gives information about the MySQL Client API version.

We can also try other PHP scripts that make a connection to MySQL, to see if the problem is more general than just phpMyAdmin not working. As a general rule, we should be running the latest stable versions of every component.

Verifying the base configuration

We should always double check the way in which we performed the installation, including correct permissions and ownerships. Typos may occur when modifying config.inc.php.

Solving common errors

To help solve a problem, we should first pinpoint the origin of the error message. The following are the various components that can generate an error message:

  • MySQL server: These messages are relayed by phpMyAdmin, which displays MySQL said followed by the message

  • PHP component of the web server: For example, Parser error

  • Web server: The error can be seen from the browser, or in the web server's log files

  • Web browser: For example, JavaScript errors

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image