Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: "Error establishing mySQL database connection." i'm STUCK ON 'Step 2/4'

  1. #11
    Admin & Development shibuya246's Avatar
    Join Date
    Jun 2009
    Location
    Tokyo, Japan
    Posts
    489
    Blog Entries
    2
    Thanks
    116
    Thanked 194 Times in 116 Posts

    Default

    Quote Originally Posted by anika039 View Post
    Hi, I did all of this and after adding this in line 82 my browser shows only the database name and my password. Now what to do? why this installing is so difficult and boring?
    The problem looks like it is with your SQL setup. We cant guess what the settings are, so can you please help by telling us some info? What is your url for the site and i can take a look at the errors directly

  2. #12
    Member
    Join Date
    Jul 2010
    Location
    dhaka
    Posts
    42
    Thanks
    16
    Thanked 1 Time in 1 Post

    Default





    I want to delete all data and want to do all things again from beginning. Pls give me some advice.

  3. #13
    Senior Member
    Join Date
    Sep 2009
    Posts
    429
    Thanks
    160
    Thanked 54 Times in 41 Posts

    Default

    Quote Originally Posted by anika039 View Post
    I want to delete all data and want to do all things again from beginning. Pls give me some advice.
    To delete all data, you would need to open you database in PHPMyAdmin and use the DROP TABLE statement. From what I gather, you don't have any data in your database tables, so the drop table statement would do. Else, use the truncate table table_name statement.

    Example to drop and truncate the comments table (assuming you have prefixed your tables with hotaru_ during set up):

    Drop table statement: Drop table hotaru_comments;

    Truncate table statement: TRUNCATE TABLE hotaru_comments;

  4. #14
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,858
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    Anika, did you check with your web host to see id "localhost" is the correct value for DB_HOST?

    I looked up the name of your webhost and it's starhostbd.com, right? I can't find any support forums or detailed information about your server setup, so you will need to check with them. The problem is not with Hotaru, but with your database details or server requirements.

  5. #15
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,858
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    Quote Originally Posted by nothingman View Post
    From what I gather, you don't have any data in your database tables
    Actually, Anika won't even have any database tables yet, so there really is nothing to delete. Thanks for trying to help, though.

  6. #16
    Member
    Join Date
    Jul 2010
    Location
    dhaka
    Posts
    42
    Thanks
    16
    Thanked 1 Time in 1 Post

    Default

    hi, thanks, yes, I took hosting from starhostbd.com . but in my phpmyadmin I saw my host name is localhost. what types of information do I need more. can you pls tell me.

  7. #17
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,858
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    Well, one thing you could do is test your database connection without using Hotaru...

    Open a new text file and paste this into it with your database details:

    PHP Code:
    <?php

    $dbhost 
    'localhost';
    $dbuser 'username';
    $dbpass 'password';
    $dbname 'databasename';

    echo 
    "Connecting to MySQL...<br />";

    $conn mysql_connect($dbhost$dbuser$dbpass) or die('Error connecting to mysql');

    echo 
    "Selecting the database...<br />";

    mysql_select_db($dbname);

    echo 
    "Closing the connection...<br />";

    mysql_close($conn);

    echo 
    "Finished.";

    ?>
    Save it as database_test.php and upload it to your root directory.

    In your browser, open example.com/database_test.php and see if you get any errors.

  8. #18
    Member
    Join Date
    Jul 2010
    Location
    dhaka
    Posts
    42
    Thanks
    16
    Thanked 1 Time in 1 Post

    Default

    I did nothing but setup it in my another site www.sporticka.com and it worked. Then I delete my setup and did it from the beginning. After setting up, it shows me the message when i create category.


    Then I did the whole thing again. I also checked the mentioned file in both of my site but it did not worked. What to do please.

  9. #19
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,858
    Blog Entries
    88
    Thanks
    482
    Thanked 806 Times in 526 Posts

    Default

    You need the mbstring PHP extension enabled on your server.

    http://www.php.net/manual/en/book.mbstring.php

  10. #20
    Member
    Join Date
    Jul 2010
    Location
    dhaka
    Posts
    42
    Thanks
    16
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by Nick View Post
    You need the mbstring PHP extension enabled on your server.

    http://www.php.net/manual/en/book.mbstring.php
    where to setup? do i need to contact with my hosting company or i have to do this in my cpanel. i dont know. please help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 05-25-2010, 11:37 PM
  2. Replies: 4
    Last Post: 05-21-2010, 05:53 PM
  3. "An appropriate representation of the requested resource" Error
    By mdelfs in forum How-To and Troubleshooting
    Replies: 3
    Last Post: 11-27-2009, 08:35 AM
  4. "Posted on DD/MMM/YYYY" instead of "Posted XYZ Days Ago"?
    By nothingman in forum How-To and Troubleshooting
    Replies: 9
    Last Post: 11-25-2009, 03:54 PM

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
  •