+ Reply to Thread
Results 1 to 9 of 9

Thread: Using MySQL

  1. #1
    Wizet's Avatar
    Wizet is offline x10 Elder Wizet is an unknown quantity at this point
    Join Date
    May 2008
    Location
    Brooklyn, New York.
    Posts
    644

    Using MySQL

    Why for some reason when I try to set a password in MySQL (desktop version) it comes out as 1045 - Access denied for user '****'@'localhost' (Using password:yes) I do not use yes as a password.

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Using MySQL

    Quote Originally Posted by Wizet View Post
    Why for some reason when I try to set a password in MySQL (desktop version) it comes out as 1045 - Access denied for user '****'@'localhost' (Using password:yes) I do not use yes as a password.
    Privacy reasons - imagine if a user saw your password being displayed there. Yes just means it was using one.


    The problem is it's not allowing it to log in, so either the passwords wrong, or some other issue. Most of the time I've seen, it's an invalid password or username, so check those and make sure they're both correct.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: Using MySQL

    Livewire's right. I'm curious if there might also be a permission issue. By desktop, are you using Windows or Linux?
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


  4. #4
    Wizet's Avatar
    Wizet is offline x10 Elder Wizet is an unknown quantity at this point
    Join Date
    May 2008
    Location
    Brooklyn, New York.
    Posts
    644

    Re: Using MySQL

    Quote Originally Posted by Livewire View Post
    Privacy reasons - imagine if a user saw your password being displayed there. Yes just means it was using one.


    The problem is it's not allowing it to log in, so either the passwords wrong, or some other issue. Most of the time I've seen, it's an invalid password or username, so check those and make sure they're both correct.
    I'm just trying to make a new password.

    Quote Originally Posted by vol7ron View Post
    Livewire's right. I'm curious if there might also be a permission issue. By desktop, are you using Windows or Linux?
    I am using Windows.

  5. #5
    808solutions is offline x10Hosting Member 808solutions is an unknown quantity at this point
    Join Date
    Feb 2009
    Posts
    7

    Re: Using MySQL

    that is interesting i think the problem my be server side talk to your host about it, because i rememer having to use a php script to upload my sql database and i got the same type of error but it turns out i had no privaleges to my user to even be attempting to access MySql, hope u figure that out if not reply and i'll give more suggestions

  6. #6
    ascs-admin is offline x10Hosting Member ascs-admin is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    1

    Re: Using MySQL

    i have the same problem now.. and its more than a week now..

    Unable to establish connection to MySQL
    1045 : Access denied for user 'ascs'@'chopin.x10hosting.com' (using password: NO)

    can anyone tell me where to fix this one?

  7. #7
    whitebus's Avatar
    whitebus is offline x10 Sophmore whitebus is an unknown quantity at this point
    Join Date
    Aug 2007
    Location
    Sturgeon Falls
    Posts
    115

    Re: Using MySQL

    If you are using the desktop edition, the most common problem I've come across is the 'localhost' part. check your user table to make sure the host is either % (i.e. any host) or localhost. It may be that when you set the user up were user@mycomputer. Using the command line client and logging in with the root account:
    show databases; (to list all databases)
    use mysql; (to connect to the core database)
    select * from user; (to view your user info)
    update user set host='%' where user='youruser'; (so youruser can access from anywhere)
    select * from db; (to view your user access to the databases)
    you should see a line where
    host=%, db=yourdatabase, user=youruser and a bunch of priveleges=Y
    if not:
    grant all on yourdatabase.* to 'youruser'@'%';

    you can do all of the above the the MySQL Query Browser and the MySQL Administrator as well.

    If password=no, then your password field is empty. (which on the x10hosting database is, I believe, not allowed) Create a new database user with a password.

  8. #8
    yjjzjw is offline x10Hosting Member yjjzjw is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    17

    Re: Using MySQL

    I do not there have been, um, not helpful

  9. #9
    mcnigelmcgruff is offline x10Hosting Member mcnigelmcgruff is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    17

    Re: Using MySQL

    If you are attempting to connect to x10's servers, you need to allow remote MySQL access using cPanel. I have tried this and have not gotten it to work. By default, cPanel denies all remote access to MySQL as a security feature. When you login, it checks three things: username and password; and whether that username is authorized to access MySQL from the IP you are accessing it from.

+ Reply to Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Which is better postgresql or MySQL?
    By Kurai Kumo in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 12-10-2009, 08:17 AM
  3. Replies: 14
    Last Post: 09-29-2008, 07:07 PM
  4. New Site-Suggestions?
    By mnoutside in forum Review My Site
    Replies: 9
    Last Post: 08-27-2008, 07:01 AM
  5. 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