Ask a Question related to MySQL, Design and Development.

  1. #1

    Default access to database

    hi to everybody.
    i'm a newbie in the world of mysql and i've got a problem with the
    access to a database.
    i created a user 'default', from host %, with his password and give him
    access to a database (all privileges, with grant option).
    when i try to access it from an application i get an exception (access
    denied for user 'default'@'localhost').
    i can access the database only by user root.

    thenk you for your help
    Francesco


    --
    Posted via Mailgate.ORG Server - [url]http://www.Mailgate.ORG[/url]
    francesco Guest

  2. Similar Questions and Discussions

    1. Access Database
      Hello. We have a database that we does like to use in a movie. How can we do that? Need any special Xtra? Thanks for help Paul and Mike
    2. .NET Database access
      post the connection script with the full path to the database. also since your site is probably not on the root of the drive make sure you are...
    3. How do I set-up ASP with an MS-Access database?
      I Currently have an asp website created manually (not using frontpage)with an access db. The way it works now the iusr- account needs read/write...
    4. Web access to database
      Hi. I've built a quite complicated database for tracking clients, projects, logging work, etcetera for my company, over the last few years. Now...
    5. Write Access to Access DataBase
      I'm trying to update a Access Database from information gained from a ASPX page. The database will not update. I'm sure it is in some security...
  3. #2

    Default Re: access to database

    francesco wrote:
    > i created a user 'default', from host %, with his password and give him
    > access to a database (all privileges, with grant option).
    > when i try to access it from an application i get an exception (access
    > denied for user 'default'@'localhost').
    The MySQL privilege system clearly distincts between 'local' connections
    and 'network' connections. A '%' in the host column matches all network
    connections but *not* local connections. If you want to connect from
    both localhost and via the network you have to GRANT privileges twice.
    One time for '%', one time for 'localhost'.

    However I discourage from using '%' in the host column. In most cases a
    network name or IP address range is more appropriate.

    XL
    Axel Schwenke Guest

  4. #3

    Default Re: access to database

    thank you: now it works (and i'll avoid using '%')
    Francesco



    --
    Posted via Mailgate.ORG Server - [url]http://www.Mailgate.ORG[/url]
    Fra Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139