Results 1 to 3 of 3

Thread: [RESOLVED] Change MySQL Databse Path

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    117

    Resolved [RESOLVED] Change MySQL Databse Path

    sir,
    i have installed xampp on my local system and i am working on php and mysql. my question is how can i select a mysql database on a different location otherthan C:\xampp\mysql\data. for example if mysql database is located in d:\mydatafiles folder, how can select the database using phpmyadmin? i don't want to copy my database to C:\xampp\mysql\data

    please help

    ram

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Change MySQL Databse Path

    MySQL will only read databases from one location. You need to either change the path to the data files in my.ini, or move the database to the xampp folder.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    117

    Talking Re: Change MySQL Databse Path

    thank u sir....
    i changed the path of database in
    c:\xampp\mysql\bin\my.cnf
    datadir=e:\mydata

    thank u once again
    i got it
    ram

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