zoukankan      html  css  js  c++  java
  • Drupal Installation:Failed to connect to your MySQL database server

    The following error must be resolved before you can continue the installation process:

    Failed to connect to your MySQL database server. MySQL reports the following message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond..
    • Are you sure you have the correct username and password?
    • Are you sure that you have typed the correct database hostname?
    • Are you sure that the database server is running?
    For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
    • To start over, you must empty your existing database.

    Note:

    *I am able to access the current drupal db via SQLyog or phpmyadmin.

    *I'm using Vista Business.

    *PHP+MySQL+IIS

    *Server Status says everything's okay

    Cure:

    To fix this problem edit your hosts file (C:/Windows/System32/drivers/etc/hosts) and uncomment the line:

    CODE
    127.0.0.1   localhost

    DO NOT uncomment this line:

    CODE
    ::1    localhost

    As it will take priority and something about the system (not sure which part) doesn't like that.

  • 相关阅读:
    Python循环语句
    Python简单的语句组
    Jedis 之 初始<一>
    微信小程序登入流程
    微信小程序发起请求
    django数据库迁移时候异常
    Git常用命令总结
    微信小程序自定义组件
    POJ3345 Bribing FIPA
    POJ1947 Rebuilding Roads
  • 原文地址:https://www.cnblogs.com/jiahello/p/1734270.html
Copyright © 2011-2022 走看看