+ Reply to Thread
Results 1 to 6 of 6

Thread: Help How to configure mysql.

  1. #1
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Help How to configure mysql.

    Hi I have desbian setup with mysql, php installed..The Thing is I dunno how to setup mysql so that php uses it..I have imported the databases using virtualmin. Made sure the names are exactly same as the old host.When i goto the webpage I get this error... It seems like its not connecting to the databases at all..
    Code:
    MySQL Error: The PHP MySQL extentions have not been installed. Please ask your administrator to add MySQL support to your PHP installation.
    Please could some one help me with this?Thanks.

  2. #2
    masshuu's Avatar
    masshuu is offline Head of the Geese masshuu has a spectacular aura about
    Join Date
    Oct 2007
    Location
    Las Colinas, Tx
    Posts
    2,262

    Re: Help How to configure mysql.

    try this:
    Code:
    apt-get install php5-mysql
    then restart apache

    if not, check your php.ini for extension=mysql.so and uncomment it
    then restart apache
    Just leading the flock.
    Livewire
    Masshuu ------ carl6969
    descalzo ------------------- Smith6612
    Bryon--------------------------------- Corey
    If you find any post helpful or useful, duck
    \ / This for that post and rep it up.

  3. #3
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Help How to configure mysql.

    Hmm It seems that everything is o.k. on that side..

    I'm not sure I am doing this correctly. In virtualmin I went to edit databases. Created a new one with the exact same name as the one from my old host.
    Then I went to manage Database => Execute SQL => Run SQL From File => Then uploaded the SQL file...

    How do I get that to work with my forum.. I have uploaded all the files i the public_html folder and its navigating to the index.php
    But it seems not to be connecting to the database I imported..
    Am I doing something wrong here. Or am I missing something out???

  4. #4
    allofus is offline x10 Sophmore allofus is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Wetherby, West Yorkshire, England
    Posts
    183

    Re: Help How to configure mysql.

    Hi c740015,

    If you ran the install.sh on a fresh install of debian 5 as discussed a couple of days ago all you would need to do is set the root password for mysql and then create a db / dbuser and point your .php file to it.

    phpmyadmin is an easy option for this and takes only moments to setup.
    http://library.linode.com/databases/...ing_phpmyadmin

    Have you tried using a mySQL program on your local home/office machine to connect to the database?

  5. #5
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Help How to configure mysql.

    I have SQLyog Enterprize.. I dunno where to find the DB server
    DB name
    DB user
    and the DB password is that my password for root?

    And Thanks I have phpmyadmin installed now.. I was wondering about that lol.

  6. #6
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Help How to configure mysql.

    Nice ... I managed to do it..

    Lol I just needed to change a few files.. At 1st I dont think it was even looking for a database this is all corrected now..

    Thankyou all for your help...

+ Reply to Thread

Similar Threads

  1. configure.php
    By zhenek in forum Free Hosting
    Replies: 1
    Last Post: 01-23-2010, 02:48 PM
  2. Not able to configure webmail
    By jayantha in forum Free Hosting
    Replies: 1
    Last Post: 08-20-2008, 05:25 AM
  3. How do u configure sendmail -t??
    By iizacode in forum Programming Help
    Replies: 8
    Last Post: 05-14-2008, 12:10 PM
  4. How to configure dns records?
    By cr2112 in forum Free Hosting
    Replies: 2
    Last Post: 03-15-2008, 06:23 AM
  5. Configure...
    By Jesse in forum Off Topic
    Replies: 1
    Last Post: 10-25-2007, 10:54 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