Results 1 to 4 of 4

Thread: bad mySQL connection

  1. #1
    Join Date
    Feb 2009
    Posts
    43

    bad mySQL connection

    Hello,I am a novice webmaster. For two days, I cannot enter my site and make updates in its back office. Any attempt to access it give the following message appears: "bad connection mySQL. What is it? and what should be done. Please give some Suggestion Thank you for your answers

  2. #2
    Join Date
    May 2008
    Posts
    115

    Re: bad mySQL connection

    to connect to a MySQL database you need a login and password over an account in mysql is composed of the login and the address from which the account is allowed to connect, for example

    "my-account @ localhost"

    We must then specify the name of the database
    To summarize you need the machine name where is the base, often
    • localhost
    • login
    • Password
    • the name of the database

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: bad mySQL connection

    Quote Originally Posted by Ron1 View Post
    Hello,I am a novice webmaster. For two days, I cannot enter my site and make updates in its back office. Any attempt to access it give the following message appears: "bad connection mySQL. What is it? and what should be done. Please give some Suggestion Thank you for your answers
    You must check the config.php file to see if your coordinates are good and other systems

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: bad mySQL connection

    If you load the above PHP script to your webserver and everything works properly, then you should see "Connected to MySQL" displayed when you view the .php page.

    The mysql_connect function takes three arguments. Server, username, and password. In our example above these arguments were:

    • Server - localhost
    • Username - admin
    • Password - 1admin


    The "or die(mysql..." code displays an error message in your browser if --you've probably guessed it -- there is an error in processing the connection! Double-check your username, password, or server if you receive this error

Similar Threads

  1. Optimize the connection to the database in mysql
    By Bottlenecked in forum Software Development
    Replies: 8
    Last Post: 09-09-2010, 10:24 PM
  2. How to allow remote connection to MySQL
    By Gomeler in forum Software Development
    Replies: 5
    Last Post: 17-12-2009, 01:24 PM
  3. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  4. connection problem with MySql
    By Gefry in forum Software Development
    Replies: 1
    Last Post: 30-04-2009, 10:52 AM
  5. Mysql connection with java
    By Xena in forum Software Development
    Replies: 2
    Last Post: 24-04-2009, 03:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,026,248.74926 seconds with 17 queries