Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

MySQL path is c:\mysql\data, but when I move my folder to desktop, my script couldn't connect to database, how to change the path so my script will know where to look for the database

Replies are listed 'Best First'.
Re: MySQL path
by tachyon (Chancellor) on Jul 18, 2004 at 10:29 UTC

    but when I move my folder

    What folder? The script or the MySQL data dir? If you move the MySQL data dir (which is what I think you have done) how the hell do you expect MySQL to intuit that? Edit my.cnf or my.ini? to point to where you stole its data to if that is what you did.

    If you moved you script how do you expect PM to intuit what the hell you did to break it?Ask a sensible question with sensible errors ie: I did this, did have this, now have this, expected that, got these errors....

    Why did you move it OOI? Is it unbroked if you move it back?

    cheers

    tachyon

Re: MySQL path
by beable (Friar) on Jul 18, 2004 at 10:07 UTC
    Did you get any error message? Did you look in the logfile? Did you try using the path "c:/mysql/data"? Did you have a Perl question?