Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2008

    PHPMYADMIN problem

    I have been working on the website named which gives the error message saying Database Error: Unable to connect to the database:Could not connect to MySQL

    I beleive for above error most of all will suggest to enter the databasename, database username and the password correctly at CONFIGURATION.PHP file but i find that the above information has been put accordingly and is 100% correct whereas the problem where i find is inside PHPMYADMIN if i clickd on any table name it does not give except giving error message. I haven't touch the database from my side it was working perfectly before but all of sudden i find the problem inside phpmyadmin. Therefore i need to know if this is a problem of webhosting ?

    Looking forward to hear from you all.

  2. #2
    Join Date
    May 2013
    What is the exact error you get while DB connection using PHP? MySQL connection issues can be an issue with your database or credentials you use or lack of privileges or MySQL is not running / lack of MySQL PHP module ( there are other possibilities as well, like connection throttling / user ) .

    1. Credentials: Make sure you use the proper credentials to access your DB. You can write a simple PHP script to test DB connectivity.

    2. Privilege : Make sure you have added privilege to access the database for the user you use. Otherwise it will give back error.

    3. Database: Run repair / optimize database from your end ( possibly via any control panel if you have any )

    4. MySQL not running or lack of PHP module: You can't do anything on this until you have root access. If you have root, take corrective actions.

    If all the above steps went fine from your end , contact your host with the exact error message. They will be able to help you.

  3. #3
    You did not provide exact error which you are receiving in your PHPMyAdmin. Are your table carshed? If so you will have to repair it from PHPMyAdmin. Also, if you are on shared hosting server, you can contact your host as well.
    || Web Hosting Blog - Web Hosting security & latest web hosting industry Announcements
    || Web Hosting Discussion - A Web Hosting community

  4. #4
    This error generally seen in PHPMyadmin if tables are crashed or there are some issues with MySQL services on server, contacting webhost can resolve this issue quickly

  5. #5
    Join Date
    Dec 2007
    For testing, can you install another small script which requires MySQL.

    Most common cause of such error is explained by @nixtree above.

    If you are on a shared hosting, contact your hosting provider.
    YagHost - Pure SSD Hosting | Since 2007 | Average Response Time: 15 min
    Web Hosting | Reseller Hosting | Managed VPS Hosting
    99.9% Server Uptime Guarantee | 24/7 Rapid Response Tech Support | 30 Day Money Back Guarantee - Web Hosting Tutorials

  6. #6
    You created database from cpanel and gave enough permission for the user?

  7. #7
    You must check your hostname for database, check it's localhost or something else.
    If you need a web developer from Serbia - check: Web design Belgrade
    And check my page for SEO optimisation: SEO Belgrade

Similar Threads

  1. getting problem with phpmyadmin
    By mydotcombuddy in forum VPS Hosting
    Replies: 1
    Last Post: 10-02-2010, 12:22 PM
  2. Help! PhpMyAdmin Problem
    By TrophyHost in forum Hosting Security and Technology
    Replies: 2
    Last Post: 11-06-2005, 06:11 AM
  3. phpmyadmin Problem
    By jonez in forum Hosting Security and Technology
    Replies: 2
    Last Post: 08-10-2005, 07:46 PM
  4. PHPMyAdmin Problem
    By [inx]Olly in forum Hosting Security and Technology
    Replies: 15
    Last Post: 10-25-2003, 10:04 AM
  5. problem with phpmyadmin
    By staff in forum Dedicated Server
    Replies: 5
    Last Post: 08-28-2002, 08:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts