Closed Thread
Results 1 to 3 of 3

Thread: [C#]MySQL] Host '****' is not allowed to connect to this MySQL server

  1. #1
    ZaroX is offline Newbie
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    [C#]MySQL] Host '****' is not allowed to connect to this MySQL server

    Hello,
    First of all, I'm new with MySQL and have a question.
    I tried to connect C# to MySQL but I got an error.

    This is the important code:
    Code:
                connection.ConnectionString =
                "server=censored.com;"
                + "database=censored;"
                + "uid=censored;"
                + "password=censored;";
                connection.Open ();

    Error message:
    i444.photobucket.com/albums/qq162/JuniorJoost/error-1.png

    My question is: What did I do wrong? And how can I fix it?

    Hope that helps.

    Yours sincerely,
    Rutger Rauws.

    P.S. I apologize for my bad english.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Aug 2007
    Location
    Gizeh, Al Jizah, Egypt, Egypt
    Posts
    8,675
    Blog Entries
    12
    Rep Power
    81

    Re: [C#]MySQL] Host '****' is not allowed to connect to this MySQL server

    if you really have the correct username, password, and server address. and it wont connect then i believe that remote connections to the database server is disabled( this is the default)
    if you have access to the mysql server configuration you can enable it, follow this guide

    if this isnt the problem i suggest that you use the IP address of the database server instead of the domain name and see what happens
    yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
    Code:
    eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
    www.amrosama.com | the unholy methods of javascript

  4. #3
    TriggerHappy is offline Learning Programmer
    Join Date
    Feb 2010
    Posts
    30
    Rep Power
    0

    Re: [C#]MySQL] Host '****' is not allowed to connect to this MySQL server

    Yeah, you really didn't give us much information.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Beginner PHP Beginners: Connect to MYSQL
    By Epatron in forum PHP Tutorials
    Replies: 2
    Last Post: 07-24-2011, 02:43 PM
  2. Replies: 0
    Last Post: 07-13-2011, 04:07 PM
  3. MySQL Federated Error (Can't connect to host)
    By karabibe in forum Database & Database Programming
    Replies: 4
    Last Post: 12-06-2010, 05:24 AM
  4. Replies: 11
    Last Post: 04-22-2010, 06:05 PM
  5. How connect mysql with php
    By moulai in forum PHP Development
    Replies: 4
    Last Post: 02-26-2009, 01:56 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