Results 1 to 7 of 7

Thread: MySql database

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    MySql is running on my linux box, but, i cannot connect to it from PHP.

    also I telnet into port 3306 and it says
    host 'linuxserver' is not allowed to connect the is MySql serverConnection


    any help!
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    In your MySQL permissions table, does a remote user - host "%" - have permission to connect?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    Help!!!

    explain more

    command line...




    Kurt Simons
    [I know I'm a hack but my clients don't!]

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Database: mysql
    Table: user

    Each of the items in that table is a user and a host, along with the permissions of what they can/can't do. You need to make sure that there is an entry for your username and host along with the permissions.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    Localhost is there with user root

    my computer name is linuxserver
    should it be there?

    how can I add to this db.
    I can't simple add a record because the password in encrypted.

    how can I add a line that will allow anyone to access any db on my system if the connection comes from my computer

    thanks
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You can add a record via SQL using the PASSWORD('string') function.

    Something similar to:
    Code:
    INSERT INTO user VALUES('%', 'username', PASSWORD('pass'), 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
    Obviously change the permissions to what you want.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    OK GOOD!!!!!


    Thanks Much!!


    time to play


    - kurt simons
    Kurt Simons
    [I know I'm a hack but my clients don't!]

Posting Permissions

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



Click Here to Expand Forum to Full Width