+ Reply to Thread
Results 1 to 4 of 4

Thread: Mysql connection error

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    34

    Mysql connection error

    I have this php code :
    Code:
    <?php
          class DATABASE_CONFIG {
    
    var $default = array(
        'driver' => 'mysql',
        'persistent' => false,
        'host' => 'localhsot',
        'login' => 'root',
        'password' => '',
        'database' => 'dbName',
    );
       }
      ?>
    and i can`t access to localhost database <> Mysql Connection Failed , my code seem to be fine , could you please suggest any soultion ?

  2. #2
    Ouch , you typed localhsot instead of localhost , don`t be on hurry again while typing a code

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    34
    Oh my God , that was really annoying , glad you noticed that , thanks

  4. #4
    It is okay , i did that mistake like hundred of times before , this is a common mistake

+ Reply to Thread

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