Closed Thread
This thread has been escalated.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: mySQL connection issue after upgrading Chopin on 01-18-2010

  1. #1
    simstock is offline x10Hosting Member simstock is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    7

    mySQL connection issue after upgrading Chopin on 01-18-2010

    Hi there

    I found this post http://forums.x10hosting.com/service...us-chopin.html saying mySQL on Chopin may have connection issue after upgrading.

    And I got the exact same issue till now. the error message is: Access denied for user xxx@'chopin.x10hosting.com' (using password: YES).

    Hope you can help me resolve this issue.

    Thanks!

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,633

    Re: mySQL connection issue after upgrading Chopin on 01-18-2010

    I would ask you if you are running Wordpress or something similar, but your website simstock.x10hosting.com looks totally empty.
    Last edited by descalzo; 01-22-2010 at 11:35 AM.
    Nothing is always absolutely so.

  3. #3
    chrislynk is offline x10Hosting Member chrislynk is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    2

    Lightbulb Re: mySQL connection issue after upgrading Chopin on 01-18-2010

    So I had the same problem and ran thru the same resolution attempts. Finally found that adding my account panel username to my sql user worked. Something like this ...

    Was: $con = mysql_connect("localhost","myuser","XXXXXXXX");
    Now: $con = mysql_connect("localhost","chrislynk_myuser","XXXX XXXX");

    I canot say why <sqluser> failed but <accountuser>_<sqluser> works but gift horse and all.

    I hope this hepls.

  4. #4
    simstock is offline x10Hosting Member simstock is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    7

    Re: mySQL connection issue after upgrading Chopin on 01-18-2010

    Hi, descalzo

    Thanks for your reply.
    I deleted my website files because I'm just doing some investigation.
    And I've uploaded a test page simstock.x10hosting.com/Default.aspx. And I've already grant the database user simstock_user access to the database simstock_db.
    And I'm pretty sure that my code works fine before the chopin server upgrade.

    Please help to resolve the issue.

    Thanks!

  5. #5
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: mySQL connection issue after upgrading Chopin on 01-18-2010

    use 'localhost' as your mysqlhost instead of 'chopin.x10hosting.com'
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  6. #6
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: mySQL connection issue after upgrading Chopin on 01-18-2010

    Set the host to localhost. After the upgrade, it seems that [server].x10hosting.com as the host no longer works, which forces many users to have to reconfigure their scripts. It looks like you might be one of them, based on the error message.

    So I had the same problem and ran thru the same resolution attempts. Finally found that adding my account panel username to my sql user worked. Something like this ...

    Was: $con = mysql_connect("localhost","myuser","XXXXXXXX");
    Now: $con = mysql_connect("localhost","chrislynk_myuser","XXXX XXXX");

    I canot say why <sqluser> failed but <accountuser>_<sqluser> works but gift horse and all.

    I hope this hepls.
    You make it sound like it hasn't always been this way. This was implemented so no users/databases on the mysql server would have the same name.

    Just to add, databases also must be accessed with the cPanel username prefix:

    [cPanel Username]_[DB Username]
    [cPanel Username]_[DB Name]
    Last edited by Twinkie; 01-23-2010 at 01:33 AM.

  7. #7
    simstock is offline x10Hosting Member simstock is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    7

    Re: mySQL connection issue after upgrading Chopin on 01-18-2010

    Quote Originally Posted by Boss is the Best View Post
    use 'localhost' as your mysqlhost instead of 'chopin.x10hosting.com'
    The MySQL server should be mysql-chopin.x10hosting.com, not chopin.x10hosting.com.
    I trid to use localhost, and I got this error msg: Unable to connect to any of the specified MySQL hosts.

  8. #8
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: mySQL connection issue after upgrading Chopin on 01-18-2010

    Sorry! I just forgot to add mysql- at start. anyways Which script you are using!

    Post your config.php file like chrislynk`s post. Remember to Hide you password.

    I just want to check what is wrong with the connection.
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  9. #9
    simstock is offline x10Hosting Member simstock is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    7

    Re: mySQL connection issue after upgrading Chopin on 01-18-2010

    Thank you for you response.

    I'm using ASP.NET, not php.

    I think the web server and the MySQL server are not the same one. The connection is from the web server to the MySQL server, and the user is denied by the MySQL server.

    Here is my c# code:

    string connectionString = "Server=mysql-chopin.x10hosting.com;Database=[cPanel_username]_[DB_name];Uid=[cPanel_username]_[DB_username];Pwd=[hide pwd];Charset=utf8";
    using (MySqlConnection conn = new MySqlConnection(connectionString))
    {
    conn.Open();
    }

    The code works well before the upgrade.

  10. #10
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: mySQL connection issue after upgrading Chopin on 01-18-2010

    Have you tried this.
    Code:
    string connectionString = "Server=localhost;Database=[cPanel_username]_[DB_name];Uid=[cPanel_username]_[DB_username];Pwd=[hide pwd];Charset=utf8";
    using (MySqlConnection conn = new MySqlConnection(connectionString))
    {
    conn.Open();
    }
    Because After MYSQL server upgrade mysql-[server].x10hsoting.com is not working. Only localhost is working.
    Last edited by Zubair; 01-23-2010 at 02:52 AM.
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

Closed Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Replies: 14
    Last Post: 09-29-2008, 07:07 PM
  3. Replies: 3
    Last Post: 01-26-2006, 05:01 PM
  4. Have a problem with my forum
    By tikloos in forum Scripts & 3rd Party Apps
    Replies: 43
    Last Post: 01-19-2006, 01:14 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
x10hosting free hosting for the masses
dedicated servers