TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   How to change mysql 'localhost' to another drive (http://www.talkphp.com/absolute-beginners/3306-how-change-mysql-localhost-another-drive.html)

Dave 09-01-2008 12:00 PM

How to change mysql 'localhost' to another drive
 
How might I change my mysql 'localhost' setting from (I think this is right) 'C:\wamp\mysql\data\test\mytable' to 'M:\wamp\mysql\data\test\mytable' (which is a backup).

This is from phpMyAdmin (if it helps any):

Server version: 5.0.41-community-nt
Protocol version: 10
Server: localhost via TCP/IP
User: root@localhost
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: Collation

Thank you,
Dave

Izym 09-02-2008 09:15 PM

As far as I know MySQL doesn't work like that. If you wanted to do something like that you'd have to use sqlite. I'm not quite sure, but I think it'd be quite difficult to make MySQL do what you want.

Kalle 09-02-2008 10:50 PM

Copy the C:\wamp\mysql\data\ folder as a backup, unininstall MySQL from C:\ and reinstall it on M:\ and then copy the data folder into it =P ?

sarmenhb 09-05-2008 09:13 PM

Quote:

Originally Posted by Dave (Post 18159)
How might I change my mysql 'localhost' setting from (I think this is right) 'C:\wamp\mysql\data\test\mytable' to 'M:\wamp\mysql\data\test\mytable' (which is a backup).

This is from phpMyAdmin (if it helps any):

Server version: 5.0.41-community-nt
Protocol version: 10
Server: localhost via TCP/IP
User: root@localhost
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: Collation

Thank you,
Dave

why dont you grab the files from that m drive, which are the tables and database and drag it over to the one you have now. and when u go to mysql command prompt and type show tables you'll see the table there.


All times are GMT. The time now is 10:52 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0